*.dll
*.exe
-*.log
\ No newline at end of file
+*.log*.mdb
+2004-08-27 Martin Baulig <martin@ximian.com>
+
+ * Makefile
+ (run-gmcs-tests): New target to run the cs*.cs tests with gmcs.
+ (run-generics-tests): New target to run the gcs*.cs tests.
+ (run-tests-local): Run run-mcs-tests, run-gmcs-tests and
+ run-generics-tests.
+
+ * do-tests.pl: Don't return an error value if more tests pass than
+ expected.
+
+ * mcs-expect-no-error, mcs-expect-wrong-error: Updated to the
+ current situation, ie. make all the tests pass.
+
+ * gmcs-expect-no-error, gmcs-expect-wrong-error: New files.
+
+ * generics-expect-wrong-error: Formerly known as
+ gmcs-expect-wrong-error.
+
2004-08-27 Martin Baulig <martin@ximian.com>
* do-tests.pl: Deal with compiler crashes.
MCS = $(INTERNAL_MCS)
LOCAL_MCS_FLAGS = /nowarn:162 --wlevel 4
-GMCS_COMPILE = $(RUNTIME) ../gmcs/gmcs.exe /target:library $(MCS_FLAGS)
+GMCS_COMPILE = $(RUNTIME) ../gmcs/gmcs.exe $(LOCAL_MCS_FLAGS)
+GENERICS_COMPILE = $(RUNTIME) ../gmcs/gmcs.exe $(LOCAL_MCS_FLAGS) /target:library
RUNTEST_PL = ./runtest.pl
# again, run-test is when the tests actually happen, so
# don't compile on make test.
-run-test-local: test-multi-local run-mcs-tests run-generics-local
+run-test-local: run-mcs-tests run-gmcs-tests run-generics-local
run-mcs-tests:
@ ./do-tests.pl mcs "$(CSCOMPILE)" "cs*.cs"
+run-gmcs-tests:
+ @ ./do-tests.pl gmcs "$(GMCS_COMPILE)" "cs*.cs"
+
run-generics-local:
- @ ./do-tests.pl gmcs "$(GMCS_COMPILE)" "gcs*.cs"
+ @ ./do-tests.pl generics "$(GENERICS_COMPILE)" "gcs*.cs"
test-multi-local:
@ failed=false; \
my $status;
if ($exit_value > 2) {
- $status = $RESULT_UNEXPECTED_CRASH;
+ if (exists $expecting_map {$_} and $expecting_map {$_} == $EXPECTING_WRONG_ERROR) {
+ $status = $RESULT_EXPECTED_INCORRECT_ERROR;
+ } else {
+ $status = $RESULT_UNEXPECTED_CRASH;
+ }
}
if ($exit_value == 0) {
exit (
scalar @{@status_items [($RESULT_UNEXPECTED_INCORRECT_ERROR - 1)]} +
scalar @{@status_items [($RESULT_UNEXPECTED_NO_ERROR - 1)]} +
- scalar @{@status_items [($RESULT_UNEXPECTED_CORRECT_ERROR - 1)]} +
scalar @{@status_items [($RESULT_UNEXPECTED_CRASH - 1)]}
) == 0 ? 0 : 1;
--- /dev/null
+gcs0305-2.cs
+gcs0305-3.cs
+gcs0305.cs
+gcs0308-2.cs
+gcs0308-3.cs
+gcs0308.cs
--- /dev/null
+#
+# These files are incorrectly compiled by the compiler.
+# If you add a new test that should generate an error but does not,
+# generate any, it should be added here.
+#
+# If you fix the compiler so that it correctly emits an error,
+# the file should be removed.
+#
+
+cs0111-8.cs
+cs0121-3.cs
+cs0154-2.cs
+cs0164.cs
+cs0186.cs
+cs0229.cs
+cs0246-6.cs
+cs0576.cs
+cs0580.cs
+cs0591.cs
+
+cs0160-2.cs #64222
+cs0173-2.cs #64223
+cs0571-2.cs #64224
+cs0647-3.cs #64225
+cs1017.cs #64226
+
+cs0111-8.cs
-gcs0305-2.cs
-gcs0305-3.cs
-gcs0305.cs
-gcs0308-2.cs
-gcs0308-3.cs
-gcs0308.cs
+#
+# These files are give the wrong warning when compiled.
+# If you add a new test that should generate an error but generates the
+# wrong one, it should be added here.
+#
+# If you fix the compiler so that it emits the correct error,
+# the file should be removed.
+#
+
+cs-11.cs
+cs0012.cs
+cs0029.cs
+cs0029-3.cs
+cs0035.cs
+cs0038-1.cs
+cs0065.cs
+cs0069.cs
+cs0079.cs
+cs0108-2.cs
+cs0111-2.cs
+cs0111-3.cs
+cs0111-4.cs
+cs0116-2.cs
+cs0118.cs
+cs0122-2.cs
+cs0128.cs
+cs0143.cs
+cs0149.cs
+cs0173.cs
+cs0173-2.cs
+cs0186-2.cs
+cs0192.cs
+cs0198.cs
+cs0199.cs
+cs0200.cs
+cs0201.cs
+cs0202.cs
+cs0217.cs
+cs0229-2.cs
+cs0230.cs
+cs0231.cs
+cs0234.cs
+cs0239.cs
+cs0241.cs
+cs0244.cs
+cs0245.cs
+cs0248.cs
+cs0249.cs
+cs0250.cs
+cs0428.cs
+cs0504.cs
+cs0505.cs
+cs0516.cs
+cs0524.cs
+cs0525.cs
+cs0526.cs
+cs0529.cs
+cs0531.cs
+cs0533.cs
+cs0541.cs
+cs0544.cs
+cs0545.cs
+cs0546.cs
+cs0547-2.cs
+cs0547.cs
+cs0548.cs
+cs0550.cs
+cs0551.cs
+cs0557.cs
+cs0558.cs
+cs0559.cs
+cs0560.cs
+cs0561.cs
+cs0564.cs
+cs0567.cs
+cs0590.cs
+cs0610.cs
+cs0611-2.cs
+cs0611.cs
+cs0654.cs
+cs0676.cs
+cs1001.cs
+cs1513.cs
+cs1518.cs
+cs1525.cs
+cs1528.cs
+cs1552.cs
+cs1593-2.cs
+cs1662.cs
+cs1676.cs
+cs1678.cs
+cs2007.cs
+cs2007.cs
+cs8200.cs
+cs8201.cs
+cs8202.cs
+cs8203.cs
+cs8204.cs
+cs8205.cs
+cs8206.cs
+cs8207.cs
+cs8208.cs
+cs8209.cs
+cs8210.cs
+cs8213.cs
+cs8214.cs
+cs8217.cs
+
+cs0182-2.cs #64221
+
+cs0066-2.cs
+cs0102-10.cs
+cs0108-3.cs
+cs0111-10.cs
+cs0111-9.cs
+cs0117-4.cs
+cs0119.cs
+cs0162.cs
+cs0192-2.cs
+cs0214-4.cs
+cs0214-5.cs
+cs0251.cs
+cs0257.cs
+cs0448.cs
+cs0509.cs
+cs0524-2.cs
+cs0524-3.cs
+cs0524-4.cs
+cs0524-5.cs
+cs0525-2.cs
+cs0531-2.cs
+cs0548-2.cs
+cs0548-3.cs
+cs0548-4.cs
+cs0564-2.cs
+cs0590-2.cs
+cs0610-3.cs
+cs0620-2.cs
+cs0620.cs
+cs0622.cs
+cs0631.cs
+cs0636-2.cs
+cs0637-2.cs
+cs0637.cs
+cs0641.cs
+cs0647-2.cs
+cs0650.cs
+cs0652.cs
+cs0653.cs
+cs0674.cs
+cs0681.cs
+cs0685.cs
+cs1013.cs
+cs1016.cs
+cs1031.cs
+cs1035.cs
+cs1040.cs
+cs1055.cs
+cs1501-5.cs
+cs1501.cs
+cs1547-3.cs
+cs1547-4.cs
+cs1575.cs
+cs1605.cs
+cs1611.cs
+cs1677.cs
+cs2023.cs
+cs3005-19.cs
cs0576.cs
cs0580.cs
cs0591.cs
+
+cs0160-2.cs #64222
+cs0173-2.cs #64223
+cs0571-2.cs #64224
+cs0647-3.cs #64225
+cs1017.cs #64226
+
+cs0111-8.cs
cs8214.cs
cs8217.cs
+cs0182-2.cs #64221
-
-
+cs0066-2.cs
+cs0102-10.cs
+cs0108-3.cs
+cs0111-10.cs
+cs0111-9.cs
+cs0117-4.cs
+cs0119.cs
+cs0162.cs
+cs0192-2.cs
+cs0214-4.cs
+cs0214-5.cs
+cs0251.cs
+cs0257.cs
+cs0448.cs
+cs0509.cs
+cs0524-2.cs
+cs0524-3.cs
+cs0524-4.cs
+cs0524-5.cs
+cs0525-2.cs
+cs0531-2.cs
+cs0548-2.cs
+cs0548-3.cs
+cs0548-4.cs
+cs0564-2.cs
+cs0590-2.cs
+cs0610-3.cs
+cs0620-2.cs
+cs0620.cs
+cs0622.cs
+cs0631.cs
+cs0636-2.cs
+cs0637-2.cs
+cs0637.cs
+cs0641.cs
+cs0647-2.cs
+cs0650.cs
+cs0652.cs
+cs0653.cs
+cs0674.cs
+cs0681.cs
+cs0685.cs
+cs1013.cs
+cs1016.cs
+cs1031.cs
+cs1035.cs
+cs1040.cs
+cs1055.cs
+cs1501-5.cs
+cs1501.cs
+cs1547-3.cs
+cs1547-4.cs
+cs1575.cs
+cs1605.cs
+cs1611.cs
+cs1677.cs
+cs2023.cs
+cs3005-19.cs