Regression test driver now can read different expected output files
[cacao.git] / tests / regression / native / Makefile.am
1 ## src/tests/regression/native/Makefile.am
2 ##
3 ## Copyright (C) 1996-2005, 2006, 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 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/src -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR) -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR)/$(OS_DIR) -I$(top_builddir)
25
26 JAVA     = $(top_builddir)/src/cacao/cacao
27 JAVACMD  = $(JAVA) -Xbootclasspath:$(BOOTCLASSPATH)
28 JAVACCMD = $(JAVAC) -bootclasspath $(BOOTCLASSPATH)
29
30 SOURCE_FILES = \
31         checkjni.java \
32         testarguments.java
33
34 EXTRA_DIST = \
35         $(SOURCE_FILES) \
36         checkjni.c \
37         testarguments.c \
38         \
39         checkjni.output \
40         testarguments.output
41
42 CLEANFILES = \
43         *.class \
44         *.h \
45         *.so \
46         *.thisoutput \
47         *.this2output
48
49 NOTESTNAMES = \
50         test
51
52 TESTNAMES = \
53         checkjni \
54         testarguments
55
56 check: $(TESTNAMES)
57
58 $(TESTNAMES) $(NOTESTNAMES):
59         @$(JAVACCMD) -d . $(srcdir)/$@.java
60         @$(CC) -shared $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $(srcdir)/$@.c -o lib$@.so -fPIC
61         @LD_LIBRARY_PATH=$(top_builddir)/src/cacao/.libs:. $(SHELL) $(srcdir)/../Test.sh "$(JAVACMD)" $@ $(srcdir)
62
63
64 ## Local variables:
65 ## mode: Makefile
66 ## indent-tabs-mode: t
67 ## c-basic-offset: 4
68 ## tab-width: 8
69 ## compile-command: "automake --add-missing"
70 ## End: