Patch: FYI: `class-check' target

Tom Tromey tromey@redhat.com
Wed Sep 12 08:13:00 GMT 2001


I'm checking this in on the trunk.
This patch adds an easy regression test for `gcj -C'.  With it you can
use the new `class-check' target to run all the libgcj .class files
through `gcj --syntax-only'.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* Makefile.in: Rebuilt.
	* Makefile.am (class-check): New target.

Index: Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libjava/Makefile.am,v
retrieving revision 1.168
diff -u -r1.168 Makefile.am
--- Makefile.am 2001/09/06 22:32:53 1.168
+++ Makefile.am 2001/09/12 15:09:53
@@ -381,6 +381,15 @@
 	done; \
 	$(CXXCOMPILE) -fsyntax-only htest.cc
 
+## This rule can be used to see if all the .class files verify
+## correctly.
+class-check: libgcj.jar
+	@ok=0; find . -name '*.class' -print | fgrep -v testsuite | \
+	while read f; do \
+	  echo "$(GCJ_WITH_FLAGS) --syntax-only $$f"; \
+	  if $(GCJ_WITH_FLAGS) --syntax-only $$f; then \
+	  :; else ok=1; fi; \
+	done; exit $$ok
 
 ## ################################################################
 



More information about the Java-patches mailing list