(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / errors / Makefile
blobdfc296b83a524164032b82eac398b67c8617ca5c
1 thisdir = errors
2 SUBDIRS =
3 include ../build/rules.make
5 ifeq (default, $(PROFILE))
6 # force this, we don't case if CSC is broken. This also
7 # means we can use --options, yay.
9 MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MCS)
10 endif
12 LOCAL_MCS_FLAGS = /nowarn:162 --wlevel 4
14 GENERICS_COMPILE = $(CSCOMPILE) /target:library
16 RUNTEST_PL = ./runtest.pl
18 DISTFILES = \
19 CONTRIBUTORS_README \
20 README.tests \
21 errors.txt \
22 fail \
23 runtest.pl \
24 $(wildcard *.cs)
26 #all-local: run-test-local test-multi-local
27 all-local: CS0571-3-lib.dll CS0618-2-lib.dll \
28 CS0619-8-lib.dll CS0619-17-lib.dll CS0619-32-lib.dll CS0619-33-lib.dll CS0619-36-lib.dll \
29 CS3005-16-lib.dll CS3013-module.dll
31 test-local:
33 # again, run-test is when the tests actually happen, so
34 # don't compile on make test.
36 run-test-local: run-mcs-tests
38 TEST_PROFILE=mcs
40 ifeq (net_2_0, $(PROFILE))
41 TEST_PROFILE=gmcs
42 run-test-local: run-generics-tests
43 endif
45 test-everything:
46 $(MAKE) PROFILE=default run-test
47 $(MAKE) PROFILE=net_2_0 run-test
49 run-mcs-tests:
50 -rm -f $(TEST_PROFILE).log
51 @./do-tests.pl $(TEST_PROFILE) "$(CSCOMPILE)" "cs*.cs" 2>&1 | tee $(TEST_PROFILE).log
52 @rm -f $(TEST_PROFILE)*.junk
54 run-generics-tests:
55 -rm -f generics.log
56 @ ./do-tests.pl generics "$(GENERICS_COMPILE)" "gcs*.cs" 2>&1 | tee generics.log
57 @rm -f generics*.junk
59 test-multi-local:
60 @ failed=false; \
61 testsuite_log=test-multi.log; rm -f $$testsuite_log ; \
62 for i in error-*.cs; do \
63 test_out=`echo $$i | sed 's,.cs$$,.out,'` ; \
64 test_log=`echo $$i | sed 's,.cs$$,.log,'` ; \
65 echo -n "Running test $$i ... "; \
66 $(INTERNAL_MCS) $$i > $$test_out 2>&1 || : ; \
67 if $(RUNTEST_PL) $$i $$test_out > $$test_log 2>&1 ; \
68 then echo OK; rm -f $$test_out $$test_log ; \
69 echo "PASS: $$i" >> $$testsuite_log ; \
70 else echo FAILED; \
71 echo "FAIL: $$i" >> $$testsuite_log ; \
72 flist="$$flist $$i"; \
73 failed=true; \
74 fi; \
75 done; \
76 if $$failed; then \
77 echo "The following tests failed: $$flist"; \
78 exit 1; \
79 else \
80 echo All tests passed; \
83 clean-local:
84 rm -f *.exe
85 rm -f *.dll
86 rm -f *.log
87 rm -f *.mdb
89 dist-local: dist-default
91 install-local uninstall-local:
93 %-lib.dll: %-lib.cs
94 $(BOOTSTRAP_MCS) /target:library /out:$@ $<
96 %-module.dll: %-module.cs
97 $(BOOTSTRAP_MCS) /target:module /out:$@ $<