2010-03-02 Jb Evain <jbevain@novell.com>
[mcs.git] / jtests / Makefile
blobfa4a26c5c37d6b3d97356aa29624e623ecf5ae61
1 thisdir = jtests
2 SUBDIRS =
3 INTERNAL_MJS = $(TEST_RUNTIME) $(topdir)/tools/mjs/mjs.exe
4 all: test-compiler-jit
5 include ../build/rules.make
6 include Test.Sources
8 all-local install-local:
10 test-local:
12 run-test-local: test-compiler-jit
14 test-compiler-jit: test-compiler-jit-real
16 test-compiler-jit-real:
17 @rm -f *.exe *.out; \
18 /bin/echo "*** Tests ***" > results.out; \
19 /bin/echo "*** Tests ***"; \
20 for i in $(TEST_SOURCES) ; do \
21 /bin/echo -n -e "===\n$$i: " >> results.out; \
22 /bin/echo -n "$$i: "; \
23 if $(INTERNAL_MJS) $$i.js 1>output ; then \
24 /bin/echo -n "COMPILED OK : " >> results.out; \
25 /bin/echo -n "COMPILED OK : " ; \
26 true; \
27 else \
28 /bin/echo -n -e "FAILED COMPILATION\n---\n" >> results.out; \
29 cat output >> results.out; \
30 /bin/echo "FAILED COMPILATION" ; \
31 continue; \
32 fi ; \
33 if $(TEST_RUNTIME) ./$$i.exe 1>output ; then \
34 /bin/echo "EXECUTED OK" >> results.out; \
35 /bin/echo "EXECUTED OK"; \
36 else \
37 /bin/echo -n -e "$$i : FAILED AT RUNTIME\n---\n" >> results.out; \
38 cat output >> results.out; \
39 /bin/echo "$$i : FAILED AT RUNTIME" ; \
40 fi ; \
41 rm -f ./$$i.exe output; \
42 done; \
43 /bin/echo "===" >> results.out
45 clean-local:
46 rm *~