diff options
author | Martin Baulig <martin@novell.com> | 2004-03-16 21:08:48 +0300 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2004-03-16 21:08:48 +0300 |
commit | fc72a9c57055f018c95006adb80538367a41bde8 (patch) | |
tree | d71564d062286014be2f07d7987947e220e139b1 /mcs/errors/Makefile | |
parent | 6d188d9374e41a81a66233b56aacc367cbe597c4 (diff) |
2004-03-16 Martin Baulig <martin@ximian.com>
* Makefile (run-generics-local): New target to run the generics
tests.
* gmcs0246.cs, gmcs0305.cs, gmcs0305-2.cs, gmcs0308.cs,
gmcs0308-2.cs: New tests.
svn path=/trunk/mcs/; revision=24143
Diffstat (limited to 'mcs/errors/Makefile')
-rw-r--r-- | mcs/errors/Makefile | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/mcs/errors/Makefile b/mcs/errors/Makefile index cbbc27a2770..cfa7915c446 100644 --- a/mcs/errors/Makefile +++ b/mcs/errors/Makefile @@ -8,6 +8,8 @@ include ../build/rules.make MCS = $(INTERNAL_MCS) LOCAL_MCS_FLAGS = /nowarn:162 --wlevel 4 +GMCS_COMPILE = $(RUNTIME) ../gmcs/gmcs.exe $(MCS_FLAGS) + RUNTEST_PL = ./runtest.pl DISTFILES = \ @@ -52,6 +54,32 @@ run-test-local: echo All tests passed; \ fi +run-generics-local: + @ failed=false; \ + for i in gcs*.cs; do \ + case $$i in \ + gcs[0-9]*-[0-9]*cs) \ + error=`echo $$i | sed -e 's/gcs*//' -e 's/.cs//' -e 's/-.*//'`; \ + ;;\ + gcs[0-9-]*cs) \ + error=`echo $$i | sed -e 's/gcs*//' -e 's/.cs//'`; \ + ;;\ + esac; \ + echo -n "Running test $$i ... "; \ + options=`fgrep "// Compiler options:" $$i | sed -e 's/\/\/ Compiler options://'`; \ + if $(GMCS_COMPILE) --expect-error $$error $$i $$options > /dev/null; \ + then echo OK; \ + else echo FAILED; \ + flist="$$flist $$i"; \ + failed=true; \ + fi; \ + done; \ + if $$failed; then \ + echo "The compiler failed to flag the following errors: $$flist"; \ + else \ + echo All tests passed; \ + fi + test-multi-local: @ failed=false; \ for i in error-*.cs; do \ @@ -79,6 +107,6 @@ install-local uninstall-local: CS3005-16-lib.dll: $(BOOTSTRAP_MCS) /target:library /out:$@ CS3005-16-lib.cs - + CS3013-module.dll: $(BOOTSTRAP_MCS) /target:module /out:$@ CS3013-module.cs |