A little better for mbas developers
[mono.git] / mcs / btests / Makefile
1 thisdir = btests
2 SUBDIRS = 
3 INTERNAL_MBAS = $(TEST_RUNTIME) --debug ../mbas/mbas.exe --stacktrace  /libpath:../class/lib
4
5 all: test-compiler-jit 
6
7 include ../build/rules.make
8
9 DISTFILES = README.tests $(wildcard *.vb)
10
11 # We don't want debugging info :-)
12 USE_MCS_FLAGS :=
13
14 # include the test cases source file
15 include Test.Sources
16
17 # A test is a 'no pass' if it fails on either windows or linux
18
19 #TEST_NOPASS = \
20
21 all-local install-local:
22
23
24 # compilation is part of the testing too, so we don't actually 
25 # do anything in test-local.
26
27 test-local: 
28
29 run-test-local: test-compiler-jit 
30
31
32 test-compiler-jit: test-compiler-jit-real test-compiler-jit-ngtive_compile \
33 test-compiler-jit-ngtive_run
34
35
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; \
41             echo -n "$$i: "; \
42             if $(INTERNAL_MBAS) $$i.vb 1>output ; then \
43             echo -n -e "COMPILED OK\n" >> results.out; \
44                 echo -n "COMPILED OK : " ;\
45                         true ; \
46             else \
47                         echo -n -e "FAILED COMPILATION\n---\n" >> results.out; \
48                         cat output >> results.out; \
49                 echo FAILED COMPILATION ;  \
50                         continue;\
51             fi ; \
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" ; \
56             else \
57                         echo -n -e "$$i : FAILED AT RUNTIME\n---\n" >> results.out; \
58                         cat output >> results.out; \
59                 echo "FAILED AT RUNTIME"; \
60             fi ; \
61             rm -f ./$$i.exe output; \
62         done; \
63         echo -n -e "========================\n$$i: " >> results.out
64
65 test-compiler-jit-ngtive_compile:
66         @rm -f *.exe \
67         echo "Flags \"$(TEST_RUNTIME)\" ... " ; \
68         for i in $(TEST_NGTIVE_COMPILATION_SOURCES) ; do \
69             echo -n "$$i: "; \
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 ; \
74             else \
75                 echo OK; \
76                 continue;\
77             fi ; \
78             rm -f ./$$i.exe output; \
79         done
80
81
82 test-compiler-jit-ngtive_run:
83         @rm -f *.exe \
84         echo "Flags \"$(TEST_RUNTIME)\" ... " ; \
85         for i in $(TEST_NGTIVE_RUNTIME_SOURCES) ; do \
86             echo -n "$$i: "; \
87              if $(INTERNAL_MBAS) $$i.vb 1>output ; then \
88                 true ; \
89             else \
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;\
94             fi ; \
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 ; \
99             else \
100                 echo OK; \
101             fi ; \
102             rm -f ./$$i.exe output; \
103         done
104
105
106
107
108
109 #GENERIC_KNOWN_FAILURES = test-55
110
111