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