* m4/classpath.m4 (AC_CHECK_WITH_CLASSPATH_CLASSES): Set BOOTCLASSPATH
[cacao.git] / tests / regression / resolving / Makefile.am
1 ## tests/regression/resolving/Makefile.am
2 ##
3 ## Copyright (C) 2007, 2008
4 ## CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
5 ##
6 ## This file is part of CACAO.
7 ##
8 ## This program is free software; you can redistribute it and/or
9 ## modify it under the terms of the GNU General Public License as
10 ## published by the Free Software Foundation; either version 2, or (at
11 ## your option) any later version.
12 ##
13 ## This program is distributed in the hope that it will be useful, but
14 ## WITHOUT ANY WARRANTY; without even the implied warranty of
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 ## General Public License for more details.
17 ##
18 ## You should have received a copy of the GNU General Public License
19 ## along with this program; if not, write to the Free Software
20 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 ## 02110-1301, USA.
22
23
24 SUBDIRS = \
25         classes1 \
26         classes2 \
27         classes3
28
29 JAVA     = $(top_builddir)/src/cacao/cacao
30 JAVACMD  = $(JAVA) -Xbootclasspath:$(BOOTCLASSPATH)
31 JAVACCMD = $(JAVAC) -bootclasspath $(BOOTCLASSPATH)
32
33 HARNESS_SOURCE_FILES = \
34         $(srcdir)/TestController.java \
35         $(srcdir)/TestLoader.java
36
37 HARNESS_CLASS_FILES = \
38         TestController.class \
39         TestLoader.class
40
41 TEST_SOURCE_FILES = \
42         $(srcdir)/test_instance_subtype_violated.java \
43         $(srcdir)/test_param_loading_constraint_violated_derived.java \
44         $(srcdir)/test_param_loading_constraint_violated.java \
45         $(srcdir)/test_param_subtype_violated.java \
46         $(srcdir)/test_retval_loading_constraint_violated.java \
47         $(srcdir)/test_return_subtype_ok.java \
48         $(srcdir)/test_return_subtype_violated.java \
49         $(srcdir)/test_simple_lazy_load.java
50
51 TEST_NAMES = \
52         test_instance_subtype_violated \
53         test_param_loading_constraint_violated_derived \
54         test_param_loading_constraint_violated \
55         test_param_subtype_violated \
56         test_retval_loading_constraint_violated \
57         test_return_subtype_ok \
58         test_return_subtype_violated \
59         test_simple_lazy_load
60
61 EXTRA_DIST = $(HARNESS_SOURCE_FILES) $(TEST_SOURCE_FILES)
62
63 CLEANFILES = \
64         *.class
65
66 check: $(HARNESS_CLASS_FILES)
67         @for t in $(TEST_NAMES) ; do echo "TEST $$t" ; { $(JAVACCMD) -d . -classpath . $(srcdir)/$$t.java && LD_LIBRARY_PATH=$(top_builddir)/src/cacao/.libs $(JAVACMD) $$t ; } || exit 1 ; done
68
69 $(HARNESS_CLASS_FILES): $(HARNESS_SOURCE_FILES)
70         $(JAVACCMD) -d . $(HARNESS_SOURCE_FILES)