X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Ftests%2FMakefile.am;h=6ee4b8be6a4286a4cf75b5bc68776fb7825a6ff5;hb=f1b172fc2d26c9c447c192b38c432dd8c5d911e0;hp=58392b04acda1cd231f9ad617c0684cfbaeaf289;hpb=7c7ae04f7fa23fb006c799798e9efc52faf54cb8;p=mono.git diff --git a/mono/tests/Makefile.am b/mono/tests/Makefile.am index 58392b04acd..6ee4b8be6a4 100644 --- a/mono/tests/Makefile.am +++ b/mono/tests/Makefile.am @@ -13,8 +13,8 @@ TEST_PROG = ../interpreter/mint JITTEST_PROG = $(if $(VALGRIND), valgrind $(VALGRIND_ARGS),) $(if $(SGEN),$(top_builddir)/mono/mini/mono-sgen,$(top_builddir)/mono/mini/mono) -TEST_PROG_RUN = MONO_SHARED_DIR=$(mono_build_root)/runtime MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(TEST_PROG) -JITTEST_PROG_RUN = MONO_SHARED_DIR=$(mono_build_root)/runtime MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(JITTEST_PROG) +TEST_PROG_RUN = MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(TEST_PROG) +JITTEST_PROG_RUN = MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(JITTEST_PROG) RUNTIME_ARGS=--config tests-config --optimize=all --debug @@ -57,6 +57,7 @@ BASE_TEST_CS_SRC= \ arraylist.cs \ assemblyresolve_event.cs \ assemblyresolve_event3.cs \ + assemblyresolve_event4.cs \ checked.cs \ char-isnumber.cs \ create-instance.cs \ @@ -109,6 +110,7 @@ BASE_TEST_CS_SRC= \ array.cs \ enum.cs \ enum2.cs \ + enum-intrins.cs \ property.cs \ enumcast.cs \ assignable-tests.cs \ @@ -214,6 +216,7 @@ BASE_TEST_CS_SRC= \ array3.cs \ classinit.cs \ classinit2.cs \ + classinit3.cs \ synchronized.cs \ async_read.cs \ threadpool.cs \ @@ -380,6 +383,7 @@ BASE_TEST_CS_SRC= \ bug-599469.cs \ bug-389886-3.cs \ monitor.cs \ + monitor-resurrection.cs \ dynamic-method-resurrection.cs \ bug-666008.cs \ bug-685908.cs \ @@ -401,7 +405,8 @@ BASE_TEST_CS_SRC= \ unload-appdomain-on-shutdown.cs \ block_guard_restore_aligment_on_exit.cs \ thread_static_gc_layout.cs \ - sleep.cs + sleep.cs \ + bug-17537.cs TEST_CS_SRC_DIST= \ $(BASE_TEST_CS_SRC) \ @@ -550,11 +555,13 @@ endif # bug-459094.exe creates an extremely deep directory tree # delegate-invoke.exe depends on 929c6bc9b6d76a273f251e6f5dfacac36e9c38bd which was # reverted. +# bug-Xamarin-5278.exe got broken by 5d26590e79da139a284459299aee95c25f4cd835 DISABLED_TESTS= \ delegate-async-exception.exe \ bug-348522.2.exe \ bug-459094.exe \ delegate-invoke.exe \ + bug-Xamarin-5278.exe \ $(PLATFORM_DISABLED_TESTS) \ $(EXTRA_DISABLED_TESTS) @@ -697,7 +704,7 @@ tests: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_ # # Test that no symbols are missed in eglib-remap.h # -OK_G_SYMBOLS='g_list\|g_slist\|g_concat_dir_and_file\|g_Ctoc' +OK_G_SYMBOLS='g_list\|g_slist\|g_concat_dir_and_file\|g_Ctoc\' if NACL_CODEGEN test-eglib-remap: else @@ -835,7 +842,7 @@ runtest-managed: test-runner.exe $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(RUNTIME) ./test-runner.exe -j a --disabled "$${disabled_tests}" $(TESTSI_CS) $(TESTBS) $(TESTSI_IL) testjit: - @if test x$(M) != x; then $(MAKE) runtest-managed; else $(MAKE) runtest; fi + @if test x$(M) != x0; then $(MAKE) runtest-managed; else $(MAKE) runtest; fi testaot: @$(MAKE) AOT=1 runtest @@ -878,7 +885,7 @@ stresstest: $(STRESS_TESTS) testbundle: console.exe @echo "Testing mkbundle..." @$(MKBUNDLE) --static console.exe > mkbundle.stdout - @$(with_mono_path) MONO_CFG_DIR=$(mono_cfg_dir) MONO_SHARED_DIR=$(mono_build_root)/runtime ./a.out >> mkbundle.stdout + @$(with_mono_path) MONO_CFG_DIR=$(mono_cfg_dir) ./a.out >> mkbundle.stdout @- rm -rf a.out EXTRA_DIST += load-missing.il t-missing.cs load-exceptions.cs @@ -899,12 +906,11 @@ test-cattr-type-load: TestDriver.dll custom-attr-errors.cs custom-attr-errors-li @$(RUNTIME) custom-attr-errors.exe > custom-attr-errors.exe.stdout 2> custom-attr-errors.exe.stderr EXTRA_DIST += reflection-load-with-context-lib.cs reflection-load-with-context-second-lib.cs reflection-load-with-context.cs -test-reflection-load-with-context: TestDriver.dll reflection-load-with-context-lib.cs reflection-load-with-context-second-lib.cs reflection-load-with-context.cs +test-reflection-load-with-context: reflection-load-with-context-lib.cs reflection-load-with-context-second-lib.cs reflection-load-with-context.exe rm -rf reflection-load-dir mkdir reflection-load-dir $(MCS) /t:library $(srcdir)/reflection-load-with-context-second-lib.cs -out:reflection-load-dir/reflection-load-with-context-second-lib.dll $(MCS) /t:library -r:reflection-load-dir/reflection-load-with-context-second-lib.dll $(srcdir)/reflection-load-with-context-lib.cs -out:reflection-load-dir/reflection-load-with-context-lib.dll - $(MCS) reflection-load-with-context.cs @echo "Testing reflection-load-with-context.cs.exe..." @$(RUNTIME) reflection-load-with-context.exe > reflection-load-with-context.exe.stdout 2> reflection-load-with-context.exe.stderr @@ -936,13 +942,11 @@ SGEN_TESTS = \ SGEN_CONFIGURATIONS = \ "|plain" \ - "major=marksweep-par|ms-par" \ "major=marksweep-conc|ms-conc" \ "major=marksweep-conc,minor=split|ms-conc-split" \ "minor=split|ms-split" \ "minor=split,alloc-ratio=95|ms-split-95" \ "|plain-clear-at-gc|clear-at-gc" \ - "major=marksweep-par|ms-par-clear-at-gc|clear-at-gc" \ "major=marksweep-conc|ms-conc-clear-at-gc|clear-at-gc" \ "minor=split|ms-split-clear-at-gc|clear-at-gc" @@ -951,10 +955,12 @@ SGEN_CONFIGURATIONS = \ SGEN_BRIDGE_CONFIGURATIONS = \ "|plain" \ ",major=marksweep-conc|ms-conc" \ - ",minor=split|ms-split" \ - ",bridge-implementation=new|plain-new-bridge" \ - ",bridge-implementation=new,major=marksweep-conc|ms-conc-new-bridge" \ - ",bridge-implementation=new,minor=split|ms-split-new-bridge" + "minor=split|ms-split" \ + "bridge-implementation=new|plain-new-bridge" \ + "bridge-implementation=new,major=marksweep-conc|ms-conc-new-bridge" \ + "bridge-implementation=new,minor=split|ms-split-new-bridge" \ + "bridge-implementation=tarjan|plain-tarjan-bridge" \ + "bridge-implementation=tarjan,minor=split|ms-split-tarjan-bridge" sgen-regular-tests: $(SGEN_TESTS) @failed=0; \ @@ -993,7 +999,7 @@ sgen-bridge-tests1: sgen-bridge.exe sgen-bridge-major-fragmentation.exe name=`echo $$conf | cut -d\| -f 2`; \ params=`echo $$conf | cut -d\| -f 1`; \ test_name="$${test}|$${name}"; \ - if MONO_GC_DEBUG="bridge=Bridge$${params}" MONO_ENV_OPTIONS="--gc=sgen" $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$test_name "$(DISABLED_TESTS_SGEN)" "$${dump_action}" $(RUNTIME_ARGS); \ + if MONO_GC_DEBUG="bridge=Bridge" MONO_GC_PARAMS="$${params}" MONO_ENV_OPTIONS="--gc=sgen" $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$test_name "$(DISABLED_TESTS_SGEN)" "$${dump_action}" $(RUNTIME_ARGS); \ then \ passed=`expr $${passed} + 1`; \ else \ @@ -1018,7 +1024,7 @@ sgen-bridge-tests2: sgen-bridge-xref.exe name=`echo $$conf | cut -d\| -f 2`; \ params=`echo $$conf | cut -d\| -f 1`; \ test_name="$${test}|$${name}"; \ - if MONO_GC_DEBUG="bridge=2Bridge$${params}" MONO_ENV_OPTIONS="--gc=sgen" $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$test_name "$(DISABLED_TESTS_SGEN)" "$${dump_action}" $(RUNTIME_ARGS); \ + if MONO_GC_DEBUG="bridge=2Bridge" MONO_GC_PARAMS="$${params}" MONO_ENV_OPTIONS="--gc=sgen" $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$test_name "$(DISABLED_TESTS_SGEN)" "$${dump_action}" $(RUNTIME_ARGS); \ then \ passed=`expr $${passed} + 1`; \ else \ @@ -1190,6 +1196,14 @@ bug-382986-lib.dll: bug-382986-lib.cs bug-382986.exe: bug-382986.cs bug-382986-lib.dll $(MCS) -out:$@ -r:bug-382986-lib.dll $(srcdir)/bug-382986.cs +EXTRA_DIST += bug-17537-helper.cs +bug-17537-helper.exe: bug-17537-helper.cs + $(MCS) -out:$@ $(srcdir)/bug-17537-helper.cs + chmod -x $@ + +bug-17537.exe: bug-17537.cs bug-17537-helper.exe + $(MCS) -out:$@ $(srcdir)/bug-17537.cs + EXTRA_DIST += coreclr-security.cs coreclr-security.exe : coreclr-security.cs @@ -1301,12 +1315,8 @@ patch-libtool: if NACL_CODEGEN test-process-exit: else -EXTRA_DIST += bug-438454.cs bug-438454.exe.stdout.expected threadpool-in-processexit.cs threadpool-in-processexit.exe.stdout.expected +EXTRA_DIST += threadpool-in-processexit.cs threadpool-in-processexit.exe.stdout.expected test-process-exit: - @$(MCS) $(srcdir)/bug-438454.cs -out:bug-438454.exe - @echo "Testing bug-438454.exe..." - @$(RUNTIME) bug-438454.exe > bug-438454.exe.stdout - @diff -w bug-438454.exe.stdout $(srcdir)/bug-438454.exe.stdout.expected @$(MCS) $(srcdir)/threadpool-in-processexit.cs -out:threadpool-in-processexit.exe @echo "Testing threadpool-in-processexit.exe..." @$(RUNTIME) threadpool-in-processexit.exe > threadpool-in-processexit.exe.stdout @@ -1321,7 +1331,6 @@ OOM_TESTS = \ test-oom: $(OOM_TESTS) @for fn in $+ ; do \ echo "Testing $$fn ..."; \ - MONO_GC_PARAMS=max-heap-size=16m,major=marksweep-par MONO_ENV_OPTIONS="--gc=sgen" $(RUNTIME) $$fn > $$fn.stdout || exit 1; \ MONO_GC_PARAMS=max-heap-size=16m MONO_ENV_OPTIONS="--gc=sgen" $(RUNTIME) $$fn > $$fn.stdout || exit 1; \ MONO_GC_PARAMS=max-heap-size=16m $(RUNTIME) $$fn > $$fn.stdout || exit 1; \ done