ChangeLog entries
[mono.git] / mcs / errors / Makefile
1 thisdir = errors
2 SUBDIRS = 
3 include ../build/rules.make
4
5 # force this, we don't case if CSC is broken. This also
6 # means we can use --options, yay.
7
8 MCS = $(INTERNAL_MCS)
9 LOCAL_MCS_FLAGS = /nowarn:162 --wlevel 4
10
11 GMCS_COMPILE = $(RUNTIME) ../gmcs/gmcs.exe /target:library $(MCS_FLAGS)
12
13 RUNTEST_PL = ./runtest.pl
14
15 DISTFILES = \
16         CONTRIBUTORS_README     \
17         README.tests            \
18         errors.txt              \
19         fail                    \
20         runtest.pl              \
21         $(wildcard *.cs)
22
23 #all-local: run-test-local test-multi-local
24 all-local: CS0618-2-lib.dll CS0619-8-lib.dll CS0619-17-lib.dll CS0619-32-lib.dll CS0619-33-lib.dll CS0619-36-lib.dll \
25 CS3005-16-lib.dll CS3013-module.dll
26
27 test-local:
28
29 # again, run-test is when the tests actually happen, so
30 # don't compile on make test.
31
32 run-test-local: test-multi-local run-mcs-tests run-generics-local
33
34 run-mcs-tests:
35         @ ./do-tests.pl mcs "$(CSCOMPILE)" "cs*.cs"
36
37 run-generics-local:
38         @ ./do-tests.pl gmcs "$(GMCS_COMPILE)" "gcs*.cs"
39
40 test-multi-local:
41         @ failed=false; \
42         testsuite_log=test-multi.log; rm -f $$testsuite_log ; \
43         for i in error-*.cs; do \
44                 test_out=`echo $$i | sed 's,.cs$$,.out,'` ; \
45                 test_log=`echo $$i | sed 's,.cs$$,.log,'` ; \
46                 echo -n "Running test $$i ... "; \
47                 $(INTERNAL_MCS) $$i > $$test_out 2>&1 || : ; \
48                 if $(RUNTEST_PL) $$i $$test_out > $$test_log 2>&1 ; \
49                 then echo OK; rm -f $$test_out $$test_log ; \
50                      echo "PASS: $$i" >> $$testsuite_log ; \
51                 else echo FAILED; \
52                      echo "FAIL: $$i" >> $$testsuite_log ; \
53                      flist="$$flist $$i"; \
54                      failed=true; \
55                 fi; \
56         done; \
57         if $$failed; then \
58                 echo "The following tests failed: $$flist"; \
59                 exit 1; \
60         else \
61                 echo All tests passed; \
62         fi
63
64 clean-local:
65         rm -f *.exe
66         rm -f *.dll
67
68 dist-local: dist-default
69
70 install-local uninstall-local:
71
72 %-lib.dll: %-lib.cs
73         $(BOOTSTRAP_MCS) /target:library /out:$@ $<
74
75 %-module.dll: %-module.cs
76         $(BOOTSTRAP_MCS) /target:module /out:$@ $<