X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Ftests%2FMakefile.am;h=03bae54e17a22799cc20b98346b97d18dac1af84;hb=2d68253ca7c846736dbf27a812acd11f1c7a1e1f;hp=169a9e24c31e9c65ee75b0595c5d4d226bad6ded;hpb=98a6a070787295a3619e44a269819c32cb5000cd;p=mono.git diff --git a/mono/tests/Makefile.am b/mono/tests/Makefile.am index 169a9e24c31..03bae54e17a 100644 --- a/mono/tests/Makefile.am +++ b/mono/tests/Makefile.am @@ -1,6 +1,7 @@ SUBDIRS = assemblyresolve gc-descriptors -check-local: assemblyresolve/test/asm.dll testjit test-generic-sharing test-type-load test-cattr-type-load test-reflection-load-with-context test_platform test-process-exit test-console-output test-messages test-env-options test-unhandled-exception-2 test-appdomain-unload rm-empty-logs +check-local: assemblyresolve/test/asm.dll testjit test-generic-sharing test-type-load test-cattr-type-load test-reflection-load-with-context test_platform \ + test-console-output test-messages test-env-options test-unhandled-exception-2 test-appdomain-unload test-process-stress rm-empty-logs check-full: test-sgen check-local check-parallel: compile-tests check-full @@ -31,10 +32,14 @@ MKBUNDLE = \ PKG_CONFIG_PATH=$(top_builddir):$(PKG_CONFIG_PATH) \ $(RUNTIME) $(CLASS)/mkbundle.exe -MCS = $(RUNTIME) $(mcs_topdir)/class/lib/build/mcs.exe -unsafe -debug \ +MCS_NO_LIB = $(RUNTIME) $(mcs_topdir)/class/lib/build/mcs.exe -unsafe -debug \ + -noconfig -nologo \ -nowarn:0162 -nowarn:0168 -nowarn:0219 -nowarn:0414 -nowarn:0618 \ -nowarn:0169 -nowarn:1690 -nowarn:0649 -nowarn:0612 -nowarn:3021 \ -nowarn:0197 + +MCS = $(MCS_NO_LIB) -lib:$(CLASS) + ILASM = $(RUNTIME) $(CLASS)/ilasm.exe BENCHSRC=fib.cs random.cs nested-loops.cs ackermann.cs tight-loop.cs sieve.cs @@ -60,6 +65,7 @@ BASE_TEST_CS_SRC= \ bug-2907.cs \ array-init.cs \ arraylist.cs \ + assembly-load-remap.cs \ assemblyresolve_event.cs \ assemblyresolve_event3.cs \ assemblyresolve_event4.cs \ @@ -398,6 +404,8 @@ BASE_TEST_CS_SRC= \ bug-389886-3.cs \ monitor.cs \ monitor-resurrection.cs \ + monitor-wait-abort.cs \ + monitor-abort.cs \ dynamic-method-resurrection.cs \ bug-666008.cs \ bug-685908.cs \ @@ -427,7 +435,8 @@ BASE_TEST_CS_SRC= \ pinvoke_ppcs.cs \ pinvoke_ppci.cs \ pinvoke_ppcf.cs \ - pinvoke_ppcd.cs + pinvoke_ppcd.cs \ + bug-29585.cs TEST_CS_SRC_DIST= \ $(BASE_TEST_CS_SRC) \ @@ -701,7 +710,7 @@ EXTRA_DIST=test-driver test-runner.cs $(TEST_CS_SRC_DIST) $(TEST_IL_SRC) \ $(ILASM) -out:$@ $< %.exe: %.cs TestDriver.dll - $(MCS) -r:TestDriver.dll -out:$@ $< + $(MCS) -r:System.dll -r:System.Xml.dll -r:System.Core.dll -r:TestDriver.dll -r:Mono.Posix.dll -out:$@ $< # mkbundle works on ppc, but the pkg-config POC doesn't when run with make test if POWERPC @@ -869,7 +878,7 @@ runtest: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQS runtest-managed: test-runner.exe $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS) @if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \ - $(RUNTIME) --debug ./test-runner.exe -j a --testsuite-name "runtime" --disabled "$${disabled_tests}" $(TESTSI_CS) $(TESTBS) $(TESTSI_IL) + $(RUNTIME) --debug ./test-runner.exe -j a --testsuite-name "runtime" --timeout 300 --disabled "$${disabled_tests}" $(TESTSI_CS) $(TESTBS) $(TESTSI_IL) runtest-managed-serial: test-runner.exe $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS) @if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \ @@ -1184,7 +1193,7 @@ test-unhandled-exception: unhandled-exception-test-runner.2.exe unhandled-except # We use 'test-support-files' to handle an ordering issue between the 'mono/' and 'runtime/' directories bug-80307.exe: $(srcdir)/bug-80307.cs - $(MCS) -r:System.Web -out:$@ $(srcdir)/bug-80307.cs + $(MCS) -r:System.Web.dll -out:$@ $(srcdir)/bug-80307.cs cd $(top_builddir)/runtime && $(MAKE) test-support-files EXTRA_DIST += bug-81673-interface.cs @@ -1237,7 +1246,7 @@ bug-17537-helper.exe: bug-17537-helper.cs chmod -x $@ bug-17537.exe: bug-17537.cs bug-17537-helper.exe - $(MCS) -out:$@ $(srcdir)/bug-17537.cs + $(MCS) -r:System.dll -out:$@ $(srcdir)/bug-17537.cs EXTRA_DIST += coreclr-security.cs @@ -1271,7 +1280,7 @@ generic-delegate2.2.exe : generic-delegate2.2.cs generic-delegate2-lib.2.dll $(MCS) -r:generic-delegate2-lib.2.dll -out:$@ $(srcdir)/generic-delegate2.2.cs bug-3903.exe: bug-3903.cs - $(MCS) -sdk:2 $(srcdir)/bug-3903.cs -out:$@ + $(MCS_NO_LIB) -lib:$(srcdir)/../../external/binary-reference-assemblies/v2.0/ $(srcdir)/bug-3903.cs -r:System.Core.dll -out:$@ gshared: test-generic-sharing @@ -1373,25 +1382,35 @@ test-oom: $(OOM_TESTS) if HOST_WIN32 test-unhandled-exception-2: else -test-unhandled-exception-2: test-unhandled-exception-2-1 test-unhandled-exception-2-2 test-unhandled-exception-2-3 test-unhandled-exception-2-4 \ - test-unhandled-exception-2-5 test-unhandled-exception-2-6 test-unhandled-exception-2-7 test-unhandled-exception-2-8 - -test-unhandled-exception-2-1: unhandled-exception-1.exe test-runner.exe - @$(RUNTIME) ./test-runner.exe --testsuite-name $@ --expected-exit-code 1 $< -test-unhandled-exception-2-2: unhandled-exception-2.exe test-runner.exe - @$(RUNTIME) ./test-runner.exe --testsuite-name $@ --expected-exit-code 0 $< -test-unhandled-exception-2-3: unhandled-exception-3.exe test-runner.exe - @$(RUNTIME) ./test-runner.exe --testsuite-name $@ --expected-exit-code 255 $< -test-unhandled-exception-2-4: unhandled-exception-4.exe test-runner.exe - @$(RUNTIME) ./test-runner.exe --testsuite-name $@ --expected-exit-code 0 $< -test-unhandled-exception-2-5: unhandled-exception-5.exe test-runner.exe - @$(RUNTIME) ./test-runner.exe --testsuite-name $@ --expected-exit-code 255 $< -test-unhandled-exception-2-6: unhandled-exception-6.exe test-runner.exe - @$(RUNTIME) ./test-runner.exe --testsuite-name $@ --expected-exit-code 255 $< -test-unhandled-exception-2-7: unhandled-exception-7.exe test-runner.exe - @$(RUNTIME) ./test-runner.exe --testsuite-name $@ --expected-exit-code 255 $< -test-unhandled-exception-2-8: unhandled-exception-8.exe test-runner.exe - @$(RUNTIME) ./test-runner.exe --testsuite-name $@ --expected-exit-code 3 $< + +# tests that expect a 1 exit code +UNHANDLED_EXCEPTION_1_TESTS = \ + unhandled-exception-1.exe + +# tests that expect a 255 exit code +UNHANDLED_EXCEPTION_255_TESTS = \ + unhandled-exception-2.exe \ + unhandled-exception-3.exe \ + unhandled-exception-4.exe \ + unhandled-exception-5.exe \ + unhandled-exception-6.exe \ + unhandled-exception-7.exe + +test-unhandled-exception-2: $(UNHANDLED_EXCEPTION_1_TESTS) $(UNHANDLED_EXCEPTION_255_TESTS) + $(MAKE) test-unhandled-exception-2-1-with-managed-handler + $(MAKE) test-unhandled-exception-2-1-without-managed-handler + $(MAKE) test-unhandled-exception-2-255-with-managed-handler + $(MAKE) test-unhandled-exception-2-255-without-managed-handler + +test-unhandled-exception-2-1-with-managed-handler: $(UNHANDLED_EXCEPTION_1_TESTS) test-runner.exe + $(RUNTIME) ./test-runner.exe -j a --testsuite-name $@ --expected-exit-code 1 $(UNHANDLED_EXCEPTION_1_TESTS) +test-unhandled-exception-2-1-without-managed-handler: $(UNHANDLED_EXCEPTION_1_TESTS) test-runner.exe + TEST_UNHANDLED_EXCEPTION_HANDLER=1 $(RUNTIME) ./test-runner.exe -j a --testsuite-name $@ --expected-exit-code 1 $(UNHANDLED_EXCEPTION_1_TESTS) +test-unhandled-exception-2-255-with-managed-handler: $(UNHANDLED_EXCEPTION_255_TESTS) test-runner.exe + $(RUNTIME) ./test-runner.exe -j a --testsuite-name $@ --expected-exit-code 255 $(UNHANDLED_EXCEPTION_255_TESTS) +test-unhandled-exception-2-255-without-managed-handler: $(UNHANDLED_EXCEPTION_255_TESTS) test-runner.exe + TEST_UNHANDLED_EXCEPTION_HANDLER=1 $(RUNTIME) ./test-runner.exe -j a --testsuite-name $@ --expected-exit-code 255 $(UNHANDLED_EXCEPTION_255_TESTS) + endif EXTRA_DIST += appdomain-loader.cs appdomain-tester.cs @@ -1408,6 +1427,14 @@ test-console-output: console-output.exe @diff -w console-output.exe.stdout $(srcdir)/console-output.exe.stdout.expected \ && diff -w console-output.exe.stderr $(srcdir)/console-output.exe.stderr.expected +PROCESS_STRESS_TESTS= \ + process-stress-1.exe \ + process-stress-2.exe \ + process-stress-3.exe + +test-process-stress: $(PROCESS_STRESS_TESTS) test-runner.exe + $(RUNTIME) ./test-runner.exe --testsuite-name $@ --timeout 600 $(PROCESS_STRESS_TESTS) + coreclr-gcstress: $(MAKE) -C $(mono_build_root)/acceptance-tests coreclr-gcstress