* .hgignore: Added tests/regression/junit/*.class.
[cacao.git] / tests / regression / Makefile.am
1 ## tests/regression/Makefile.am
2 ##
3 ## Copyright (C) 1996-2005, 2006, 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         assertion \
26         bugzilla \
27         codepatching \
28         jasmin \
29         junit \
30         native \
31         resolving
32
33 JAVA     = $(top_builddir)/src/cacao/cacao
34 JAVACMD  = $(JAVA) -Xbootclasspath:$(BOOTCLASSPATH)
35 JAVACCMD = $(JAVAC) -bootclasspath $(BOOTCLASSPATH)
36
37 SOURCE_FILES = \
38         $(srcdir)/HelloWorld.java \
39         $(srcdir)/jctest.java \
40         $(srcdir)/fptest.java \
41         $(srcdir)/fp.java \
42         $(srcdir)/extest.java \
43         $(srcdir)/LoadDisplacementOverflow.java \
44         $(srcdir)/FieldDisplacementOverflow.java \
45         $(srcdir)/StackDisplacementOverflow.java \
46         $(srcdir)/MinimalClassReflection.java \
47         $(srcdir)/TestAnnotations.java
48
49 EXTRA_DIST = \
50         $(SOURCE_FILES) \
51         Test.sh \
52         \
53         jctest.output \
54         fptest.output \
55         fp.output\
56         extest.2output \
57         LoadDisplacementOverflow.output \
58         FieldDisplacementOverflow.output \
59         StackDisplacementOverflow.output \
60         MinimalClassReflection.output \
61         TestAnnotations.output
62
63 CLEANFILES = \
64         *.class \
65         *.thisoutput
66
67 SIMPLE_JAVA_TESTS = \
68         HelloWorld
69
70 OUTPUT_JAVA_TESTS = \
71         jctest \
72         fptest \
73         fp \
74         extest \
75         \
76         LoadDisplacementOverflow \
77         FieldDisplacementOverflow \
78         StackDisplacementOverflow \
79         MinimalClassReflection \
80         TestAnnotations
81
82 check: build $(SIMPLE_JAVA_TESTS) $(OUTPUT_JAVA_TESTS)
83
84 build:
85         $(JAVACCMD) -d . $(SOURCE_FILES)
86
87 $(SIMPLE_JAVA_TESTS):
88         @echo "$@: "
89         @LD_LIBRARY_PATH=$(top_builddir)/src/cacao/.libs $(JAVACMD) $@
90
91 $(OUTPUT_JAVA_TESTS):
92         @LD_LIBRARY_PATH=$(top_builddir)/src/cacao/.libs $(SHELL) $(srcdir)/Test.sh "$(JAVACMD)" $@ $(srcdir)
93
94
95 ## Local variables:
96 ## mode: Makefile
97 ## indent-tabs-mode: t
98 ## c-basic-offset: 4
99 ## tab-width: 8
100 ## compile-command: "automake --add-missing"
101 ## End: