This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: `class-check' target
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Subject: Patch: FYI: `class-check' target
- From: Tom Tromey <tromey at redhat dot com>
- Date: 12 Sep 2001 09:26:34 -0600
- Reply-To: tromey at redhat dot com
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
## ################################################################