3 include ../build/rules.make
5 # force this, we don't case if CSC is broken. This also
6 # means we can use --options, yay.
9 LOCAL_MCS_FLAGS = /nowarn:162 --wlevel 4
11 RUNTEST_PL = ./runtest.pl
21 #all-local: run-test-local test-multi-local
26 # again, run-test is when the tests actually happen, so
27 # don't compile on make test.
34 error=`echo $$i | sed -e 's/cs*//' -e 's/.cs//' -e 's/-.*//'`; \
37 error=`echo $$i | sed -e 's/cs*//' -e 's/.cs//'`; \
40 echo -n "Running test $$i ... "; \
41 options=`fgrep "// Compiler options:" $$i | sed -e 's/\/\/ Compiler options://'`; \
42 if $(CSCOMPILE) --expect-error $$error $$i $$options > /dev/null; \
45 flist="$$flist $$i"; \
50 echo "The compiler failed to flag the following errors: $$flist"; \
52 echo All tests passed; \
57 for i in error-*.cs; do \
58 echo -n "Running test $$i ... "; \
59 if MCS='$(INTERNAL_MCS)' $(RUNTEST_PL) $$i > /dev/null; \
62 flist="$$flist $$i"; \
67 echo "The following tests failed: $$flist"; \
69 echo All tests passed; \
76 dist-local: dist-default
78 install-local uninstall-local: