X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Ftests%2FMakefile.am;h=e93fb7de81fe72e9473bece369a46c8fbe661770;hb=fe836ec75603a22af7ff9216af481cb78fcabe08;hp=b5303524f2181cda052be396bda400893a7becc3;hpb=2099acf5f4a80c46bf4e75e9d67b8db4f2c86bbd;p=mono.git diff --git a/mono/tests/Makefile.am b/mono/tests/Makefile.am old mode 100644 new mode 100755 index b5303524f21..e93fb7de81f --- a/mono/tests/Makefile.am +++ b/mono/tests/Makefile.am @@ -1,19 +1,43 @@ -SUBDIRS = assemblyresolve gc-descriptors . testing_gac - -if FULL_AOT_TESTS -FEATUREFUL_RUNTIME_TEST = -else -FEATUREFUL_RUNTIME_TEST = test-appdomain-unload -endif - -check-local: assemblyresolve/test/asm.dll testjit test-generic-sharing test-type-load test-multi-netmodule test-cattr-type-load test-reflection-load-with-context test_platform \ - test-console-output test-env-options test-unhandled-exception-2 $(FEATUREFUL_RUNTIME_TEST) test-process-stress test-pedump rm-empty-logs runtest-gac-loading -check-full: test-sgen check-local -check-parallel: compile-tests check-full +SUBDIRS = gc-descriptors . testing_gac + +check-local: + ok=:; \ + $(MAKE) test-jit || ok=false; \ + $(MAKE) test-generic-sharing || ok=false; \ + $(MAKE) test-type-load || ok=false; \ + $(MAKE) test-multi-netmodule || ok=false; \ + $(MAKE) test-cattr-type-load || ok=false; \ + $(MAKE) test-reflection-load-with-context || ok=false; \ + $(MAKE) test-platform || ok=false; \ + $(MAKE) test-console-output || ok=false; \ + $(MAKE) test-env-options || ok=false; \ + $(MAKE) test-unhandled-exception-2 || ok=false; \ + $(MAKE) test-appdomain-unload || ok=false; \ + $(MAKE) test-process-stress || ok=false; \ + $(MAKE) test-pedump || ok=false; \ + $(MAKE) test-internalsvisibleto || ok=false; \ + $(MAKE) rm-empty-logs || ok=false; \ + $(MAKE) runtest-gac-loading || ok=false; \ + $$ok + +check-full: + ok=; \ + $(MAKE) test-sgen || ok=false; \ + $(MAKE) check-local || ok=false; \ + $$ok + +check-parallel: + ok=; \ + $(MAKE) compile-tests; \ + $(MAKE) check-full || ok=false; \ + $$ok check-coreclr: $(MAKE) -C $(mono_build_root)/acceptance-tests check-coreclr +check-stress: + $(MAKE) test-stress-sgen + # for backwards compatibility on Wrench test-wrench: check-parallel @@ -26,14 +50,6 @@ JITTEST_PROG_RUN = MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode RUNTIME_ARGS=--config tests-config --optimize=all --debug -if HOST_WIN32 -TEST_RUNNER_ARGS=--config tests-config --runtime $(if $(MONO_EXECUTABLE),$(shell cygpath -w -a $(MONO_EXECUTABLE) | sed 's/\\/\\\\/g'),mono) -else -TEST_RUNNER_ARGS=--config tests-config --runtime $(if $(MONO_EXECUTABLE),$(MONO_EXECUTABLE),mono) -endif - -TEST_RUNNER_ARGS += $(if $(V), --verbose,) - CLASS=$(mcs_topdir)/class/lib/$(DEFAULT_PROFILE) with_mono_path = MONO_PATH=$(CLASS) @@ -53,11 +69,12 @@ if HYBRID_AOT_TESTS PROFILE_MCS_FLAGS = -d:MOBILE,MOBILE_LEGACY endif -MCS_NO_LIB = $(TOOLS_RUNTIME) $(CSC) -unsafe -debug:portable \ +MCS_NO_UNSAFE = $(TOOLS_RUNTIME) $(CSC) -debug:portable \ -noconfig -nologo \ -nowarn:0162 -nowarn:0168 -nowarn:0219 -nowarn:0414 -nowarn:0618 \ -nowarn:0169 -nowarn:1690 -nowarn:0649 -nowarn:0612 -nowarn:3021 \ -nowarn:0197 $(PROFILE_MCS_FLAGS) +MCS_NO_LIB = $(MCS_NO_UNSAFE) -unsafe MCS = $(MCS_NO_LIB) @@ -66,17 +83,24 @@ ILASM = $(TOOLS_RUNTIME) $(mcs_topdir)/class/lib/build/ilasm.exe TEST_RUNNER = ./test-runner.exe --runtime $(top_builddir)/runtime/mono-wrapper --mono-path "$(CLASS)" if FULL_AOT_TESTS -TEST_RUNNER += --aot-run-flags "$(AOT_RUN_FLAGS)" --aot-build-flags "$(AOT_BUILD_FLAGS)" +TEST_RUNNER += --runtime-args "$(AOT_RUN_FLAGS)" endif if HYBRID_AOT_TESTS -TEST_RUNNER += --aot-run-flags "$(AOT_RUN_FLAGS)" --aot-build-flags "$(AOT_BUILD_FLAGS)" +TEST_RUNNER += --runtime-args "$(AOT_RUN_FLAGS)" endif +if HOST_WIN32 +TEST_RUNNER += --config tests-config --runtime $(if $(MONO_EXECUTABLE),$(shell cygpath -w -a $(MONO_EXECUTABLE) | sed 's/\\/\\\\/g'),mono) +else +TEST_RUNNER += --config tests-config --runtime $(if $(MONO_EXECUTABLE),$(MONO_EXECUTABLE),mono) +endif + +TEST_RUNNER += $(if $(V), --verbose,) -BENCHSRC=fib.cs random.cs nested-loops.cs ackermann.cs tight-loop.cs sieve.cs +TESTS_BENCH_SRC=fib.cs random.cs nested-loops.cs ackermann.cs tight-loop.cs sieve.cs -STRESS_TESTS_SRC= \ +TESTS_STRESS_SRC= \ abort-stress-1.cs \ abort-stress-2.cs \ abort-stress-3.cs \ @@ -93,7 +117,7 @@ STRESS_TESTS_SRC= \ # Disabled until ?mcs is fixed # bug-331958.cs -BASE_TEST_CS_SRC= \ +TESTS_CS_SRC= \ generic-unloading-sub.2.cs \ create-instance.cs \ bug-2907.cs \ @@ -103,6 +127,7 @@ BASE_TEST_CS_SRC= \ assemblyresolve_event.cs \ assemblyresolve_event3.cs \ assemblyresolve_event4.cs \ + assemblyresolve_event5.cs \ checked.cs \ char-isnumber.cs \ field-layout.cs \ @@ -322,6 +347,7 @@ BASE_TEST_CS_SRC= \ generic-static-methods.2.cs \ generic-null-call.2.cs \ generic-special.2.cs \ + generic-special2.2.cs \ generic-exceptions.2.cs \ generic-virtual2.2.cs \ generic-valuetype-interface.2.cs \ @@ -435,9 +461,11 @@ BASE_TEST_CS_SRC= \ appdomain1.cs \ appdomain2.cs \ appdomain-exit.cs \ + appdomain-serialize-exception.cs \ assemblyresolve_event2.2.cs \ appdomain-unload-callback.cs \ appdomain-unload-doesnot-raise-pending-events.cs \ + appdomain-unload-asmload.cs \ unload-appdomain-on-shutdown.cs \ bug-47295.cs \ loader.cs \ @@ -482,34 +510,19 @@ BASE_TEST_CS_SRC= \ appdomain-threadpool-unload.cs \ process-unref-race.cs \ bug-46661.cs \ - w32message.cs - -TEST_CS_SRC_DIST= \ - $(BASE_TEST_CS_SRC) \ - async-exc-compilation.cs \ - filter-stack.cs \ - finally_guard.cs \ - finally_block_ending_in_dead_bb.cs - -TEST_CS_SRC_GEN = \ + w32message.cs \ runtime-invoke.gen.cs \ imt_big_iface_test.cs if AMD64 -TEST_CS_SRC = $(BASE_TEST_CS_SRC) $(TEST_CS_SRC_GEN) async-exc-compilation.cs finally_guard.cs finally_block_ending_in_dead_bb.cs -else -if X86 -TEST_CS_SRC = $(BASE_TEST_CS_SRC) $(TEST_CS_SRC_GEN) async-exc-compilation.cs finally_guard.cs finally_block_ending_in_dead_bb.cs -else -TEST_CS_SRC = $(BASE_TEST_CS_SRC) $(TEST_CS_SRC_GEN) -endif +TESTS_CS_SRC += async-exc-compilation.cs finally_guard.cs finally_block_ending_in_dead_bb.cs endif -if IA64 -TEST_CS_SRC+=async-exc-compilation.cs filter-stack.cs +if X86 +TESTS_CS_SRC += async-exc-compilation.cs finally_guard.cs finally_block_ending_in_dead_bb.cs endif -TEST_IL_SRC= \ +TESTS_IL_SRC= \ field-access.il \ method-access.il \ ldftn-access.il \ @@ -576,7 +589,64 @@ TEST_IL_SRC= \ bug-318677.il \ gsharing-valuetype-layout.il \ invalid_generic_instantiation.il \ - bug-45841-fpstack-exceptions.il + bug-45841-fpstack-exceptions.il \ + instance_tailrec.il + +TESTS_GSHARED_SRC = \ + generics-sharing.2.cs \ + shared-generic-methods.2.cs \ + shared-generic-synchronized.2.cs \ + generic-initobj.2.cs \ + generics-sharing-other-exc.2.cs \ + generic-box.2.cs \ + generic-unbox.2.cs \ + generic-delegate.2.cs \ + generic-sizeof.2.cs \ + generic-ldobj.2.cs \ + generic-mkrefany.2.cs \ + generic-refanyval.2.cs \ + generic-ldtoken.2.cs \ + generic-ldtoken-method.2.cs \ + generic-ldtoken-field.2.cs \ + generic-virtual.2.cs \ + generic-tailcall.2.cs \ + generic-interface-methods.2.cs \ + generic-array-type.2.cs \ + generic-method-patching.2.cs \ + generic-static-methods.2.cs \ + generic-null-call.2.cs \ + generic-tailcall2.2.cs \ + generic-array-exc.2.cs \ + generic-special.2.cs \ + generic-special2.2.cs \ + generic-exceptions.2.cs \ + generic-delegate2.2.cs \ + generic-virtual2.2.cs \ + generic-valuetype-interface.2.cs \ + generic-valuetype-newobj.2.cs \ + generic-valuetype-newobj2.2.cs \ + generic-getgenericarguments.2.cs \ + generic-synchronized.2.cs \ + generic-delegate-ctor.2.cs \ + generic-constrained.2.cs \ + bug-431413.2.cs \ + generic-virtual-invoke.2.cs \ + generic-typedef.2.cs \ + generic-marshalbyref.2.cs \ + bug-459285.2.cs \ + bug-461198.2.cs \ + generic-sealed-virtual.2.cs \ + generic-system-arrays.2.cs \ + generic-stack-traces.2.cs \ + generic-stack-traces2.2.cs \ + bug-472600.2.cs \ + bug-473482.2.cs \ + bug-473999.2.cs \ + bug-479763.2.cs \ + generic-type-load-exception.2.cs \ + bug-616463.cs \ + bug-1147.cs \ + generic-type-builder.2.cs if AMD64 # #651684 @@ -588,17 +658,13 @@ endif endif -if IA64 -# bug #319249 -PLATFORM_DISABLED_TESTS=exception17.exe -PLATFORM_DISABLED_TESTS+=winx64structs.exe -endif - if X86 if HOST_WIN32 PLATFORM_DISABLED_TESTS=async-exc-compilation.exe finally_guard.exe finally_block_ending_in_dead_bb.exe \ - bug-18026.exe monitor.exe threadpool-exceptions5.exe process-unref-race.exe w32message.exe + bug-18026.exe monitor.exe threadpool-exceptions5.exe process-unref-race.exe w32message.exe \ + unhandled-exception-1.exe unhandled-exception-2.exe unhandled-exception-3.exe unhandled-exception-4.exe \ + unhandled-exception-5.exe unhandled-exception-6.exe unhandled-exception-7.exe unhandled-exception-8.exe endif endif @@ -612,13 +678,19 @@ if POWERPC64 # FIXME: These tests hang/fail for unknown reasons PLATFORM_DISABLED_TESTS=monitor.exe threadpool-exceptions5.exe appdomain-thread-abort.exe appdomain-unload.exe \ pinvoke2.exe pinvoke3.exe pinvoke11.exe threadpool-exceptions7.exe winx64structs.exe bug-10127.exe pinvoke_ppcc.exe \ - pinvoke_ppcs.exe pinvoke_ppci.exe pinvoke_ppcf.exe pinvoke_ppcd.exe abort-cctor.exe \ + pinvoke_ppcs.exe pinvoke_ppci.exe pinvoke_ppcf.exe pinvoke_ppcd.exe abort-cctor.exe load-exceptions.exe \ sgen-domain-unload-2.exe sgen-weakref-stress.exe sgen-cementing-stress.exe sgen-new-threads-dont-join-stw.exe \ sgen-new-threads-dont-join-stw-2.exe sgen-new-threads-collect.exe sgen-bridge.exe endif if ARM PLATFORM_DISABLED_TESTS=filter-stack.exe +INTERP_DISABLED_TESTS_PLATFORM=finalizer-exception.exe main-returns-abort-resetabort.exe block_guard_restore_aligment_on_exit.exe \ + delegate-exit.exe delegate-exit.exe delegate-delegate-exit.exe delegate-async-exit.exe delegate3.exe delegate1.exe +endif + +if ARM64 +INTERP_DISABLED_TESTS_PLATFORM=finalizer-exception.exe main-returns-abort-resetabort.exe block_guard_restore_aligment_on_exit.exe endif if MIPS @@ -629,92 +701,12 @@ endif if S390X PLATFORM_DISABLED_TESTS=dynamic-method-resurrection.exe #PLATFORM_DISABLED_TESTS=dynamic-method-resurrection.exe exception17.exe -endif - -if NACL_CODEGEN -# Tests that use Thread.Abort() -PLATFORM_DISABLED_TESTS= abort-stress-1.exe \ - abort-stress-2.exe \ - abort-stress-3.exe \ - appdomain-thread-abort.exe \ - async-exc-compilation.exe \ - bug-561239.exe \ - bug-70561.exe \ - finalizer-abort.exe \ - finally_guard.exe \ - finally_block_ending_in_dead_bb.exe \ - main-returns-abort-resetabort.exe \ - main-returns-background-abort-resetabort.exe \ - thread6.exe \ - threadpool-exceptions5.exe \ - threadpool-exceptions6.exe - -PLATFORM_DISABLED_TESTS+= w32message.exe - -# Tests that rely on AppDomain.Unload -PLATFORM_DISABLED_TESTS+= appdomain-async-invoke.exe \ - appdomain-exit.exe \ - appdomain-unload-callback.exe \ - appdomain-unload.exe \ - domain-stress.exe \ - generic-unloading.2.exe \ - monitor.exe \ - remoting4.exe \ - threadpool-exceptions7.exe \ - xdomain-threads.exe - -# pinvoke2 attaches a thread to the runtime, but -# doesn't 'unattach' it and it hangs in GC on exit -PLATFORM_DISABLED_TESTS+= pinvoke2.exe - -# Tests that currently hang waiting for non-main threads -# to exit in NaCl, need to investigate. Most are AppDomain -# creation and Delegate tests. -PLATFORM_DISABLED_TESTS+= appdomain1.exe \ - delegate9.exe \ - marshal-valuetypes.exe \ - cross-domain.exe \ - stackframes-async.2.exe \ - generic-marshalbyref.2.exe \ - generic-xdomain.2.exe \ - bug-415577.exe - -# Tests that fail trying to write files (appdomain create mostly) -PLATFORM_DISABLED_TESTS+= bug-335131.2.exe \ - bug-349190.2.exe \ - bug-80307.exe \ - bug-462592.exe - -# FIXME: don't know why delegate2.exe fails, it shouldn't -PLATFORM_DISABLED_TESTS+= delegate2.exe - -# These tests newly fail with the latest revision. pinvoke3 fails because -# of a thread attach, the others have not been investigated. TODO revisit. -PLATFORM_DISABLED_TESTS+= pinvoke3.exe \ - async_read.exe \ - async-with-cb-throws.exe \ - appdomain-unload-doesnot-raise-pending-events.exe \ - gsharing-valuetype-layout.exe - -if X86 -# FIXME: There are problems with async callbacks and results on NaCl 32-bit -PLATFORM_DISABLED_TESTS+= delegate1.exe \ - delegate3.exe \ - delegate5.exe \ - delegate8.exe \ - threadpool.exe \ - threadpool1.exe \ - threadpool-exceptions3.exe \ - bug-323114.exe \ - delegate-exit.exe \ - bug-80392.2.exe - -# FIXME: These tests hang/fail for unknown reasons, deal with exiting -PLATFORM_DISABLED_TESTS+= main-returns-background-resetabort.exe \ - main-returns-background.exe \ - main-returns-background-change.exe -endif +PLATFORM_DISABLED_TESTS += \ + sgen-toggleref.exe \ + sgen-bridge.exe \ + sgen-bridge-major-fragmentation.exe \ + sgen-bridge-xref.exe endif if ENABLE_COOP @@ -742,7 +734,12 @@ PROFILE_DISABLED_TESTS += \ call_missing_class.exe \ ldfld_missing_field.exe \ ldfld_missing_class.exe \ - vt-sync-method.exe + vt-sync-method.exe \ + resolve_method_bug.2.exe \ + resolve_field_bug.2.exe \ + resolve_type_bug.2.exe \ + bug-81691.exe \ + bug-327438.2.exe # Tests which rely on remoting PROFILE_DISABLED_TESTS += \ @@ -786,6 +783,7 @@ PROFILE_DISABLED_TESTS += \ appdomain1.exe \ appdomain2.exe \ appdomain-exit.exe \ + appdomain-unload-asmload.exe \ appdomain-unload-callback.exe \ appdomain-unload-doesnot-raise-pending-events.exe \ unload-appdomain-on-shutdown.exe \ @@ -830,7 +828,8 @@ PROFILE_DISABLED_TESTS += \ bug-389886-3.exe \ constant-division.exe \ dynamic-method-resurrection.exe \ - assembly_append_ordering.exe + assembly_append_ordering.exe \ + assemblyresolve_event5.exe # Test which needs System.Web support PROFILE_DISABLED_TESTS += \ @@ -856,6 +855,18 @@ PROFILE_DISABLED_TESTS += \ PROFILE_DISABLED_TESTS += \ constraints-load.exe \ bug-515884.exe + +PROFILE_DISABLED_TESTS += \ + generic-type-builder.2.exe + +PROFILE_DISABLED_TESTS += \ + sgen-domain-unload.exe \ + sgen-domain-unload-2.exe + +PROFILE_DISABLED_TESTS += \ + appdomain-loader.exe \ + assemblyresolve_event3.exe \ + appdomain-serialize-exception.exe endif if HYBRID_AOT_TESTS @@ -883,6 +894,7 @@ CI_PR_DISABLED_TESTS = \ # appdomain-threadpool-unload.exe creates 100 appdomains, takes too long with llvm LLVM_DISABLED_TESTS = \ + finally_block_ending_in_dead_bb.exe \ appdomain-threadpool-unload.exe LLVM = $(filter --llvm, $(MONO_ENV_OPTIONS)) @@ -893,7 +905,6 @@ LLVM = $(filter --llvm, $(MONO_ENV_OPTIONS)) # delegate-invoke.exe depends on 929c6bc9b6d76a273f251e6f5dfacac36e9c38bd which was # reverted. # bug-Xamarin-5278.exe got broken by 5d26590e79da139a284459299aee95c25f4cd835 -# bug-45841-fpstack-exceptions.exe: https://bugzilla.xamarin.com/show_bug.cgi?id=47053 # appdomain-thread-abort.exe: https://bugzilla.xamarin.com/show_bug.cgi?id=47054 KNOWN_FAILING_TESTS = \ delegate-async-exception.exe \ @@ -901,7 +912,6 @@ KNOWN_FAILING_TESTS = \ bug-459094.exe \ delegate-invoke.exe \ bug-Xamarin-5278.exe \ - bug-45841-fpstack-exceptions.exe \ appdomain-thread-abort.exe DISABLED_TESTS = \ @@ -919,9 +929,12 @@ INTERP_DISABLED_TESTS = \ $(CI_PR_DISABLED_TESTS) \ $(CI_DISABLED_TESTS) \ $(KNOWN_FAILING_TESTS) \ + $(INTERP_DISABLED_TESTS_PLATFORM) \ abort-cctor.exe \ appdomain-async-invoke.exe \ appdomain-exit.exe \ + appdomain-serialize-exception.exe \ + appdomain-unload-asmload.exe \ appdomain-unload-callback.exe \ appdomain-unload-doesnot-raise-pending-events.exe \ appdomain-unload.exe \ @@ -940,6 +953,7 @@ INTERP_DISABLED_TESTS = \ bug-327438.2.exe \ bug-335131.2.exe \ bug-415577.exe \ + bug-45841-fpstack-exceptions.exe \ bug-461867.exe \ bug-461941.exe \ bug-46661.exe \ @@ -956,26 +970,16 @@ INTERP_DISABLED_TESTS = \ call_missing_method.exe \ calliGenericTest.exe \ cominterop.exe \ - constant-division.exe \ context-static.exe \ cross-domain.exe \ - delegate-async-exit.exe \ - delegate-delegate-exit.exe \ - delegate-exit.exe \ delegate-with-null-target.exe \ - delegate1.exe \ - delegate3.exe \ - delegate5.exe \ - delegate8.exe \ delegate9.exe \ - dynamic-method-access.2.exe \ - dynamic-method-finalize.2.exe \ - dynamic-method-resurrection.exe \ dynamic-method-stack-traces.exe \ even-odd.exe \ exception18.exe \ field-access.exe \ finally_block_ending_in_dead_bb.exe \ + generic-array-exc.2.exe \ generic-marshalbyref.2.exe \ generic-mkrefany.2.exe \ generic-refanyval.2.exe \ @@ -1043,36 +1047,39 @@ INTERP_DISABLED_TESTS = \ winx64structs.exe \ xdomain-threads.exe -# pre-requisite test sources: files that are not test themselves -# but that need to be compiled -PREREQ_IL_SRC=event-il.il module-cctor.il -PREREQ_CS_SRC= -PREREQ_IL_DLL_SRC= -PREREQ_CS_DLL_SRC= - -PREREQSI_IL=$(PREREQ_IL_SRC:.il=.exe) \ - $(PREREQ_IL_DLL_SRC:.il=.dll) -PREREQSI_CS=$(PREREQ_CS_SRC:.cs=.exe) \ - $(PREREQ_CS_DLL_SRC:.cs=.dll) -TESTSI_CS=$(filter-out $(DISABLED_TESTS),$(TEST_CS_SRC:.cs=.exe)) -TESTSI_IL=$(filter-out $(DISABLED_TESTS),$(TEST_IL_SRC:.il=.exe)) -TESTBS=$(filter-out $(DISABLED_TESTS),$(BENCHSRC:.cs=.exe)) -STRESS_TESTS=$(filter-out $(DISABLED_TESTS),$(STRESS_TESTS_SRC:.cs=.exe)) - -PREREQSI_IL_AOT=$(PREREQ_IL_SRC:.il=.exe$(PLATFORM_AOT_SUFFIX)) \ - $(PREREQ_IL_DLL_SRC:.il=.dll$(PLATFORM_AOT_SUFFIX)) -PREREQSI_CS_AOT=$(PREREQ_CS_SRC:.cs=.exe$(PLATFORM_AOT_SUFFIX)) \ - $(PREREQ_CS_DLL_SRC:.cs=.dll$(PLATFORM_AOT_SUFFIX)) - -EXTRA_DIST=test-driver test-runner.cs $(TEST_CS_SRC_DIST) $(TEST_IL_SRC) \ - $(BENCHSRC) $(STRESS_TESTS_SRC) stress-runner.pl $(PREREQ_IL_SRC) $(PREREQ_CS_SRC) +TESTS_CS=$(filter-out $(DISABLED_TESTS),$(TESTS_CS_SRC:.cs=.exe)) +TESTS_IL=$(filter-out $(DISABLED_TESTS),$(TESTS_IL_SRC:.il=.exe)) +TESTS_BENCH=$(filter-out $(DISABLED_TESTS),$(TESTS_BENCH_SRC:.cs=.exe)) +TESTS_STRESS=$(filter-out $(DISABLED_TESTS),$(TESTS_STRESS_SRC:.cs=.exe)) +TESTS_GSHARED=$(filter-out $(DISABLED_TESTS),$(TESTS_GSHARED_SRC:.cs=.exe)) + +if FULL_AOT_TESTS +TESTSAOT_CS=$(TESTS_CS:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +TESTSAOT_IL=$(TESTS_IL:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +TESTSAOT_BENCH=$(TESTS_BENCH:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +TESTSAOT_STRESS=$(TESTS_STRESS:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +TESTSAOT_GSHARED=$(TESTS_GSHARED:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +endif + +if HYBRID_AOT_TESTS +TESTSAOT_CS=$(TESTS_CS:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +TESTSAOT_IL=$(TESTS_IL:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +TESTSAOT_BENCH=$(TESTS_BENCH:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +TESTSAOT_STRESS=$(TESTS_STRESS:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +TESTSAOT_GSHARED=$(TESTS_GSHARED:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +endif + +EXTRA_DIST=test-driver test-runner.cs $(TESTS_CS_SRC) $(TESTS_IL_SRC) \ + $(TESTS_BENCH_SRC) $(TESTS_STRESS_SRC) stress-runner.pl %.exe: %.il $(ILASM) -out:$@ $< if !FULL_AOT_TESTS +if !HYBRID_AOT_TESTS TEST_DRIVER_HARD_KILL_FEATURE=-r:$(CLASS)/Mono.Posix.dll endif +endif if FULL_AOT_TESTS TEST_DRIVER_DEPEND=TestDriver.dll$(PLATFORM_AOT_SUFFIX) @@ -1093,6 +1100,8 @@ test-runner.exe: test-runner.cs $(TEST_DRIVER_DEPEND) %.dll: %.cs $(MCS) -r:$(CLASS)/System.dll -target:library -out:$@ $< +%.dll: %.il + $(ILASM) /dll /output:$@ $< reference-loader.exe: reference-loader.cs TestingReferenceAssembly.dll TestingReferenceReferenceAssembly.dll $(TEST_DRIVER_DEPEND) $(MCS) -r:$(CLASS)/System.dll -r:TestDriver.dll -r:TestingReferenceAssembly.dll -r:TestingReferenceReferenceAssembly.dll $(TEST_DRIVER_HARD_KILL_FEATURE) -out:$@ $(srcdir)/reference-loader.cs @@ -1111,92 +1120,62 @@ TestingReferenceReferenceAssembly.dll: TestingReferenceReferenceAssembly.cs Test # mkbundle works on ppc, but the pkg-config POC doesn't when run with make test if POWERPC -test_platform: +test-platform: else # Can't use mkbundle on win32 since there is no static build there # Can't run test-unhandled-exception on Windows because of all the debug popups... if HOST_WIN32 -test_platform: +test-platform: else # mkbundle uses the installed mono-2.pc so it won't work if there is no system mono -#test_platform: testbundle test-iomap-regression -test_platform: test-iomap-regression -endif -endif - -if X86 -if HOST_WIN32 -else -test_platform: test-eglib-remap -endif -endif - -AOT_EXTRA_LIBS = \ -bug-382986-lib.dll$(PLATFORM_AOT_SUFFIX) \ -bug-324535-il.dll$(PLATFORM_AOT_SUFFIX) \ -bug-36848-a.dll$(PLATFORM_AOT_SUFFIX) \ -bug-81691-b.dll$(PLATFORM_AOT_SUFFIX) \ -bug-327438.2.exe$(PLATFORM_AOT_SUFFIX) \ -bug-81466-lib.dll$(PLATFORM_AOT_SUFFIX) - -if FULL_AOT_TESTS -prereqs: $(PREREQSI_IL_AOT) $(PREREQSI_CS_AOT) $(AOT_EXTRA_LIBS) -else -if HYBRID_AOT_TESTS -prereqs: $(PREREQSI_IL_AOT) $(PREREQSI_CS_AOT) $(AOT_EXTRA_LIBS) -else -prereqs: $(PREREQSI_IL) $(PREREQSI_CS) +#test-platform: testbundle test-iomap-regression +test-platform: test-iomap-regression endif endif # Target to precompile the test executables -tests: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la prereqs $(GSHARED_TESTS) +tests: compile-tests # # Test that no symbols are missed in eglib-remap.h # -OK_G_SYMBOLS='g_list\|g_slist\|g_concat_dir_and_file\|g_Ctoc\' -if NACL_CODEGEN -test-eglib-remap: +if PLATFORM_LINUX +test-platform: test-eglib-remap else +if PLATFORM_DARWIN +test-platform: test-eglib-remap +endif +endif +# The following regexp describes all symbols that start with "g_" but are not part of eglibc. +# The optional underscore prepending symbol names may or may not appear depending on the +# system and the state of the leading-underscore compiler flag. +OK_G_SYMBOLS='\<_?g_(s?list_(pre|ap)pend_(image|mempool)|concat_dir_and_file|Ctoc)\>' test-eglib-remap: @echo "Testing eglib remap..." - @if which nm > /dev/null; then if nm $(top_builddir)/mono/mini/mono | grep -v $(OK_G_SYMBOLS) | grep 't g_'; then exit 1; else exit 0; fi; fi -endif + @if which nm > /dev/null; then if nm $(top_builddir)/mono/mini/mono | grep -Ev $(OK_G_SYMBOLS) | grep -E 't _?g_'; then exit 1; else exit 0; fi; fi test-env-options: MONO_ENV_OPTIONS="--version" $(RUNTIME) array-init.exe | grep -q Architecture: -test-sgen : sgen-tests - # Precompile the test assemblies in parallel compile-tests: - $(MAKE) -j4 $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS) compile-gac-loading -if FULL_AOT_TESTS - $(MAKE) $(PREREQSI_IL_AOT) $(PREREQSI_CS_AOT) $(AOT_EXTRA_LIBS) -endif -if HYBRID_AOT_TESTS - $(MAKE) $(PREREQSI_IL_AOT) $(PREREQSI_CS_AOT) $(AOT_EXTRA_LIBS) -endif + $(MAKE) -j4 $(TESTS_CS) $(TESTS_IL) $(TESTS_BENCH) $(TESTS_STRESS) $(TESTS_GSHARED) $(TESTSAOT_CS) $(TESTSAOT_IL) $(TESTSAOT_BENCH) $(TESTSAOT_STRESS) $(TESTSAOT_GSHARED) compile-gac-loading # Remove empty .stdout and .stderr files for wrench rm-empty-logs: @echo "Removing empty logs..." find . '(' -name "*.stdout" -o -name "*.stderr" ')' -size 0 -exec rm {} \; -assemblyresolve/test/asm.dll: - $(MAKE) -C assemblyresolve prereq - TestDriver.dll: $(MCS) -target:library -out:$@ $(srcdir)/../mini/TestDriver.cs $(srcdir)/../mini/TestHelpers.cs -runtest: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS) +runtest: compile-tests @failed=0; \ passed=0; \ failed_tests="";\ if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \ rm -f testlist testlist.sorted; \ - for i in $(TESTSI_CS) $(TESTBS) $(TESTSI_IL); do echo $${i} >> testlist; sort testlist > testlist.sorted; done; \ + for i in $(TESTS_CS) $(TESTS_IL) $(TESTS_BENCH); do echo $${i} >> testlist; sort testlist > testlist.sorted; done; \ for i in `cat testlist.sorted`; do \ rm -f $${i}.so; \ $(with_mono_path) $(JITTEST_PROG_RUN) --aot --debug $${i} > $${i}.aotlog 2>&1 || exit 1; \ @@ -1223,13 +1202,13 @@ runtest: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQS exit 1; \ fi -runtest-managed: test-runner.exe $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS) - $(TOOLS_RUNTIME) --debug $(TEST_RUNNER) $(TEST_RUNNER_ARGS) -j a --testsuite-name "runtime" --timeout 300 --disabled "$(DISABLED_TESTS)" $(TESTSI_CS) $(TESTBS) $(TESTSI_IL) +runtest-managed: test-runner.exe compile-tests + $(TOOLS_RUNTIME) --debug $(TEST_RUNNER) -j a --testsuite-name "runtime" --timeout 300 --disabled "$(DISABLED_TESTS)" $(TESTS_CS) $(TESTS_IL) $(TESTS_BENCH) -runtest-managed-serial: test-runner.exe $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS) - $(TOOLS_RUNTIME) --debug $(TEST_RUNNER) $(TEST_RUNNER_ARGS) -j 1 --testsuite-name "runtime" --disabled "$(DISABLED_TESTS)" $(TESTSI_CS) $(TESTBS) $(TESTSI_IL) +runtest-managed-serial: test-runner.exe compile-tests + $(TOOLS_RUNTIME) --debug $(TEST_RUNNER) -j 1 --testsuite-name "runtime" --disabled "$(DISABLED_TESTS)" $(TESTS_CS) $(TESTS_IL) $(TESTS_BENCH) -testjit: +test-jit: @if test x$(M) != x0; then $(MAKE) runtest-managed; else $(MAKE) runtest; fi testaot: @@ -1238,25 +1217,24 @@ testaot: testtrace: @$(MAKE) RUNTIME_ARGS="$${RUNTIME_ARGS} --trace" runtest -testinterp: test-runner.exe $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS) - $(TOOLS_RUNTIME) --debug $(TEST_RUNNER) $(TEST_RUNNER_ARGS) -j a --runtime-args "--interpreter" --testsuite-name "runtime-interp" --timeout 300 --disabled "$(INTERP_DISABLED_TESTS)" $(TESTSI_CS) $(TESTBS) $(TESTSI_IL) +testinterp: test-runner.exe compile-tests + $(TOOLS_RUNTIME) --debug $(TEST_RUNNER) -j a --runtime-args "--interpreter" --testsuite-name "runtime-interp" --timeout 300 --disabled "$(INTERP_DISABLED_TESTS)" $(TESTS_CS) $(TESTS_IL) $(TESTS_BENCH) -testjitspeed: $(JITTEST_PROG) $(TESTBS) - for i in $(TESTBS); do \ +testjitspeed: $(JITTEST_PROG) compile-tests + for i in $(TESTS_BENCH); do \ echo $$i; \ time $(JITTEST_PROG) $$i; \ done -test-iomap-regression: exists.cs - @$(MCS) $(srcdir)/exists.cs -out:exists.exe +test-iomap-regression: exists.exe @echo "Testing exists.exe..." @MONO_IOMAP=all $(RUNTIME) exists.exe -stresstest: $(STRESS_TESTS) +stresstest: compile-tests @failed=0; \ passed=0; \ failed_tests="";\ - for i in $(STRESS_TESTS); do \ + for i in $(TESTS_STRESS); do \ if $(srcdir)/stress-runner.pl $$i ../mini/mono $(RUNTIME_ARGS); \ then \ passed=`expr $${passed} + 1`; \ @@ -1277,60 +1255,82 @@ testbundle: console.exe @- rm -rf a.out EXTRA_DIST += load-missing.il t-missing.cs load-exceptions.cs -test-type-load: $(TEST_DRIVER_DEPEND) + +load-missing.dll: load-missing.il + $(Q) $(ILASM) /dll /output:$@ $< + +load-exceptions.exe t.dll: load-exceptions.cs t-missing.cs load-missing.dll $(TEST_DRIVER_DEPEND) + $(Q) $(MCS) -t:library -out:t.dll -d:FOUND t-missing.cs + $(Q) $(MCS) -r:TestDriver.dll -r:load-missing.dll -r:t.dll -out:$@ $< + $(Q) $(MCS) -t:library -out:t.dll t-missing.cs + +test-type-load: load-exceptions.exe if !POWERPC64 - @$(ILASM) /dll /output:load-missing.dll $(srcdir)/load-missing.il > /dev/null - @$(MCS) -t:library -out:t.dll -d:FOUND $(srcdir)/t-missing.cs - @$(MCS) -r:TestDriver.dll -r:load-missing.dll -r:t.dll -out:load-exceptions.exe $(srcdir)/load-exceptions.cs - @$(MCS) -t:library -out:t.dll $(srcdir)/t-missing.cs - @echo "Testing load-exception.exe..." - @$(RUNTIME) load-exceptions.exe > load-exceptions.exe.stdout 2> load-exceptions.exe.stderr + $(Q) $(RUNTIME) load-exceptions.exe > load-exceptions.exe.stdout 2> load-exceptions.exe.stderr endif EXTRA_DIST += test-multi-netmodule-1-netmodule.cs test-multi-netmodule-2-dll1.cs test-multi-netmodule-3-dll2.cs test-multi-netmodule-4-exe.cs -test-multi-netmodule: - @$(MCS) -t:module test-multi-netmodule-1-netmodule.cs - @$(MCS) -addmodule:test-multi-netmodule-1-netmodule.netmodule -t:library test-multi-netmodule-2-dll1.cs - @$(MCS) -addmodule:test-multi-netmodule-1-netmodule.netmodule -t:library test-multi-netmodule-3-dll2.cs - @$(MCS) -r:test-multi-netmodule-2-dll1.dll test-multi-netmodule-4-exe.cs - $(RUNTIME) test-multi-netmodule-4-exe.exe > test-multi-netmodule-4-exe.exe.stdout 2> test-multi-netmodule-4-exe.exe.stderr + +test-multi-netmodule-1-netmodule.netmodule: test-multi-netmodule-1-netmodule.cs + $(Q) $(MCS) -t:module -out:$@ $< +test-multi-netmodule-2-dll1.dll: test-multi-netmodule-2-dll1.cs test-multi-netmodule-1-netmodule.netmodule + $(Q) $(MCS) -addmodule:test-multi-netmodule-1-netmodule.netmodule -t:library -out:$@ $< +test-multi-netmodule-3-dll2.dll: test-multi-netmodule-3-dll2.cs test-multi-netmodule-1-netmodule.netmodule + $(Q) $(MCS) -addmodule:test-multi-netmodule-1-netmodule.netmodule -t:library -out:$@ $< +test-multi-netmodule-4-exe.exe: test-multi-netmodule-4-exe.cs test-multi-netmodule-2-dll1.dll test-multi-netmodule-3-dll2.dll + $(Q) $(MCS) -r:test-multi-netmodule-2-dll1.dll -out:$@ $< + +test-multi-netmodule: test-multi-netmodule-4-exe.exe + $(Q) $(RUNTIME) test-multi-netmodule-4-exe.exe > test-multi-netmodule-4-exe.exe.stdout 2> test-multi-netmodule-4-exe.exe.stderr EXTRA_DIST += custom-attr-errors.cs custom-attr-errors-lib.cs -test-cattr-type-load: $(TEST_DRIVER_DEPEND) custom-attr-errors.cs custom-attr-errors-lib.cs - $(MCS) -D:WITH_MEMBERS /t:library $(srcdir)/custom-attr-errors-lib.cs - $(MCS) -r:TestDriver.dll -r:custom-attr-errors-lib.dll $(srcdir)/custom-attr-errors.cs - $(MCS) /t:library $(srcdir)/custom-attr-errors-lib.cs - @echo "Testing custom-attribute-load-exceptions.exe..." - @$(RUNTIME) custom-attr-errors.exe > custom-attr-errors.exe.stdout 2> custom-attr-errors.exe.stderr + +custom-attr-errors.exe custom-attr-errors-lib.dll: custom-attr-errors.cs custom-attr-errors-lib.cs $(TEST_DRIVER_DEPEND) + $(Q) $(MCS) /t:library -D:WITH_MEMBERS custom-attr-errors-lib.cs + $(Q) $(MCS) -r:TestDriver.dll -r:custom-attr-errors-lib.dll custom-attr-errors.cs + $(Q) $(MCS) /t:library custom-attr-errors-lib.cs + +test-cattr-type-load: custom-attr-errors.exe + $(Q) $(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: 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 - @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 + +reflection-load-with-context-second-lib.dll: reflection-load-with-context-second-lib.cs + $(Q) $(MCS) /t:library -out:$@ $< +reflection-load-with-context-lib.dll: reflection-load-with-context-lib.cs reflection-load-with-context-second-lib.dll + $(Q) $(MCS) /t:library -r:reflection-load-with-context-second-lib.dll -out:$@ $< +reflection-load-with-context.exe: reflection-load-with-context-lib.dll + +test-reflection-load-with-context: reflection-load-with-context.exe + $(Q) $(RUNTIME) reflection-load-with-context.exe > reflection-load-with-context.exe.stdout 2> reflection-load-with-context.exe.stderr EXTRA_DIST += debug-casts.cs # This depends on TLS, so its not ran by default -debug-casts: - @$(MCS) -r:TestDriver.dll $(srcdir)/debug-casts.cs - @$(RUNTIME) --debug=casts debug-casts.exe +debug-casts: debug-casts.exe + $(Q) $(RUNTIME) --debug=casts debug-casts.exe EXTRA_DIST += sgen-bridge.cs sgen-descriptors.cs sgen-gshared-vtype.cs sgen-bridge-major-fragmentation.cs sgen-domain-unload.cs sgen-weakref-stress.cs sgen-cementing-stress.cs sgen-case-23400.cs finalizer-wait.cs critical-finalizers.cs sgen-domain-unload-2.cs sgen-suspend.cs sgen-new-threads-dont-join-stw.cs sgen-new-threads-dont-join-stw-2.cs sgen-new-threads-collect.cs sgen-bridge-xref.cs bug-17590.cs sgen-toggleref.cs sgen-bridge-gchandle.cs - -sgen-tests: - $(MAKE) sgen-regular-tests -if !S390X - $(MAKE) sgen-toggleref-tests - $(MAKE) sgen-bridge-tests - $(MAKE) sgen-bridge2-tests -endif - -SGEN_REGULAR_TESTS_SRC = \ +test-sgen: + ok=; \ + $(MAKE) test-sgen-regular || ok=false; \ + $(MAKE) test-sgen-toggleref || ok=false; \ + $(MAKE) test-sgen-bridge || ok=false; \ + $(MAKE) test-sgen-bridge2 || ok=false; \ + $(MAKE) test-sgen-bridge3 || ok=false; \ + $$ok + +test-stress-sgen: + ok=; \ + $(MAKE) test-stress-sgen-regular || ok=false; \ + $(MAKE) test-stress-sgen-toggleref || ok=false; \ + $(MAKE) test-stress-sgen-bridge || ok=false; \ + $(MAKE) test-stress-sgen-bridge2 || ok=false; \ + $(MAKE) test-stress-sgen-bridge3 || ok=false; \ + $$ok + +TESTS_SGEN_REGULAR_SRC = \ finalizer-wait.cs \ critical-finalizers.cs \ sgen-descriptors.cs \ @@ -1346,167 +1346,269 @@ SGEN_REGULAR_TESTS_SRC = \ sgen-domain-unload.cs \ sgen-domain-unload-2.cs -SGEN_REGULAR_DISABLED_TESTS= +TESTS_SGEN_REGULAR=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_REGULAR_SRC:.cs=.exe)) if FULL_AOT_TESTS -SGEN_REGULAR_DISABLED_TESTS += \ - sgen-domain-unload.exe \ - sgen-domain-unload-2.exe +TESTSAOT_SGEN_REGULAR=$(TESTS_SGEN_REGULAR:.exe=.exe$(PLATFORM_AOT_SUFFIX)) endif -SGEN_REGULAR_TESTS=$(filter-out $(SGEN_REGULAR_DISABLED_TESTS),$(SGEN_REGULAR_TESTS_SRC:.cs=.exe)) - -sgen-regular-tests: $(SGEN_REGULAR_TESTS) - $(MAKE) sgen-regular-tests-ms - $(MAKE) sgen-regular-tests-ms-conc - $(MAKE) sgen-regular-tests-ms-conc-par - $(MAKE) sgen-regular-tests-ms-conc-split - $(MAKE) sgen-regular-tests-ms-split - $(MAKE) sgen-regular-tests-ms-conc-split-95 - $(MAKE) sgen-regular-tests-ms-clear-at-gc - $(MAKE) sgen-regular-tests-ms-conc-clear-at-gc - $(MAKE) sgen-regular-tests-ms-conc-split-clear-at-gc - -sgen-regular-tests-ms: $(SGEN_REGULAR_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="" MONO_GC_PARAMS="major=marksweep" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_REGULAR_TESTS) -sgen-regular-tests-ms-conc: $(SGEN_REGULAR_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="" MONO_GC_PARAMS="major=marksweep-conc" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_REGULAR_TESTS) -sgen-regular-tests-ms-conc-par: $(SGEN_REGULAR_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="" MONO_GC_PARAMS="major=marksweep-conc-par" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_REGULAR_TESTS) -sgen-regular-tests-ms-conc-split: $(SGEN_REGULAR_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="" MONO_GC_PARAMS="major=marksweep-conc,minor=split" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_REGULAR_TESTS) -sgen-regular-tests-ms-split: $(SGEN_REGULAR_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="" MONO_GC_PARAMS="major=marksweep,minor=split" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_REGULAR_TESTS) -sgen-regular-tests-ms-conc-split-95: $(SGEN_REGULAR_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="" MONO_GC_PARAMS="major=marksweep-conc,minor=split,alloc-ratio=95" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_REGULAR_TESTS) -sgen-regular-tests-ms-clear-at-gc: $(SGEN_REGULAR_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="clear-at-gc" MONO_GC_PARAMS="major=marksweep" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_REGULAR_TESTS) -sgen-regular-tests-ms-conc-clear-at-gc: $(SGEN_REGULAR_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="clear-at-gc" MONO_GC_PARAMS="major=marksweep-conc" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_REGULAR_TESTS) -sgen-regular-tests-ms-conc-split-clear-at-gc: $(SGEN_REGULAR_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="clear-at-gc" MONO_GC_PARAMS="major=marksweep-conc,minor=split" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_REGULAR_TESTS) - -SGEN_TOGGLEREF_TESTS= \ - sgen-toggleref.exe - -sgen-toggleref-tests: $(SGEN_TOGGLEREF_TESTS) - $(MAKE) sgen-toggleref-tests-plain - $(MAKE) sgen-toggleref-tests-ms-conc - $(MAKE) sgen-toggleref-tests-ms-conc-split - $(MAKE) sgen-toggleref-tests-ms-split - $(MAKE) sgen-toggleref-tests-ms-split-95 - $(MAKE) sgen-toggleref-tests-plain-clear-at-gc - $(MAKE) sgen-toggleref-tests-ms-conc-clear-at-gc - $(MAKE) sgen-toggleref-tests-ms-split-clear-at-gc - -sgen-toggleref-tests-plain: $(SGEN_TOGGLEREF_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="" MONO_GC_PARAMS="toggleref-test" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_TOGGLEREF_TESTS) -sgen-toggleref-tests-ms-conc: $(SGEN_TOGGLEREF_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="" MONO_GC_PARAMS="toggleref-test,major=marksweep-conc" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_TOGGLEREF_TESTS) -sgen-toggleref-tests-ms-conc-split: $(SGEN_TOGGLEREF_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="" MONO_GC_PARAMS="toggleref-test,major=marksweep-conc,minor=split" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_TOGGLEREF_TESTS) -sgen-toggleref-tests-ms-split: $(SGEN_TOGGLEREF_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="" MONO_GC_PARAMS="toggleref-test,minor=split" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_TOGGLEREF_TESTS) -sgen-toggleref-tests-ms-split-95: $(SGEN_TOGGLEREF_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="" MONO_GC_PARAMS="toggleref-test,minor=split,alloc-ratio=95" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_TOGGLEREF_TESTS) -sgen-toggleref-tests-plain-clear-at-gc: $(SGEN_TOGGLEREF_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="clear-at-gc" MONO_GC_PARAMS="toggleref-test" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_TOGGLEREF_TESTS) -sgen-toggleref-tests-ms-conc-clear-at-gc: $(SGEN_TOGGLEREF_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="clear-at-gc" MONO_GC_PARAMS="toggleref-test,major=marksweep-conc" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_TOGGLEREF_TESTS) -sgen-toggleref-tests-ms-split-clear-at-gc: $(SGEN_TOGGLEREF_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="clear-at-gc" MONO_GC_PARAMS="toggleref-test,minor=split" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_TOGGLEREF_TESTS) - -SGEN_BRIDGE_TESTS= \ - sgen-bridge.exe \ - sgen-bridge-major-fragmentation.exe - -sgen-bridge-tests: $(SGEN_BRIDGE_TESTS) - $(MAKE) sgen-bridge-tests-plain - $(MAKE) sgen-bridge-tests-ms-conc - $(MAKE) sgen-bridge-tests-ms-split - $(MAKE) sgen-bridge-tests-plain-new-bridge - $(MAKE) sgen-bridge-tests-ms-conc-new-bridge - $(MAKE) sgen-bridge-tests-ms-split-new-bridge - $(MAKE) sgen-bridge-tests-plain-tarjan-bridge - $(MAKE) sgen-bridge-tests-ms-split-tarjan-bridge - -sgen-bridge-tests-plain: $(SGEN_BRIDGE_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=Bridge" MONO_GC_PARAMS="" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_BRIDGE_TESTS) -sgen-bridge-tests-ms-conc: $(SGEN_BRIDGE_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=Bridge" MONO_GC_PARAMS="major=marksweep-conc" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_BRIDGE_TESTS) -sgen-bridge-tests-ms-split: $(SGEN_BRIDGE_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=Bridge" MONO_GC_PARAMS="minor=split" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_BRIDGE_TESTS) -sgen-bridge-tests-plain-new-bridge: $(SGEN_BRIDGE_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=Bridge" MONO_GC_PARAMS="bridge-implementation=new" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_BRIDGE_TESTS) -sgen-bridge-tests-ms-conc-new-bridge: $(SGEN_BRIDGE_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=Bridge" MONO_GC_PARAMS="bridge-implementation=new,major=marksweep-conc" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_BRIDGE_TESTS) -sgen-bridge-tests-ms-split-new-bridge: $(SGEN_BRIDGE_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=Bridge" MONO_GC_PARAMS="bridge-implementation=new,minor=split" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_BRIDGE_TESTS) -sgen-bridge-tests-plain-tarjan-bridge: $(SGEN_BRIDGE_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=Bridge" MONO_GC_PARAMS="bridge-implementation=tarjan" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_BRIDGE_TESTS) -sgen-bridge-tests-ms-split-tarjan-bridge: $(SGEN_BRIDGE_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=Bridge" MONO_GC_PARAMS="bridge-implementation=tarjan,minor=split" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_BRIDGE_TESTS) - -SGEN_BRIDGE2_TESTS= \ - sgen-bridge-xref.exe +if HYBRID_AOT_TESTS +TESTSAOT_SGEN_REGULAR=$(TESTS_SGEN_REGULAR:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +endif + +test-sgen-regular: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) + ok=; \ + $(MAKE) test-sgen-regular-ms-simple || ok=false; \ + $(MAKE) test-sgen-regular-ms-conc-simple || ok=false; \ + $$ok + +test-stress-sgen-regular: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) + ok=; \ + $(MAKE) test-sgen-regular-ms-simple MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-regular-ms-conc-simple MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-regular-ms-conc-par-simple MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-regular-ms-conc-split MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-regular-ms-conc-split-95-clear-at-gc MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-regular-ms-conc-par-simple-par-dyn MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-regular-ms-conc-par-simple-par-512k MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-regular-ms-conc-par-simple-par-32m MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-regular-ms-conc-par-simple-par-dyn-clear-at-gc MONO_TESTS_STRESS=1 || ok=false; \ + $$ok + +test-sgen-regular-ms-simple: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=major=marksweep,minor=simple" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_REGULAR) +test-sgen-regular-ms-conc-simple: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=major=marksweep-conc,minor=simple" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_REGULAR) +test-sgen-regular-ms-conc-par-simple: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=major=marksweep-conc-par,minor=simple" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_REGULAR) +test-sgen-regular-ms-conc-split: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=major=marksweep-conc,minor=split" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_REGULAR) +test-sgen-regular-ms-conc-split-95-clear-at-gc: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=clear-at-gc --gc-params=major=marksweep-conc,minor=split,alloc-ratio=95" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_REGULAR) +test-sgen-regular-ms-conc-par-simple-par-dyn: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=major=marksweep-conc-par,minor=simple-par,dynamic-nursery" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_REGULAR) +test-sgen-regular-ms-conc-par-simple-par-512k: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=major=marksweep-conc-par,minor=simple-par,nursery-size=512k" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_REGULAR) +test-sgen-regular-ms-conc-par-simple-par-32m: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=major=marksweep-conc-par,minor=simple-par,nursery-size=32m" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_REGULAR) +test-sgen-regular-ms-conc-par-simple-par-dyn-clear-at-gc: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=clear-at-gc --gc-params=major=marksweep-conc-par,minor=simple-par,dynamic-nursery" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_REGULAR) + +TESTS_SGEN_TOGGLEREF_SRC= \ + sgen-toggleref.cs + +TESTS_SGEN_TOGGLEREF=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_TOGGLEREF_SRC:.cs=.exe)) + +if FULL_AOT_TESTS +TESTSAOT_SGEN_TOGGLEREF=$(TESTS_SGEN_TOGGLEREF:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +endif + +if HYBRID_AOT_TESTS +TESTSAOT_SGEN_TOGGLEREF=$(TESTS_SGEN_TOGGLEREF:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +endif + +test-sgen-toggleref: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) + ok=; \ + $(MAKE) test-sgen-toggleref-ms-simple || ok=false; \ + $(MAKE) test-sgen-toggleref-ms-conc-simple || ok=false; \ + $$ok + +test-stress-sgen-toggleref: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) + ok=; \ + $(MAKE) test-sgen-toggleref-ms-simple MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-toggleref-ms-conc-simple MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-toggleref-ms-conc-par-simple MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-toggleref-ms-conc-split MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-toggleref-ms-conc-split-95-clear-at-gc MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-toggleref-ms-conc-par-simple-par-dyn MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-toggleref-ms-conc-par-simple-par-512k MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-toggleref-ms-conc-par-simple-par-32m MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-toggleref-ms-conc-par-simple-par-dyn-clear-at-gc MONO_TESTS_STRESS=1 || ok=false; \ + $$ok + +test-sgen-toggleref-ms-simple: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=toggleref-test,major=marksweep,minor=simple" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_TOGGLEREF) +test-sgen-toggleref-ms-conc-simple: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=toggleref-test,major=marksweep-conc,minor=simple" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_TOGGLEREF) +test-sgen-toggleref-ms-conc-par-simple: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=toggleref-test,major=marksweep-conc-par,minor=simple" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_TOGGLEREF) +test-sgen-toggleref-ms-conc-split: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=toggleref-test,major=marksweep-conc,minor=split" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_TOGGLEREF) +test-sgen-toggleref-ms-conc-split-95-clear-at-gc: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=clear-at-gc --gc-params=toggleref-test,major=marksweep-conc,minor=split,alloc-ratio=95" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_TOGGLEREF) +test-sgen-toggleref-ms-conc-par-simple-par-dyn: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=toggleref-test,major=marksweep-conc-par,minor=simple-par,dynamic-nursery" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_TOGGLEREF) +test-sgen-toggleref-ms-conc-par-simple-par-512k: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=toggleref-test,major=marksweep-conc-par,minor=simple-par,nursery-size=512k" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_TOGGLEREF) +test-sgen-toggleref-ms-conc-par-simple-par-32m: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=toggleref-test,major=marksweep-conc-par,minor=simple-par,nursery-size=32m" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_TOGGLEREF) +test-sgen-toggleref-ms-conc-par-simple-par-dyn-clear-at-gc: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=clear-at-gc --gc-params=toggleref-test,major=marksweep-conc-par,minor=simple-par,dynamic-nursery" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_TOGGLEREF) + +TESTS_SGEN_BRIDGE_SRC= \ + sgen-bridge.cs \ + sgen-bridge-major-fragmentation.cs + +TESTS_SGEN_BRIDGE=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_BRIDGE_SRC:.cs=.exe)) -sgen-bridge2-tests: $(SGEN_BRIDGE2_TESTS) - $(MAKE) sgen-bridge2-tests-plain - $(MAKE) sgen-bridge2-tests-ms-conc - $(MAKE) sgen-bridge2-tests-ms-split - $(MAKE) sgen-bridge2-tests-plain-new-bridge - $(MAKE) sgen-bridge2-tests-ms-conc-new-bridge - $(MAKE) sgen-bridge2-tests-ms-split-new-bridge - $(MAKE) sgen-bridge2-tests-plain-tarjan-bridge - $(MAKE) sgen-bridge2-tests-ms-split-tarjan-bridge - -sgen-bridge2-tests-plain: $(SGEN_BRIDGE2_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=2Bridge" MONO_GC_PARAMS="" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_BRIDGE2_TESTS) -sgen-bridge2-tests-ms-conc: $(SGEN_BRIDGE2_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=2Bridge" MONO_GC_PARAMS="major=marksweep-conc" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_BRIDGE2_TESTS) -sgen-bridge2-tests-ms-split: $(SGEN_BRIDGE2_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=2Bridge" MONO_GC_PARAMS="minor=split" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_BRIDGE2_TESTS) -sgen-bridge2-tests-plain-new-bridge: $(SGEN_BRIDGE2_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=2Bridge" MONO_GC_PARAMS="bridge-implementation=new" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_BRIDGE2_TESTS) -sgen-bridge2-tests-ms-conc-new-bridge: $(SGEN_BRIDGE2_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=2Bridge" MONO_GC_PARAMS="bridge-implementation=new,major=marksweep-conc" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_BRIDGE2_TESTS) -sgen-bridge2-tests-ms-split-new-bridge: $(SGEN_BRIDGE2_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=2Bridge" MONO_GC_PARAMS="bridge-implementation=new,minor=split" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_BRIDGE2_TESTS) -sgen-bridge2-tests-plain-tarjan-bridge: $(SGEN_BRIDGE2_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=2Bridge" MONO_GC_PARAMS="bridge-implementation=tarjan" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_BRIDGE2_TESTS) -sgen-bridge2-tests-ms-split-tarjan-bridge: $(SGEN_BRIDGE2_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=2Bridge" MONO_GC_PARAMS="bridge-implementation=tarjan,minor=split" $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(SGEN_BRIDGE2_TESTS) - -SGEN_BRIDGE3_TESTS= \ - sgen-bridge-gchandle.exe - -sgen-bridge3-tests: $(SGEN_BRIDGE3_TESTS) - $(MAKE) sgen-bridge3-tests-plain - $(MAKE) sgen-bridge3-tests-ms-conc - $(MAKE) sgen-bridge3-tests-ms-split - $(MAKE) sgen-bridge3-tests-plain-new-bridge - $(MAKE) sgen-bridge3-tests-ms-conc-new-bridge - $(MAKE) sgen-bridge3-tests-ms-split-new-bridge - $(MAKE) sgen-bridge3-tests-plain-tarjan-bridge - $(MAKE) sgen-bridge3-tests-ms-split-tarjan-bridge - -sgen-bridge3-tests-plain: $(SGEN_bridge3_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=3Bridge" MONO_GC_PARAMS="" $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --timeout 900 $(SGEN_BRIDGE3_TESTS) -sgen-bridge3-tests-ms-conc: $(SGEN_BRIDGE3_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=3Bridge" MONO_GC_PARAMS="major=marksweep-conc" $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --timeout 900 $(SGEN_BRIDGE3_TESTS) -sgen-bridge3-tests-ms-split: $(SGEN_BRIDGE3_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=3Bridge" MONO_GC_PARAMS="minor=split" $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --timeout 900 $(SGEN_BRIDGE3_TESTS) -sgen-bridge3-tests-plain-new-bridge: $(SGEN_BRIDGE3_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=3Bridge" MONO_GC_PARAMS="bridge-implementation=new" $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --timeout 900 $(SGEN_BRIDGE3_TESTS) -sgen-bridge3-tests-ms-conc-new-bridge: $(SGEN_BRIDGE3_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=3Bridge" MONO_GC_PARAMS="bridge-implementation=new,major=marksweep-conc" $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --timeout 900 $(SGEN_BRIDGE3_TESTS) -sgen-bridge3-tests-ms-split-new-bridge: $(SGEN_BRIDGE3_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=3Bridge" MONO_GC_PARAMS="bridge-implementation=new,minor=split" $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --timeout 900 $(SGEN_BRIDGE3_TESTS) -sgen-bridge3-tests-plain-tarjan-bridge: $(SGEN_BRIDGE3_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=3Bridge" MONO_GC_PARAMS="bridge-implementation=tarjan" $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --timeout 900 $(SGEN_BRIDGE3_TESTS) -sgen-bridge3-tests-ms-split-tarjan-bridge: $(SGEN_BRIDGE3_TESTS) test-runner.exe - MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=3Bridge" MONO_GC_PARAMS="bridge-implementation=tarjan,minor=split" $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --timeout 900 $(SGEN_BRIDGE3_TESTS) +if FULL_AOT_TESTS +TESTSAOT_SGEN_BRIDGE=$(TESTS_SGEN_BRIDGE:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +endif + +if HYBRID_AOT_TESTS +TESTSAOT_SGEN_BRIDGE=$(TESTS_SGEN_BRIDGE:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +endif + +test-sgen-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) + ok=; \ + $(MAKE) test-sgen-bridge-ms-simple-tarjan-bridge || ok=false; \ + $(MAKE) test-sgen-bridge-ms-conc-simple-tarjan-bridge || ok=false; \ + $$ok + +test-stress-sgen-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) + ok=; \ + $(MAKE) test-sgen-bridge-ms-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge-ms-conc-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge-ms-conc-split-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge-ms-conc-simple-new-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge-ms-conc-simple-old-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge-ms-conc-par-simple-par-dyn-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge-ms-conc-par-simple-par-512k-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge-ms-conc-par-simple-par-32m-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $$ok + +test-sgen-bridge-ms-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=Bridge --gc-params=major=marksweep,minor=simple,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE) +test-sgen-bridge-ms-conc-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=Bridge --gc-params=major=marksweep-conc,minor=simple,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE) +test-sgen-bridge-ms-conc-split-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=Bridge --gc-params=major=marksweep-conc,minor=split,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE) +test-sgen-bridge-ms-conc-simple-new-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=Bridge --gc-params=major=marksweep-conc,minor=simple,bridge-implementation=new" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE) +test-sgen-bridge-ms-conc-simple-old-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=Bridge --gc-params=major=marksweep-conc,minor=simple,bridge-implementation=old" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE) +test-sgen-bridge-ms-conc-par-simple-par-dyn-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=Bridge --gc-params=major=marksweep-conc-par,minor=simple-par,dynamic-nursery,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE) +test-sgen-bridge-ms-conc-par-simple-par-512k-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=Bridge --gc-params=major=marksweep-conc-par,minor=simple-par,nursery-size=512k,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE) +test-sgen-bridge-ms-conc-par-simple-par-32m-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=Bridge --gc-params=major=marksweep-conc-par,minor=simple-par,nursery-size=32m,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE) + +TESTS_SGEN_BRIDGE2_SRC= \ + sgen-bridge-xref.cs + +TESTS_SGEN_BRIDGE2=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_BRIDGE2_SRC:.cs=.exe)) + +if FULL_AOT_TESTS +TESTSAOT_SGEN_BRIDGE2=$(TESTS_SGEN_BRIDGE2:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +endif + +if HYBRID_AOT_TESTS +TESTSAOT_SGEN_BRIDGE2=$(TESTS_SGEN_BRIDGE2:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +endif + +test-sgen-bridge2: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) + ok=; \ + $(MAKE) test-sgen-bridge2-ms-simple-tarjan-bridge || ok=false; \ + $(MAKE) test-sgen-bridge2-ms-conc-simple-tarjan-bridge || ok=false; \ + $$ok + +test-stress-sgen-bridge2: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) + ok=; \ + $(MAKE) test-sgen-bridge2-ms-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge2-ms-conc-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge2-ms-conc-split-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge2-ms-conc-simple-new-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge2-ms-conc-simple-old-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge2-ms-conc-par-simple-par-dyn-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge2-ms-conc-par-simple-par-512k-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge2-ms-conc-par-simple-par-32m-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $$ok + +test-sgen-bridge2-ms-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=2Bridge --gc-params=major=marksweep,minor=simple,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE2) +test-sgen-bridge2-ms-conc-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=2Bridge --gc-params=major=marksweep-conc,minor=simple,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE2) +test-sgen-bridge2-ms-conc-split-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=2Bridge --gc-params=major=marksweep-conc,minor=split,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE2) +test-sgen-bridge2-ms-conc-simple-new-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=2Bridge --gc-params=major=marksweep-conc,minor=simple,bridge-implementation=new" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE2) +test-sgen-bridge2-ms-conc-simple-old-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=2Bridge --gc-params=major=marksweep-conc,minor=simple,bridge-implementation=old" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE2) +test-sgen-bridge2-ms-conc-par-simple-par-dyn-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=2Bridge --gc-params=major=marksweep-conc-par,minor=simple-par,dynamic-nursery,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE2) +test-sgen-bridge2-ms-conc-par-simple-par-512k-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=2Bridge --gc-params=major=marksweep-conc-par,minor=simple-par,nursery-size=512k,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE2) +test-sgen-bridge2-ms-conc-par-simple-par-32m-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=2Bridge --gc-params=major=marksweep-conc-par,minor=simple-par,nursery-size=32m,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE2) + +TESTS_SGEN_BRIDGE3_SRC= \ + sgen-bridge-gchandle.cs + +TESTS_SGEN_BRIDGE3=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_BRIDGE3_SRC:.cs=.exe)) + +if FULL_AOT_TESTS +TESTSAOT_SGEN_BRIDGE3=$(TESTS_SGEN_BRIDGE3:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +endif + +if HYBRID_AOT_TESTS +TESTSAOT_SGEN_BRIDGE3=$(TESTS_SGEN_BRIDGE3:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +endif + +test-sgen-bridge3: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) + ok=; \ + $(MAKE) test-sgen-bridge3-ms-simple-tarjan-bridge || ok=false; \ + $(MAKE) test-sgen-bridge3-ms-conc-simple-tarjan-bridge || ok=false; \ + $$ok + +test-stress-sgen-bridge3: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) + ok=; \ + $(MAKE) test-sgen-bridge3-ms-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge3-ms-conc-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge3-ms-conc-split-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge3-ms-conc-simple-new-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge3-ms-conc-simple-old-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge3-ms-conc-par-simple-par-dyn-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge3-ms-conc-par-simple-par-512k-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $(MAKE) test-sgen-bridge3-ms-conc-par-simple-par-32m-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \ + $$ok + +test-sgen-bridge3-ms-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=3Bridge --gc-params=major=marksweep,minor=simple,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE3) +test-sgen-bridge3-ms-conc-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=3Bridge --gc-params=major=marksweep-conc,minor=simple,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE3) +test-sgen-bridge3-ms-conc-split-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=3Bridge --gc-params=major=marksweep-conc,minor=split,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE3) +test-sgen-bridge3-ms-conc-simple-new-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=3Bridge --gc-params=major=marksweep-conc,minor=simple,bridge-implementation=new" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE3) +test-sgen-bridge3-ms-conc-simple-old-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=3Bridge --gc-params=major=marksweep-conc,minor=simple,bridge-implementation=old" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE3) +test-sgen-bridge3-ms-conc-par-simple-par-dyn-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=3Bridge --gc-params=major=marksweep-conc-par,minor=simple-par,dynamic-nursery,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE3) +test-sgen-bridge3-ms-conc-par-simple-par-512k-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=3Bridge --gc-params=major=marksweep-conc-par,minor=simple-par,nursery-size=512k,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE3) +test-sgen-bridge3-ms-conc-par-simple-par-32m-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=3Bridge --gc-params=major=marksweep-conc-par,minor=simple-par,nursery-size=32m,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE3) + +TESTS_SGEN_OOM_SRC = \ + sgen-oom-cementing-stress.cs \ + sgen-oom-new-threads-dont-join-stw-2.cs \ + sgen-oom-bridge-major-fragmentation.cs \ + gc-oom-handling.cs \ + gc-oom-handling2.cs + +TESTS_SGEN_OOM=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_OOM_SRC:.cs=.exe)) +if FULL_AOT_TESTS +TESTSAOT_SGEN_OOM=$(TESTS_SGEN_OOM:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +endif + +if HYBRID_AOT_TESTS +TESTSAOT_SGEN_OOM=$(TESTS_SGEN_OOM:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +endif + +tests-sgen-oom: $(TESTS_SGEN_OOM) $(TESTSAOT_SGEN_OOM) test-runner.exe sgen-cementing-stress.exe sgen-new-threads-dont-join-stw-2.exe sgen-bridge-major-fragmentation.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=max-valloc-size=50M,bridge=Bridge" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_OOM) AOT_CONFIGURATIONS= \ "|regular" \ @@ -1549,27 +1651,23 @@ test-aot: # Generated tests for runtime invoke EXTRA_DIST += gen-runtime-invoke.cs -runtime-invoke.gen.exe: $(TEST_DRIVER_DEPEND) gen-runtime-invoke.exe - $(RUNTIME) gen-runtime-invoke.exe > runtime-invoke.gen.cs - $(MCS) -out:runtime-invoke.gen.exe -r:TestDriver.dll runtime-invoke.gen.cs + +runtime-invoke.gen.cs: gen-runtime-invoke.exe + $(Q) $(RUNTIME) gen-runtime-invoke.exe > runtime-invoke.gen.cs EXTRA_DIST += make-imt-test.cs -imt_big_iface_test.exe: $(TEST_DRIVER_DEPEND) make-imt-test.exe - $(RUNTIME) make-imt-test.exe > imt_big_iface_test.cs - $(MCS) -out:imt_big_iface_test.exe -r:TestDriver.dll imt_big_iface_test.cs + +imt_big_iface_test.cs: make-imt-test.exe + $(Q) $(RUNTIME) make-imt-test.exe > imt_big_iface_test.cs EXTRA_DIST += test-inline-call-stack-library.cs test-inline-call-stack.cs -test-inline-call-stack-library.dll: $(TEST_DRIVER_DEPEND) $(srcdir)/test-inline-call-stack-library.cs - $(MCS) -t:library -out:test-inline-call-stack-library.dll $(srcdir)/test-inline-call-stack-library.cs -if FULL_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif -if HYBRID_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif -test-inline-call-stack.exe: $(TEST_DRIVER_DEPEND) test-inline-call-stack-library.dll $(srcdir)/test-inline-call-stack.cs - $(MCS) -r:TestDriver.dll -r:test-inline-call-stack-library.dll -out:test-inline-call-stack.exe $(srcdir)/test-inline-call-stack.cs +test-inline-call-stack-library.dll: $(srcdir)/test-inline-call-stack-library.cs + $(MCS) -t:library -out:$@ $< + +test-inline-call-stack.exe$(PLATFORM_AOT_SUFFIX): test-inline-call-stack-library.dll$(PLATFORM_AOT_SUFFIX) +test-inline-call-stack.exe: test-inline-call-stack.cs test-inline-call-stack-library.dll $(TEST_DRIVER_DEPEND) + $(MCS) -r:TestDriver.dll -r:test-inline-call-stack-library.dll -out:$@ $< EXTRA_DIST += unhandled-exception-base-configuration.config EXTRA_DIST += unhandled-exception-legacy-configuration.config @@ -1587,19 +1685,51 @@ unhandled-exception-config_files: unhandled-exception-base-configuration.config cp unhandled-exception-base-configuration.config unhandled-exception-test-case.2.exe.config cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.1.exe.config cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.2.exe.config -unhandled-exception-test-case.1.exe: unhandled-exception-test-case.1.cs - $(MCS) /debug unhandled-exception-test-case.1.cs -unhandled-exception-test-case-legacy.1.exe: unhandled-exception-test-case-legacy.1.cs - $(MCS) /debug unhandled-exception-test-case-legacy.1.cs -unhandled-exception-test-case.2.exe: unhandled-exception-test-case.2.cs - $(MCS) /debug unhandled-exception-test-case.2.cs -unhandled-exception-test-case-legacy.2.exe: unhandled-exception-test-case-legacy.2.cs - $(MCS) /debug unhandled-exception-test-case-legacy.2.cs -unhandled-exception-test-runner.2.exe: unhandled-exception-test-runner.2.cs - $(MCS) /debug unhandled-exception-test-runner.2.cs - -test-unhandled-exception: unhandled-exception-test-runner.2.exe unhandled-exception-config_files unhandled-exception-test-case.1.exe unhandled-exception-test-case-legacy.1.exe unhandled-exception-test-case.2.exe unhandled-exception-test-case-legacy.2.exe - $(RUNTIME) unhandled-exception-test-runner.2.exe RUNTIME:../mini/mono,GTC:F + +unhandled-exception-test-runner.2.exe: unhandled-exception-config_files unhandled-exception-test-case.1.exe unhandled-exception-test-case-legacy.1.exe unhandled-exception-test-case.2.exe unhandled-exception-test-case-legacy.2.exe + +test-unhandled-exception: unhandled-exception-test-runner.2.exe + $(Q) $(RUNTIME) unhandled-exception-test-runner.2.exe RUNTIME:../mini/mono,GTC:F + +safehandle.2.exe winx64structs.exe thunks.exe pinvoke3.exe pinvoke2.exe pinvoke-2.2.exe pinvoke17.exe pinvoke13.exe \ + pinvoke11.exe pinvoke_ppcs.exe pinvoke_ppci.exe pinvoke_ppcf.exe pinvoke_ppcd.exe pinvoke_ppcc.exe pinvoke.exe \ + marshalbool.exe marshal9.exe marshal5.exe marshal.exe handleref.exe cominterop.exe bug-Xamarin-5278.exe: libtest.la + +event-get.2.exe$(PLATFORM_AOT_SUFFIX): event-il.exe$(PLATFORM_AOT_SUFFIX) +event-get.2.exe: event-il.exe + +module-cctor-loader.2.exe$(PLATFORM_AOT_SUFFIX): module-cctor.exe$(PLATFORM_AOT_SUFFIX) +module-cctor-loader.2.exe: module-cctor.exe + +reference-loader.exe$(PLATFORM_AOT_SUFFIX): TestingReferenceAssembly.dll$(PLATFORM_AOT_SUFFIX) TestingReferenceReferenceAssembly.dll$(PLATFORM_AOT_SUFFIX) +reference-loader.exe: TestingReferenceAssembly.dll TestingReferenceReferenceAssembly.dll + +assemblyresolve_asm.dll$(PLATFORM_AOT_SUFFIX): assemblyresolve_deps/Test.dll$(PLATFORM_AOT_SUFFIX) + MONO_PATH="assemblyresolve_deps:$(CLASS)" $(top_builddir)/runtime/mono-wrapper $(AOT_BUILD_FLAGS) assemblyresolve_asm.dll +assemblyresolve_deps/Test.dll$(PLATFORM_AOT_SUFFIX): assemblyresolve_deps/TestBase.dll$(PLATFORM_AOT_SUFFIX) + +EXTRA_DIST += assemblyresolve_TestBase.cs assemblyresolve_Test.cs assemblyresolve_asm.cs +assemblyresolve_deps: + mkdir -p assemblyresolve_deps +assemblyresolve_deps/TestBase.dll: assemblyresolve_deps $(srcdir)/assemblyresolve_TestBase.cs + $(MCS) -target:library -out:assemblyresolve_deps/TestBase.dll $(srcdir)/assemblyresolve_TestBase.cs +assemblyresolve_deps/Test.dll: assemblyresolve_deps assemblyresolve_deps/TestBase.dll $(srcdir)/assemblyresolve_Test.cs + $(MCS) -target:library -r:assemblyresolve_deps/TestBase.dll -out:assemblyresolve_deps/Test.dll $(srcdir)/assemblyresolve_Test.cs +assemblyresolve_asm.dll: assemblyresolve_deps/Test.dll $(srcdir)/assemblyresolve_asm.cs + $(MCS) -target:library -r:assemblyresolve_deps/TestBase.dll -r:assemblyresolve_deps/Test.dll -out:assemblyresolve_asm.dll $(srcdir)/assemblyresolve_asm.cs + +assemblyresolve_event3.exe$(PLATFORM_AOT_SUFFIX): assemblyresolve_asm.dll$(PLATFORM_AOT_SUFFIX) assemblyresolve_deps/Test.dll$(PLATFORM_AOT_SUFFIX) assemblyresolve_deps/TestBase.dll$(PLATFORM_AOT_SUFFIX) +assemblyresolve_event3.exe: assemblyresolve_asm.dll assemblyresolve_deps/Test.dll assemblyresolve_deps/TestBase.dll + +assemblyresolve_event4.exe$(PLATFORM_AOT_SUFFIX): assemblyresolve_deps/Test.dll$(PLATFORM_AOT_SUFFIX) assemblyresolve_deps/TestBase.dll$(PLATFORM_AOT_SUFFIX) +assemblyresolve_event4.exe: assemblyresolve_deps/Test.dll assemblyresolve_deps/TestBase.dll + +EXTRA_DIST += assemblyresolve_event5_label.cs assemblyresolve_event5_helper.cs +assemblyresolve_deps/assemblyresolve_event5_label.dll: assemblyresolve_event5_label.cs assemblyresolve_deps + $(MCS) -target:library -out:assemblyresolve_deps/assemblyresolve_event5_label.dll $(srcdir)/assemblyresolve_event5_label.cs +assemblyresolve_event5_helper.dll: assemblyresolve_event5_helper.cs assemblyresolve_deps/assemblyresolve_event5_label.dll + $(MCS) -target:library -out:assemblyresolve_event5_helper.dll -r:assemblyresolve_deps/assemblyresolve_event5_label.dll $(srcdir)/assemblyresolve_event5_helper.cs +assemblyresolve_event5.exe: assemblyresolve_event5_helper.dll # We use 'test-support-files' to handle an ordering issue between the 'mono/' and 'runtime/' directories bug-80307.exe: $(srcdir)/bug-80307.cs @@ -1607,222 +1737,109 @@ bug-80307.exe: $(srcdir)/bug-80307.cs cd $(top_builddir)/runtime && $(MAKE) test-support-files EXTRA_DIST += bug-81673-interface.cs + +bug-81673.exe$(PLATFORM_AOT_SUFFIX): bug-81673-interface.dll$(PLATFORM_AOT_SUFFIX) bug-81673.exe bug-81673-interface.dll: $(srcdir)/bug-81673.cs $(srcdir)/bug-81673-interface.cs $(MCS) -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs - $(MCS) -out:bug-81673.exe -r:bug-81673-interface.dll $(srcdir)/bug-81673.cs + $(MCS) -r:bug-81673-interface.dll -out:bug-81673.exe $(srcdir)/bug-81673.cs $(MCS) -define:WITH_STOP -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs -if FULL_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif -if HYBRID_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif EXTRA_DIST += bug-36848-a.cs + +bug-36848.exe$(PLATFORM_AOT_SUFFIX): bug-36848-a.dll$(PLATFORM_AOT_SUFFIX) bug-36848.exe bug-36848-a.dll: $(srcdir)/bug-36848.cs $(srcdir)/bug-36848-a.cs $(MCS) -target:library -out:bug-36848-a.dll $(srcdir)/bug-36848-a.cs $(MCS) -r:bug-36848-a.dll -out:bug-36848.exe $(srcdir)/bug-36848.cs - $(MCS) -target:library -out:bug-36848-a.dll $(srcdir)/bug-36848-a.cs /define:WITH_STOP -if FULL_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif -if HYBRID_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif + $(MCS) -define:WITH_STOP -target:library -out:bug-36848-a.dll $(srcdir)/bug-36848-a.cs EXTRA_DIST += bug-81691-a.cs bug-81691-b.cs -bug-81691.exe bug-81691-b.dll: $(srcdir)/bug-81691.cs $(srcdir)/bug-81691-a.cs $(srcdir)/bug-81691-b.cs - $(MCS) -target:library -out:bug-81691-a.dll $(srcdir)/bug-81691-a.cs - $(MCS) -target:library -out:bug-81691-b.dll -r:bug-81691-a.dll $(srcdir)/bug-81691-b.cs + +bug-81691.exe$(PLATFORM_AOT_SUFFIX): bug-81691-b.dll$(PLATFORM_AOT_SUFFIX) +bug-81691.exe bug-81691-a.dll bug-81691-b.dll: $(srcdir)/bug-81691.cs $(srcdir)/bug-81691-a.cs $(srcdir)/bug-81691-b.cs + $(MCS) -target:library -out:bug-81691-a.dll $(srcdir)/bug-81691-a.cs + $(MCS) -r:bug-81691-a.dll -target:library -out:bug-81691-b.dll $(srcdir)/bug-81691-b.cs $(MCS) -r:bug-81691-b.dll -out:bug-81691.exe $(srcdir)/bug-81691.cs rm -f bug-81691-a.dll -bug-81691.exe: bug-81691-b.dll EXTRA_DIST += bug-81466-lib.il -bug-81466-lib.dll: bug-81466-lib.il + +bug-81466.exe$(PLATFORM_AOT_SUFFIX): bug-81466-lib.dll$(PLATFORM_AOT_SUFFIX) +bug-81466.exe bug-81466-lib.dll: $(srcdir)/bug-81466.il $(srcdir)/bug-81466-lib.il $(ILASM) /dll /output:bug-81466-lib.dll $(srcdir)/bug-81466-lib.il -if FULL_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif -if HYBRID_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif -bug-81466.exe: bug-81466.il bug-81466-lib.dll $(ILASM) /exe /output:bug-81466.exe $(srcdir)/bug-81466.il EXTRA_DIST += bug-324535-il.il -bug-324535-il.dll : bug-324535-il.il + +bug-324535.exe$(PLATFORM_AOT_SUFFIX): bug-324535-il.dll$(PLATFORM_AOT_SUFFIX) +bug-324535.exe bug-324535-il.dll: $(srcdir)/bug-324535.cs $(srcdir)/bug-324535-il.il $(ILASM) /dll /output:bug-324535-il.dll $(srcdir)/bug-324535-il.il -if FULL_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif -if HYBRID_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif -bug-324535.exe : bug-324535.cs bug-324535-il.dll $(MCS) -r:bug-324535-il.dll -out:bug-324535.exe $(srcdir)/bug-324535.cs EXTRA_DIST += custom-modifiers.2.cs custom-modifiers-lib.il -custom-modifiers-lib.dll: custom-modifiers-lib.il + +custom-modifiers.2.exe$(PLATFORM_AOT_SUFFIX): custom-modifiers-lib.dll$(PLATFORM_AOT_SUFFIX) +custom-modifiers.2.exe custom-modifiers-lib.dll: $(srcdir)/custom-modifiers.2.cs $(srcdir)/custom-modifiers-lib.il $(ILASM) /dll /output:custom-modifiers-lib.dll $(srcdir)/custom-modifiers-lib.il -if FULL_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif -if HYBRID_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif -custom-modifiers.2.exe: custom-modifiers.2.cs custom-modifiers-lib.dll $(MCS) -r:custom-modifiers-lib.dll -out:custom-modifiers.2.exe $(srcdir)/custom-modifiers.2.cs EXTRA_DIST += bug-382986-lib.cs -bug-382986-lib.dll: bug-382986-lib.cs - $(MCS) -target:library -out:$@ $(srcdir)/bug-382986-lib.cs -if FULL_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif -if HYBRID_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif -bug-382986.exe: bug-382986.cs bug-382986-lib.dll - $(MCS) -out:$@ -r:bug-382986-lib.dll $(srcdir)/bug-382986.cs +bug-382986.exe$(PLATFORM_AOT_SUFFIX): bug-382986-lib.dll$(PLATFORM_AOT_SUFFIX) +bug-382986.exe bug-382986-lib.dll: $(srcdir)/bug-382986.cs $(srcdir)/bug-382986-lib.cs + $(MCS) -target:library -out:bug-382986-lib.dll $(srcdir)/bug-382986-lib.cs + $(MCS) -r:bug-382986-lib.dll -out:bug-382986.exe $(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 $@ -if FULL_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif -if HYBRID_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif -bug-17537.exe: bug-17537.cs bug-17537-helper.exe - $(MCS) -r:$(CLASS)/System.dll -out:$@ $(srcdir)/bug-17537.cs +bug-17537.exe$(PLATFORM_AOT_SUFFIX): bug-17537-helper.exe$(PLATFORM_AOT_SUFFIX) +bug-17537-helper.exe: $(srcdir)/bug-17537-helper.cs + $(MCS) -out:$@ $< + chmod -x $@ +bug-17537.exe: bug-17537-helper.exe EXTRA_DIST += coreclr-security.cs -coreclr-security.exe : coreclr-security.cs - $(SMCS) -out:coreclr-security.exe $(srcdir)/coreclr-security.cs - test-coreclr-security : coreclr-security.exe - @echo "Testing coreclr-security.exe..." @$(RUNTIME_MOONLIGHT) --security=core-clr-test coreclr-security.exe -EXTRA_DIST += generic-unboxing.2.il -generic-unboxing.2.dll : generic-unboxing.2.il - $(ILASM) /dll /output:generic-unboxing.2.dll $(srcdir)/generic-unboxing.2.il -if FULL_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif -if HYBRID_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif +EXTRA_DIST += generic-unboxing.2.il generic-boxing.2.il -EXTRA_DIST += generic-boxing.2.il -generic-boxing.2.dll : generic-boxing.2.il generic-unboxing.2.dll - $(ILASM) /dll /output:generic-boxing.2.dll $(srcdir)/generic-boxing.2.il -if FULL_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif -if HYBRID_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif +generic-unboxing.2.dll: $(srcdir)/generic-unboxing.2.il + $(ILASM) /dll /output:$@ $< +generic-boxing.2.dll: $(srcdir)/generic-boxing.2.il generic-unboxing.2.dll + $(ILASM) /dll /output:$@ $< EXTRA_DIST += generic-unbox.2.cs -generic-unbox.2.exe : generic-unbox.2.cs generic-unboxing.2.dll - $(MCS) -r:generic-unboxing.2.dll -out:$@ $(srcdir)/generic-unbox.2.cs + +generic-unbox.2.exe$(PLATFORM_AOT_SUFFIX): generic-unboxing.2.dll$(PLATFORM_AOT_SUFFIX) +generic-unbox.2.exe: $(srcdir)/generic-unbox.2.cs generic-unboxing.2.dll + $(MCS) -r:generic-unboxing.2.dll -out:$@ $< EXTRA_DIST += generic-box.2.cs -generic-box.2.exe : generic-box.2.cs generic-unboxing.2.dll generic-boxing.2.dll - $(MCS) -r:generic-unboxing.2.dll,generic-boxing.2.dll -out:$@ $(srcdir)/generic-box.2.cs + +generic-box.2.exe$(PLATFORM_AOT_SUFFIX): generic-unboxing.2.dll$(PLATFORM_AOT_SUFFIX) generic-boxing.2.dll$(PLATFORM_AOT_SUFFIX) +generic-box.2.exe : $(srcdir)/generic-box.2.cs generic-unboxing.2.dll generic-boxing.2.dll + $(MCS) -r:generic-unboxing.2.dll,generic-boxing.2.dll -out:$@ $< EXTRA_DIST += generic-delegate2.2.cs generic-delegate2-lib.2.il -generic-delegate2-lib.2.dll : generic-delegate2-lib.2.il - $(ILASM) /dll /output:$@ $(srcdir)/generic-delegate2-lib.2.il -if FULL_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif -if HYBRID_AOT_TESTS - $(RUNTIME) $(AOT_BUILD_FLAGS) $@ -endif -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 + +generic-delegate2-lib.2.dll: $(srcdir)/generic-delegate2-lib.2.il + $(ILASM) /dll /output:$@ $< + +generic-delegate2.2.exe$(PLATFORM_AOT_SUFFIX): generic-delegate2-lib.2.dll$(PLATFORM_AOT_SUFFIX) +generic-delegate2.2.exe: $(srcdir)/generic-delegate2.2.cs generic-delegate2-lib.2.dll + $(MCS) -r:generic-delegate2-lib.2.dll -out:$@ $< bug-3903.exe: bug-3903.cs $(MCS_NO_LIB) $(srcdir)/bug-3903.cs -nostdlib -r:$(srcdir)/../../external/binary-reference-assemblies/v2.0/mscorlib.dll -r:$(srcdir)/../../external/binary-reference-assemblies/v2.0/System.Core.dll -out:$@ -gshared: test-generic-sharing +gshared: + $(MAKE) test-generic-sharing gshared-aot: @$(MAKE) AOT=1 gshared -GSHARED_TESTS_SRC = \ - generics-sharing.2.cs \ - shared-generic-methods.2.cs \ - shared-generic-synchronized.2.cs \ - generic-initobj.2.cs \ - generics-sharing-other-exc.2.cs \ - generic-box.2.cs \ - generic-unbox.2.cs \ - generic-delegate.2.cs \ - generic-sizeof.2.cs \ - generic-ldobj.2.cs \ - generic-mkrefany.2.cs \ - generic-refanyval.2.cs \ - generic-ldtoken.2.cs \ - generic-ldtoken-method.2.cs \ - generic-ldtoken-field.2.cs \ - generic-virtual.2.cs \ - generic-tailcall.2.cs \ - generic-interface-methods.2.cs \ - generic-array-type.2.cs \ - generic-method-patching.2.cs \ - generic-static-methods.2.cs \ - generic-null-call.2.cs \ - generic-tailcall2.2.cs \ - generic-array-exc.2.cs \ - generic-special.2.cs \ - generic-exceptions.2.cs \ - generic-delegate2.2.cs \ - generic-virtual2.2.cs \ - generic-valuetype-interface.2.cs \ - generic-valuetype-newobj.2.cs \ - generic-valuetype-newobj2.2.cs \ - generic-getgenericarguments.2.cs \ - generic-synchronized.2.cs \ - generic-delegate-ctor.2.cs \ - generic-constrained.2.cs \ - bug-431413.2.cs \ - generic-virtual-invoke.2.cs \ - generic-typedef.2.cs \ - generic-marshalbyref.2.cs \ - bug-459285.2.cs \ - bug-461198.2.cs \ - generic-sealed-virtual.2.cs \ - generic-system-arrays.2.cs \ - generic-stack-traces.2.cs \ - generic-stack-traces2.2.cs \ - bug-472600.2.cs \ - bug-473482.2.cs \ - bug-473999.2.cs \ - bug-479763.2.cs \ - generic-type-load-exception.2.cs \ - bug-616463.cs \ - bug-1147.cs \ - generic-type-builder.2.cs - -GSHARED_DISABLED_TESTS= - -if FULL_AOT_TESTS -GSHARED_DISABLED_TESTS += \ - generic-type-builder.2.exe -endif - -GSHARED_TESTS=$(filter-out $(GSHARED_DISABLED_TESTS),$(GSHARED_TESTS_SRC:.cs=.exe)) - -test-generic-sharing-normal: $(GSHARED_TESTS) +test-generic-sharing-normal: $(TESTS_GSHARED) $(TESTSAOT_GSHARED) @for fn in $+ ; do \ echo "Testing $$fn ..."; \ $(RUNTIME) -O=gshared $$fn > $$fn.stdout || exit 1; \ @@ -1832,15 +1849,11 @@ test-generic-sharing-normal: $(GSHARED_TESTS) if [ x$(AOT) = x1 ]; then $(with_mono_path) $(JITTEST_PROG_RUN) --aot --debug $$fn > /dev/null || exit 1; $(RUNTIME) $$fn > $$fn.stdout || exit 1; fi; \ done -test-generic-sharing-managed: test-runner.exe $(GSHARED_TESTS) - $(Q) $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) -j a --testsuite-name "gshared" --disabled "$(DISABLED_TESTS)" --opt-sets "gshared gshared,shared gshared,-inline gshared,-inline,shared" $(GSHARED_TESTS) +test-generic-sharing-managed: test-runner.exe $(TESTS_GSHARED) $(TESTSAOT_GSHARED) + $(Q) $(TOOLS_RUNTIME) $(TEST_RUNNER) -j a --testsuite-name "gshared" --disabled "$(DISABLED_TESTS)" --opt-sets "gshared gshared,shared gshared,-inline gshared,-inline,shared" $(TESTS_GSHARED) -if NACL_CODEGEN -test-generic-sharing: -else test-generic-sharing: @if test x$(M) != x0; then $(MAKE) test-generic-sharing-managed; else $(MAKE) test-generic-sharing-normal; fi -endif EXTRA_DIST += async-exceptions.cs async-exceptions.exe : async-exceptions.cs @@ -1863,70 +1876,70 @@ patch-libtool: touch libtest.c -if NACL_CODEGEN -test-process-exit: -else EXTRA_DIST += threadpool-in-processexit.cs threadpool-in-processexit.exe.stdout.expected test-process-exit: @$(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 @diff -w threadpool-in-processexit.exe.stdout $(srcdir)/threadpool-in-processexit.exe.stdout.expected -endif - -OOM_TESTS = \ - gc-oom-handling.exe \ - gc-oom-handling2.exe - - -test-oom: $(OOM_TESTS) - @for fn in $+ ; do \ - echo "Testing $$fn ..."; \ - 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 - -if HOST_WIN32 -test-unhandled-exception-2: -else # tests that expect a 1 exit code -UNHANDLED_EXCEPTION_1_TESTS = \ - unhandled-exception-1.exe +TESTS_UNHANDLED_EXCEPTION_1_SRC = \ + unhandled-exception-1.cs # 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 \ - unhandled-exception-8.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 - $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --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 $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 1 $(UNHANDLED_EXCEPTION_1_TESTS) -test-unhandled-exception-2-255-with-managed-handler: $(UNHANDLED_EXCEPTION_255_TESTS) test-runner.exe - $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --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 $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 255 $(UNHANDLED_EXCEPTION_255_TESTS) +TESTS_UNHANDLED_EXCEPTION_255_SRC = \ + unhandled-exception-2.cs \ + unhandled-exception-3.cs \ + unhandled-exception-4.cs \ + unhandled-exception-5.cs \ + unhandled-exception-6.cs \ + unhandled-exception-7.cs \ + unhandled-exception-8.cs + +TESTS_UNHANDLED_EXCEPTION_1=$(filter-out $(DISABLED_TESTS),$(TESTS_UNHANDLED_EXCEPTION_1_SRC:.cs=.exe)) +TESTS_UNHANDLED_EXCEPTION_255=$(filter-out $(DISABLED_TESTS),$(TESTS_UNHANDLED_EXCEPTION_255_SRC:.cs=.exe)) +if FULL_AOT_TESTS +TESTSAOT_UNHANDLED_EXCEPTION_1=$(TESTS_UNHANDLED_EXCEPTION_1:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +TESTSAOT_UNHANDLED_EXCEPTION_255=$(TESTS_UNHANDLED_EXCEPTION_255:.exe=.exe$(PLATFORM_AOT_SUFFIX)) endif +if HYBRID_AOT_TESTS +TESTSAOT_UNHANDLED_EXCEPTION_1=$(TESTS_UNHANDLED_EXCEPTION_1:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +TESTSAOT_UNHANDLED_EXCEPTION_255=$(TESTS_UNHANDLED_EXCEPTION_255:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +endif + +test-unhandled-exception-2: $(TESTS_UNHANDLED_EXCEPTION_1) $(TESTS_UNHANDLED_EXCEPTION_255) $(TESTSAOT_UNHANDLED_EXCEPTION_1) $(TESTSAOT_UNHANDLED_EXCEPTION_255) + ok=; \ + $(MAKE) test-unhandled-exception-2-1-with-managed-handler || ok=false; \ + $(MAKE) test-unhandled-exception-2-1-without-managed-handler || ok=false; \ + $(MAKE) test-unhandled-exception-2-255-with-managed-handler || ok=false; \ + $(MAKE) test-unhandled-exception-2-255-without-managed-handler || ok=false; \ + $$ok + +test-unhandled-exception-2-1-with-managed-handler: $(TESTS_UNHANDLED_EXCEPTION_1) $(TESTSAOT_UNHANDLED_EXCEPTION_1) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 1 $(TESTS_UNHANDLED_EXCEPTION_1) +test-unhandled-exception-2-1-without-managed-handler: $(TESTS_UNHANDLED_EXCEPTION_1) $(TESTSAOT_UNHANDLED_EXCEPTION_1) test-runner.exe + TEST_UNHANDLED_EXCEPTION_HANDLER=1 $(TOOLS_RUNTIME) $(TEST_RUNNER) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 1 $(TESTS_UNHANDLED_EXCEPTION_1) +test-unhandled-exception-2-255-with-managed-handler: $(TESTS_UNHANDLED_EXCEPTION_255) $(TESTSAOT_UNHANDLED_EXCEPTION_255) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 255 $(TESTS_UNHANDLED_EXCEPTION_255) +test-unhandled-exception-2-255-without-managed-handler: $(TESTS_UNHANDLED_EXCEPTION_255) $(TESTSAOT_UNHANDLED_EXCEPTION_255) test-runner.exe + TEST_UNHANDLED_EXCEPTION_HANDLER=1 $(TOOLS_RUNTIME) $(TEST_RUNNER) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 255 $(TESTS_UNHANDLED_EXCEPTION_255) + EXTRA_DIST += appdomain-loader.cs appdomain-tester.cs + +if FULL_AOT_TESTS +test-appdomain-unload: +else +appdomain-loader.exe: appdomain-tester.exe + test-appdomain-unload: appdomain-loader.exe appdomain-tester.exe $(RUNTIME) -O=gshared appdomain-loader.exe > appdomain-loader.exe.1.stdout || exit 1; $(RUNTIME) appdomain-loader.exe > appdomain-loader.exe.2.stdout || exit 1; MONO_DEBUG_ASSEMBLY_UNLOAD=1 $(RUNTIME) -O=gshared appdomain-loader.exe > appdomain-loader.exe.3.stdout || exit 1; MONO_DEBUG_ASSEMBLY_UNLOAD=1 $(RUNTIME) appdomain-loader.exe > appdomain-loader.exe.4.stdout || exit 1; +endif EXTRA_DIST += console-output.cs console-output.exe.stderr.expected console-output.exe.stdout.expected test-console-output: console-output.exe @@ -1938,7 +1951,7 @@ test-console-output: console-output.exe test-pedump: test-runner.exe $(with_mono_path) $(mono_build_root)/tools/pedump/pedump --verify error test-runner.exe -.PHONY: test-gac-loading +.PHONY: test-gac-loading test-eglib-remap runtest-gac-loading: test-runner.exe $(MAKE) -C testing_gac runtest @@ -1946,14 +1959,24 @@ runtest-gac-loading: test-runner.exe compile-gac-loading: $(MAKE) -C testing_gac compile-tests -PROCESS_STRESS_TESTS= \ - process-stress-1.exe \ - process-stress-2.exe \ - process-stress-3.exe \ - process-leak.exe +TESTS_STRESS_PROCESS_SRC= \ + process-stress-1.cs \ + process-stress-2.cs \ + process-stress-3.cs \ + process-leak.cs + +TESTS_STRESS_PROCESS=$(filter-out $(DISABLED_TESTS),$(TESTS_STRESS_PROCESS_SRC:.cs=.exe)) + +if FULL_AOT_TESTS +TESTSAOT_STRESS_PROCESS=$(TESTS_STRESS_PROCESS:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +endif + +if HYBRID_AOT_TESTS +TESTSAOT_STRESS_PROCESS=$(TESTS_STRESS_PROCESS:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +endif -test-process-stress: $(PROCESS_STRESS_TESTS) test-runner.exe - $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 600 $(PROCESS_STRESS_TESTS) +test-process-stress: $(TESTS_STRESS_PROCESS) $(TESTSAOT_STRESS_PROCESS) test-runner.exe + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 600 $(TESTS_STRESS_PROCESS) coreclr-gcstress: $(MAKE) -C $(mono_build_root)/acceptance-tests coreclr-gcstress @@ -1980,4 +2003,70 @@ endif libtest_la_SOURCES = libtest.c libtest_la_LIBADD = $(GLIB_LIBS) $(LIBICONV) -CLEANFILES = $(TESTSI_CS) $(TESTSI_IL) $(STRESS_TESTS) *.dll *.stdout *.aotlog *.exe stest.dat +INTERNALSVISIBLETO_TEST_SRC = \ + internalsvisibleto-runtimetest.cs \ + internalsvisibleto-compilertest.cs + +INTERNALSVISIBLETO_TEST_LIB_SRC = \ + internalsvisibleto-library.cs + +INTERNALSVISIBLETO_TEST_LIBS = \ + internalsvisibleto-correctcase.dll \ + internalsvisibleto-wrongcase.dll \ + internalsvisibleto-correctcase-2.dll \ + internalsvisibleto-wrongcase-2.dll \ + internalsvisibleto-correctcase-sign2048.dll \ + internalsvisibleto-wrongcase-sign2048.dll \ + internalsvisibleto-correctcase-2-sign2048.dll \ + internalsvisibleto-wrongcase-2-sign2048.dll + + +INTERNALSVISIBLETO_TEST = \ + $(INTERNALSVISIBLETO_TEST_SRC:.cs=.exe) \ + $(INTERNALSVISIBLETO_TEST_SRC:.cs=-sign2048.exe) + +if FULL_AOT_TESTS +INTERNALSVISIBLETO_TESTAOT = \ + $(INTERNALSVISIBLETO_TEST:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +INTERNALSVISIBLETO_TESTAOT_LIBS = \ + $(INTERNALSVISIBLETO_TEST_LIBS:.dll=.dll$(PLATFORM_AOT_SUFFIX)) +endif + +if HYBRID_AOT_TESTS +INTERNALSVISIBLETO_TESTAOT = \ + $(INTERNALSVISIBLETO_TEST:.exe=.exe$(PLATFORM_AOT_SUFFIX)) +INTERNALSVISIBLETO_TESTAOT_LIBS = \ + $(INTERNALSVISIBLETO_TEST_LIBS:.dll=.dll$(PLATFORM_AOT_SUFFIX)) +endif + +EXTRA_DIST += $(INTERNALSVISIBLETO_TEST_SRC) $(INTERNALSVISIBLETO_TEST_LIB_SRC) + +test-internalsvisibleto: test-runner.exe $(INTERNALSVISIBLETO_TEST) $(INTERNALSVISIBLETO_TESTAOT) $(INTERNALSVISIBLETO_TESTAOT_LIBS) + $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ $(INTERNALSVISIBLETO_TEST) + +internalsvisibleto-correctcase.dll internalsvisibleto-wrongcase.dll internalsvisibleto-runtimetest.exe: internalsvisibleto-runtimetest.cs internalsvisibleto-library.cs + $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-correctcase.dll -target:library -d:CORRECT_CASE -d:PERMISSIVE internalsvisibleto-library.cs + $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-wrongcase.dll -target:library -d:WRONG_CASE -d:PERMISSIVE internalsvisibleto-library.cs + $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-runtimetest.exe -warn:0 -r:internalsvisibleto-correctcase.dll -r:internalsvisibleto-wrongcase.dll internalsvisibleto-runtimetest.cs + $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-correctcase.dll -target:library -d:CORRECT_CASE internalsvisibleto-library.cs + $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-wrongcase.dll -target:library -d:WRONG_CASE internalsvisibleto-library.cs + +internalsvisibleto-correctcase-2.dll internalsvisibleto-wrongcase-2.dll internalsvisibleto-compilertest.exe: internalsvisibleto-compilertest.cs internalsvisibleto-library.cs + $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-correctcase-2.dll -target:library -d:CORRECT_CASE internalsvisibleto-library.cs + $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-wrongcase-2.dll -target:library -d:WRONG_CASE internalsvisibleto-library.cs + $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-compilertest.exe -warn:0 -r:internalsvisibleto-correctcase-2.dll -r:internalsvisibleto-wrongcase-2.dll internalsvisibleto-compilertest.cs + +internalsvisibleto-correctcase-sign2048.dll internalsvisibleto-wrongcase-sign2048.dll internalsvisibleto-runtimetest-sign2048.exe: internalsvisibleto-runtimetest.cs internalsvisibleto-library.cs internalsvisibleto-2048.snk + $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-correctcase-sign2048.dll -target:library -d:CORRECT_CASE -d:PERMISSIVE -d:SIGN2048 internalsvisibleto-library.cs + $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-wrongcase-sign2048.dll -target:library -d:WRONG_CASE -d:PERMISSIVE -d:SIGN2048 internalsvisibleto-library.cs + $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-runtimetest-sign2048.exe -warn:0 -r:internalsvisibleto-correctcase-sign2048.dll -r:internalsvisibleto-wrongcase-sign2048.dll -d:SIGN2048 internalsvisibleto-runtimetest.cs + $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-correctcase-sign2048.dll -target:library -d:CORRECT_CASE -d:SIGN2048 internalsvisibleto-library.cs + $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-wrongcase-sign2048.dll -target:library -d:WRONG_CASE -d:SIGN2048 internalsvisibleto-library.cs + +internalsvisibleto-correctcase-2-sign2048.dll internalsvisibleto-wrongcase-2-sign2048.dll internalsvisibleto-compilertest-sign2048.exe: internalsvisibleto-compilertest.cs internalsvisibleto-library.cs internalsvisibleto-2048.snk + $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-correctcase-2-sign2048.dll -target:library -d:CORRECT_CASE -d:SIGN2048 internalsvisibleto-library.cs + $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-wrongcase-2-sign2048.dll -target:library -d:WRONG_CASE -d:SIGN2048 internalsvisibleto-library.cs + $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-compilertest-sign2048.exe -warn:0 -r:internalsvisibleto-correctcase-2-sign2048.dll -r:internalsvisibleto-wrongcase-2-sign2048.dll -d:SIGN2048 internalsvisibleto-compilertest.cs + + +CLEANFILES = $(TESTS_CS) $(TESTS_IL) $(TESTS_BENCH) $(TESTS_STRESS) $(TESTSAOT_CS) $(TESTSAOT_IL) $(TESTSAOT_BENCH) $(TESTSAOT_STRESS) *.dll *.stdout *.aotlog *.exe stest.dat