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)
12 LOCAL_MCS_FLAGS = /nowarn:162 --wlevel 4
14 GENERICS_COMPILE = $(CSCOMPILE) /target:library
16 RUNTEST_PL = ./runtest.pl
27 #all-local: run-test-local test-multi-local
28 all-local: CS0571-3-lib.dll CS0618-2-lib.dll \
29 CS0619-8-lib.dll CS0619-17-lib.dll CS0619-32-lib.dll CS0619-33-lib.dll CS0619-36-lib.dll \
30 CS3005-16-lib.dll CS3013-module.dll
34 # again, run-test is when the tests actually happen, so
35 # don't compile on make test.
37 run-test-local: run-mcs-tests
41 ifeq (net_2_0, $(PROFILE))
43 run-test-local: run-generics-tests
47 $(MAKE) PROFILE=default run-test
48 $(MAKE) PROFILE=net_2_0 run-test
51 -rm -f $(TEST_PROFILE).log
52 @./do-tests.pl $(TEST_PROFILE) "$(CSCOMPILE)" "cs*.cs" 2>&1 | tee $(TEST_PROFILE).log
53 @rm -f $(TEST_PROFILE)*.junk
57 @ ./do-tests.pl generics "$(GENERICS_COMPILE)" "gcs*.cs" 2>&1 | tee generics.log
62 testsuite_log=test-multi.log; rm -f $$testsuite_log ; \
63 for i in error-*.cs; do \
64 test_out=`echo $$i | sed 's,.cs$$,.out,'` ; \
65 test_log=`echo $$i | sed 's,.cs$$,.log,'` ; \
66 echo -n "Running test $$i ... "; \
67 $(CSCOMPILE) $$i > $$test_out 2>&1 || : ; \
68 if $(RUNTEST_PL) $$i $$test_out > $$test_log 2>&1 ; \
69 then echo OK; rm -f $$test_out $$test_log ; \
70 echo "PASS: $$i" >> $$testsuite_log ; \
72 echo "FAIL: $$i" >> $$testsuite_log ; \
73 flist="$$flist $$i"; \
78 echo "The following tests failed: $$flist"; \
81 echo All tests passed; \
91 dist-local: dist-default
93 install-local uninstall-local:
96 $(BOOTSTRAP_MCS) /target:library /out:$@ $<
98 %-module.dll: %-module.cs
99 $(BOOTSTRAP_MCS) /target:module /out:$@ $<