3 INTERNAL_MBAS = $(TEST_RUNTIME) --debug ../mbas/mbas.exe --stacktrace /libpath:../class/lib
7 include ../build/rules.make
9 DISTFILES = README.tests $(wildcard *.vb)
11 # We don't want debugging info :-)
14 # include the test cases source file
17 # A test is a 'no pass' if it fails on either windows or linux
21 all-local install-local:
24 # compilation is part of the testing too, so we don't actually
25 # do anything in test-local.
29 run-test-local: test-compiler-jit
32 test-compiler-jit: test-compiler-jit-real test-compiler-jit-ngtive_compile \
33 test-compiler-jit-ngtive_run
36 test-compiler-jit-real:
37 @rm -f *.exe *.out ; \
38 echo "Flags \"$(TEST_RUNTIME)\" ... " ; \
39 for i in $(TEST_SOURCES) ; do \
40 echo -n -e "========================\n$$i: " >> results.out; \
42 if $(INTERNAL_MBAS) $$i.vb 1>output ; then \
43 echo -n -e "COMPILED OK\n" >> results.out; \
44 echo -n "COMPILED OK : " ;\
47 echo -n -e "FAILED COMPILATION\n---\n" >> results.out; \
48 cat output >> results.out; \
49 echo FAILED COMPILATION ; \
52 echo -n -e "------------------------\n" >> results.out; \
53 if $(TEST_RUNTIME) ./$$i.exe 1>output ; then \
54 echo -n -e "$$i : EXECUTED OK\n" >> results.out; \
55 echo "EXECUTED OK" ; \
57 echo -n -e "$$i : FAILED AT RUNTIME\n---\n" >> results.out; \
58 cat output >> results.out; \
59 echo "FAILED AT RUNTIME"; \
61 rm -f ./$$i.exe output; \
63 echo -n -e "========================\n$$i: " >> results.out
65 test-compiler-jit-ngtive_compile:
67 echo "Flags \"$(TEST_RUNTIME)\" ... " ; \
68 for i in $(TEST_NGTIVE_COMPILATION_SOURCES) ; do \
70 if $(INTERNAL_MBAS) $$i.vb > /dev/null ; then \
71 echo -n -e "\n$$i : UNEXPECTED BEHAVIOUR\n " >> results.out; \
72 echo -n -e "\n========================" >> results.out; \
73 echo UNEXPECTED BEHAVIOUR ; \
78 rm -f ./$$i.exe output; \
82 test-compiler-jit-ngtive_run:
84 echo "Flags \"$(TEST_RUNTIME)\" ... " ; \
85 for i in $(TEST_NGTIVE_RUNTIME_SOURCES) ; do \
87 if $(INTERNAL_MBAS) $$i.vb 1>output ; then \
90 echo -n -e "\n$$i : FAILED COMPILATION\n " >> results.out; \
91 cat output >> results.out; \
92 echo -n -e "\n========================" >> results.out; \
93 echo FAILED COMPILATION ; continue;\
95 if $(TEST_RUNTIME) ./$$i.exe > /dev/null ; then \
96 echo -n -e "\n$$i : UNEXPECTED BEHAVIOUR\n " >> results.out; \
97 echo -n -e "\n========================" >> results.out; \
98 echo UNEXPECTED BEHAVIOUR ; \
102 rm -f ./$$i.exe output; \
109 #GENERIC_KNOWN_FAILURES = test-55