09360815e8109995b1120f3e2023e634b6caa7ab
[cacao.git] / tests / regression / resolving / Makefile.am
1 ## tests/regression/resolving/Makefile.am
2 ##
3 ## Copyright (C) 2007 R. Grafl, A. Krall, C. Kruegel,
4 ## C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5 ## E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6 ## J. Wenninger, Institut f. Computersprachen - TU Wien
7 ##
8 ## This file is part of CACAO.
9 ##
10 ## This program is free software; you can redistribute it and/or
11 ## modify it under the terms of the GNU General Public License as
12 ## published by the Free Software Foundation; either version 2, or (at
13 ## your option) any later version.
14 ##
15 ## This program is distributed in the hope that it will be useful, but
16 ## WITHOUT ANY WARRANTY; without even the implied warranty of
17 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 ## General Public License for more details.
19 ##
20 ## You should have received a copy of the GNU General Public License
21 ## along with this program; if not, write to the Free Software
22 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 ## 02110-1301, USA.
24 ##
25 ## $Id: Makefile.am 7433 2007-03-02 19:42:13Z edwin $
26
27 ## Process this file with automake to produce Makefile.in
28
29 SUBDIRS = \
30         classes1 \
31         classes2 \
32         classes3
33
34 HARNESS_SOURCE_FILES = \
35         $(srcdir)/TestController.java \
36         $(srcdir)/TestLoader.java
37
38 HARNESS_CLASS_FILES = \
39         TestController.class \
40         TestLoader.class
41
42 TEST_SOURCE_FILES = \
43         $(srcdir)/test_instance_subtype_violated.java \
44         $(srcdir)/test_param_loading_constraint_violated_derived.java \
45         $(srcdir)/test_param_loading_constraint_violated.java \
46         $(srcdir)/test_param_subtype_violated.java \
47         $(srcdir)/test_retval_loading_constraint_violated.java \
48         $(srcdir)/test_return_subtype_ok.java \
49         $(srcdir)/test_return_subtype_violated.java \
50         $(srcdir)/test_simple_lazy_load.java
51
52 TEST_NAMES = \
53         test_instance_subtype_violated \
54         test_param_loading_constraint_violated_derived \
55         test_param_loading_constraint_violated \
56         test_param_subtype_violated \
57         test_retval_loading_constraint_violated \
58         test_return_subtype_ok \
59         test_return_subtype_violated \
60         test_simple_lazy_load
61
62 EXTRA_DIST = $(HARNESS_SOURCE_FILES) $(TEST_SOURCE_FILES)
63
64 CLEANFILES = \
65         *.class
66
67 JAVA      = $(top_builddir)/src/cacao/cacao
68
69 if WITH_CLASSPATH_GNU
70 JAVAFLAGS = -Xbootclasspath:$(top_builddir)/src/lib/classes/:$(CLASSPATH_CLASSES)
71 else
72 JAVAFLAGS = -Xbootclasspath:$(CLASSPATH_CLASSES)
73 endif
74
75 check: $(HARNESS_CLASS_FILES)
76         @for t in $(TEST_NAMES) ; do echo "TEST $$t" ; { $(JAVAC) -d . -classpath . $(srcdir)/$$t.java && LD_LIBRARY_PATH=$(top_builddir)/src/cacao/.libs $(JAVA) $(JAVAFLAGS) $$t ; } || exit 1 ; done
77
78 $(HARNESS_CLASS_FILES): $(HARNESS_SOURCE_FILES)
79         $(JAVAC) -d . $(HARNESS_SOURCE_FILES)
80