1 SUBDIRS = assemblyresolve gc-descriptors . testing_gac
4 FEATUREFUL_RUNTIME_TEST =
6 FEATUREFUL_RUNTIME_TEST = test-appdomain-unload
9 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 \
10 test-console-output test-env-options test-unhandled-exception-2 $(FEATUREFUL_RUNTIME_TEST) test-process-stress test-pedump rm-empty-logs runtest-gac-loading
11 check-full: test-sgen check-local
12 check-parallel: compile-tests check-full
15 $(MAKE) -C $(mono_build_root)/acceptance-tests check-coreclr
17 # for backwards compatibility on Wrench
18 test-wrench: check-parallel
20 aotcheck: testaot gshared-aot
22 JITTEST_PROG = $(if $(VALGRIND), valgrind $(VALGRIND_ARGS),) $(if $(SGEN),$(top_builddir)/mono/mini/mono-sgen,$(top_builddir)/mono/mini/mono)
24 JITTEST_PROG_RUN = MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(JITTEST_PROG)
27 RUNTIME_ARGS=--config tests-config --optimize=all --debug
30 TEST_RUNNER_ARGS=--config tests-config --runtime $(if $(MONO_EXECUTABLE),$(shell cygpath -w -a $(MONO_EXECUTABLE) | sed 's/\\/\\\\/g'),mono)
32 TEST_RUNNER_ARGS=--config tests-config --runtime $(if $(MONO_EXECUTABLE),$(MONO_EXECUTABLE),mono)
35 TEST_RUNNER_ARGS += $(if $(V), --verbose,)
37 CLASS=$(mcs_topdir)/class/lib/$(DEFAULT_PROFILE)
39 with_mono_path = MONO_PATH=$(CLASS)
41 RUNTIME = $(with_mono_path) $(top_builddir)/runtime/mono-wrapper
42 TOOLS_RUNTIME = MONO_PATH=$(mcs_topdir)/class/lib/build $(top_builddir)/runtime/mono-wrapper --aot-path=$(mcs_topdir)/class/lib/build
45 PKG_CONFIG_PATH=$(top_builddir):$(PKG_CONFIG_PATH) \
46 $(RUNTIME) $(CLASS)/mkbundle.exe
49 PROFILE_MCS_FLAGS = -d:MOBILE,MOBILE_LEGACY,FULL_AOT_DESKTOP
53 PROFILE_MCS_FLAGS = -d:MOBILE,MOBILE_LEGACY
56 MCS_NO_LIB = $(TOOLS_RUNTIME) $(CSC) -unsafe -debug:portable \
58 -nowarn:0162 -nowarn:0168 -nowarn:0219 -nowarn:0414 -nowarn:0618 \
59 -nowarn:0169 -nowarn:1690 -nowarn:0649 -nowarn:0612 -nowarn:3021 \
60 -nowarn:0197 $(PROFILE_MCS_FLAGS)
64 ILASM = $(TOOLS_RUNTIME) $(mcs_topdir)/class/lib/build/ilasm.exe
66 TEST_RUNNER = ./test-runner.exe --runtime $(top_builddir)/runtime/mono-wrapper --mono-path "$(CLASS)"
69 TEST_RUNNER += --aot-run-flags "$(AOT_RUN_FLAGS)" --aot-build-flags "$(AOT_BUILD_FLAGS)"
73 TEST_RUNNER += --aot-run-flags "$(AOT_RUN_FLAGS)" --aot-build-flags "$(AOT_BUILD_FLAGS)"
77 BENCHSRC=fib.cs random.cs nested-loops.cs ackermann.cs tight-loop.cs sieve.cs
89 gc-graystack-stress.cs \
92 assembly-load-stress.cs
94 # Disabled until ?mcs is fixed
97 generic-unloading-sub.2.cs \
102 assembly-load-remap.cs \
103 assemblyresolve_event.cs \
104 assemblyresolve_event3.cs \
105 assemblyresolve_event4.cs \
138 typeload-unaligned.cs \
140 valuetype-gettype.cs \
142 static-constructor.cs \
152 invoke-string-ctors.cs \
161 assignable-tests.cs \
163 array-subtype-attr.cs \
169 newobj-valuetype.cs \
183 reflection-const-field.cs \
243 test-byval-in-struct.cs \
247 thread-static-init.cs \
259 threadpool-exceptions1.cs \
260 threadpool-exceptions2.cs \
261 threadpool-exceptions3.cs \
262 threadpool-exceptions4.cs \
263 threadpool-exceptions5.cs \
264 threadpool-exceptions6.cs \
276 bug-Xamarin-5278.cs \
278 delegate-async-exit.cs \
279 delegate-delegate-exit.cs \
282 finalizer-exception.cs \
284 finalizer-thread.cs \
286 main-returns-abort-resetabort.cs \
287 main-returns-background-abort-resetabort.cs \
288 main-returns-background-resetabort.cs \
289 main-returns-background.cs \
290 main-returns-background-change.cs \
298 soft-float-tests.cs \
305 catch-generics.2.cs \
308 module-cctor-loader.2.cs \
309 generics-invoke-byref.2.cs \
310 generic-signature-compare.2.cs \
311 generics-sharing.2.cs \
312 shared-generic-methods.2.cs \
313 shared-generic-synchronized.2.cs \
314 generic-inlining.2.cs \
315 generic-initobj.2.cs \
316 generic-delegate.2.cs \
317 generic-sizeof.2.cs \
318 generic-virtual.2.cs \
319 generic-interface-methods.2.cs \
320 generic-array-type.2.cs \
321 generic-method-patching.2.cs \
322 generic-static-methods.2.cs \
323 generic-null-call.2.cs \
324 generic-special.2.cs \
325 generic-exceptions.2.cs \
326 generic-virtual2.2.cs \
327 generic-valuetype-interface.2.cs \
328 generic-getgenericarguments.2.cs \
329 generic-synchronized.2.cs \
330 generic-delegate-ctor.2.cs \
331 generic-array-iface-set.2.cs \
332 generic-typedef.2.cs \
335 generic-virtual-invoke.2.cs \
337 generic-sealed-virtual.2.cs \
338 generic-system-arrays.2.cs \
339 generic-stack-traces.2.cs \
340 generic-stack-traces2.2.cs \
342 recursive-generics.2.cs \
350 ienumerator-interfaces.2.cs \
351 array-enumerator-ifaces.2.cs \
352 generic_type_definition_encoding.2.cs \
359 nullable_boxing.2.cs \
360 valuetype-equals.cs \
361 custom-modifiers.2.cs \
363 test-inline-call-stack.cs \
389 monitor-resurrection.cs \
390 monitor-wait-abort.cs \
402 async-with-cb-throws.cs \
406 allow-synchronous-major.cs \
407 block_guard_restore_aligment_on_exit.cs \
408 thread_static_gc_layout.cs \
421 thread-native-exit.cs \
422 reference-loader.cs \
423 thread-suspend-suspended.cs \
424 thread-suspend-selfsuspended.cs \
431 appdomain-client.cs \
432 appdomain-unload.cs \
433 appdomain-async-invoke.cs \
434 appdomain-thread-abort.cs \
438 assemblyresolve_event2.2.cs \
439 appdomain-unload-callback.cs \
440 appdomain-unload-doesnot-raise-pending-events.cs \
441 unload-appdomain-on-shutdown.cs \
445 generic-type-builder.2.cs \
446 dynamic-generic-size.cs \
448 dynamic-method-access.2.cs \
449 dynamic-method-finalize.2.cs \
450 dynamic-method-stack-traces.cs \
451 generic_type_definition.2.cs \
454 bug-322722_patch_bx.2.cs \
455 bug-322722_dyn_method_throw.2.cs \
458 bug-389886-sre-generic-interface-instances.cs \
462 constant-division.cs \
463 dynamic-method-resurrection.cs \
465 assembly_append_ordering.cs \
468 generic-marshalbyref.2.cs \
469 stackframes-async.2.cs \
470 transparentproxy.cs \
473 marshal-valuetypes.cs \
476 generic-xdomain.2.cs \
477 threadpool-exceptions7.cs \
479 generic-unloading.2.cs \
480 namedmutex-destroy-race.cs \
482 appdomain-threadpool-unload.cs \
483 process-unref-race.cs \
488 $(BASE_TEST_CS_SRC) \
489 async-exc-compilation.cs \
492 finally_block_ending_in_dead_bb.cs
495 runtime-invoke.gen.cs \
496 imt_big_iface_test.cs
499 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
502 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
504 TEST_CS_SRC = $(BASE_TEST_CS_SRC) $(TEST_CS_SRC_GEN)
509 TEST_CS_SRC+=async-exc-compilation.cs filter-stack.cs
519 calliGenericTest.il \
528 static-fields-nonconst.il \
529 reload-at-bb-end.il \
530 test-enum-indstoreil.il \
537 call_missing_method.il \
538 call_missing_class.il \
539 ldfld_missing_field.il \
540 ldfld_missing_class.il \
547 ldtoken_with_byref_typespec.2.il \
548 resolve_method_bug.2.il \
549 resolve_field_bug.2.il \
550 resolve_type_bug.2.il \
551 generics-sharing-other-exc.2.il \
553 generic-mkrefany.2.il \
554 generic-refanyval.2.il \
555 generic-ldtoken.2.il \
556 generic-ldtoken-method.2.il \
557 generic-ldtoken-field.2.il \
558 generic-tailcall.2.il \
559 generic-tailcall2.2.il \
560 generic-array-exc.2.il \
561 generic-valuetype-newobj2.2.il \
562 generic-valuetype-newobj.2.il \
563 generic-constrained.2.il \
564 generic-type-load-exception.2.il \
571 array_load_exception.il \
573 interface-with-static-method.il \
575 delegate-with-null-target.il \
577 gsharing-valuetype-layout.il \
578 invalid_generic_instantiation.il \
579 bug-45841-fpstack-exceptions.il
583 PLATFORM_DISABLED_TESTS = finally_guard.exe
586 PLATFORM_DISABLED_TESTS += w32message.exe
593 PLATFORM_DISABLED_TESTS=exception17.exe
594 PLATFORM_DISABLED_TESTS+=winx64structs.exe
600 PLATFORM_DISABLED_TESTS=async-exc-compilation.exe finally_guard.exe finally_block_ending_in_dead_bb.exe \
601 bug-18026.exe monitor.exe threadpool-exceptions5.exe process-unref-race.exe w32message.exe
608 PLATFORM_DISABLED_TESTS=finalizer-abort.exe finalizer-exception.exe finalizer-exit.exe
612 # FIXME: These tests hang/fail for unknown reasons
613 PLATFORM_DISABLED_TESTS=monitor.exe threadpool-exceptions5.exe appdomain-thread-abort.exe appdomain-unload.exe \
614 pinvoke2.exe pinvoke3.exe pinvoke11.exe threadpool-exceptions7.exe winx64structs.exe bug-10127.exe pinvoke_ppcc.exe \
615 pinvoke_ppcs.exe pinvoke_ppci.exe pinvoke_ppcf.exe pinvoke_ppcd.exe abort-cctor.exe \
616 sgen-domain-unload-2.exe sgen-weakref-stress.exe sgen-cementing-stress.exe sgen-new-threads-dont-join-stw.exe \
617 sgen-new-threads-dont-join-stw-2.exe sgen-new-threads-collect.exe sgen-bridge.exe
621 PLATFORM_DISABLED_TESTS=filter-stack.exe
625 # monitor.exe is racy
626 PLATFORM_DISABLED_TESTS=filter-stack.exe monitor.exe
630 PLATFORM_DISABLED_TESTS=dynamic-method-resurrection.exe
631 #PLATFORM_DISABLED_TESTS=dynamic-method-resurrection.exe exception17.exe
635 # Tests that use Thread.Abort()
636 PLATFORM_DISABLED_TESTS= abort-stress-1.exe \
639 appdomain-thread-abort.exe \
640 async-exc-compilation.exe \
643 finalizer-abort.exe \
645 finally_block_ending_in_dead_bb.exe \
646 main-returns-abort-resetabort.exe \
647 main-returns-background-abort-resetabort.exe \
649 threadpool-exceptions5.exe \
650 threadpool-exceptions6.exe
652 PLATFORM_DISABLED_TESTS+= w32message.exe
654 # Tests that rely on AppDomain.Unload
655 PLATFORM_DISABLED_TESTS+= appdomain-async-invoke.exe \
657 appdomain-unload-callback.exe \
658 appdomain-unload.exe \
660 generic-unloading.2.exe \
663 threadpool-exceptions7.exe \
666 # pinvoke2 attaches a thread to the runtime, but
667 # doesn't 'unattach' it and it hangs in GC on exit
668 PLATFORM_DISABLED_TESTS+= pinvoke2.exe
670 # Tests that currently hang waiting for non-main threads
671 # to exit in NaCl, need to investigate. Most are AppDomain
672 # creation and Delegate tests.
673 PLATFORM_DISABLED_TESTS+= appdomain1.exe \
675 marshal-valuetypes.exe \
677 stackframes-async.2.exe \
678 generic-marshalbyref.2.exe \
679 generic-xdomain.2.exe \
682 # Tests that fail trying to write files (appdomain create mostly)
683 PLATFORM_DISABLED_TESTS+= bug-335131.2.exe \
688 # FIXME: don't know why delegate2.exe fails, it shouldn't
689 PLATFORM_DISABLED_TESTS+= delegate2.exe
691 # These tests newly fail with the latest revision. pinvoke3 fails because
692 # of a thread attach, the others have not been investigated. TODO revisit.
693 PLATFORM_DISABLED_TESTS+= pinvoke3.exe \
695 async-with-cb-throws.exe \
696 appdomain-unload-doesnot-raise-pending-events.exe \
697 gsharing-valuetype-layout.exe
700 # FIXME: There are problems with async callbacks and results on NaCl 32-bit
701 PLATFORM_DISABLED_TESTS+= delegate1.exe \
707 threadpool-exceptions3.exe \
712 # FIXME: These tests hang/fail for unknown reasons, deal with exiting
713 PLATFORM_DISABLED_TESTS+= main-returns-background-resetabort.exe \
714 main-returns-background.exe \
715 main-returns-background-change.exe
721 COOP_DISABLED_TESTS= thunks.exe
726 PROFILE_DISABLED_TESTS=
729 # Tests which rely on TypeLoadExceptions
730 # In full-aot mode, these cause the relevant methods to be not AOTed.
731 PROFILE_DISABLED_TESTS += \
732 typeload-unaligned.exe \
734 invalid_generic_instantiation.exe \
737 array_load_exception.exe \
739 generic-type-load-exception.2.exe \
741 call_missing_method.exe \
742 call_missing_class.exe \
743 ldfld_missing_field.exe \
744 ldfld_missing_class.exe \
747 # Tests which rely on remoting
748 PROFILE_DISABLED_TESTS += \
751 generic-marshalbyref.2.exe \
752 unhandled-exception-7.exe
754 # Tests which use unsupported pinvoke+full aot
756 PROFILE_DISABLED_TESTS += \
766 # Tests which load assemblies which are not
767 # in the testing_aot_full profile
768 PROFILE_DISABLED_TESTS += \
769 assembly-load-remap.exe
771 # Test which needs remoting support
772 PROFILE_DISABLED_TESTS += \
779 # Tests which needs AppDomain support
780 PROFILE_DISABLED_TESTS += \
782 appdomain-client.exe \
783 appdomain-unload.exe \
784 appdomain-async-invoke.exe \
785 appdomain-thread-abort.exe \
789 appdomain-unload-callback.exe \
790 appdomain-unload-doesnot-raise-pending-events.exe \
791 unload-appdomain-on-shutdown.exe \
792 assemblyresolve_event2.2.exe \
795 generic-marshalbyref.2.exe \
796 stackframes-async.2.exe \
797 transparentproxy.exe \
800 marshal-valuetypes.exe \
801 xdomain-threads.exe \
803 generic-xdomain.2.exe \
804 threadpool-exceptions7.exe \
806 generic-unloading.2.exe \
807 appdomain-threadpool-unload.exe
809 # Tests which needs System.Reflection.Emit support
810 PROFILE_DISABLED_TESTS += \
814 generic-type-builder.2.exe \
815 dynamic-generic-size.exe \
817 dynamic-method-access.2.exe \
818 dynamic-method-finalize.2.exe \
819 dynamic-method-stack-traces.exe \
820 generic_type_definition.2.exe \
821 bug-333798-tb.2.exe \
823 bug-322722_patch_bx.2.exe \
824 bug-322722_dyn_method_throw.2.exe \
827 bug-389886-sre-generic-interface-instances.exe \
831 constant-division.exe \
832 dynamic-method-resurrection.exe \
833 assembly_append_ordering.exe
835 # Test which needs System.Web support
836 PROFILE_DISABLED_TESTS += \
839 # Tests which needs named Mutex support
840 PROFILE_DISABLED_TESTS += \
841 namedmutex-destroy-race.exe
843 # ThreadAbortException doesn't have necessary field for this test
844 PROFILE_DISABLED_TESTS += \
847 # can't AOT the TestingReferenceAssembly.dll which is a dependency
848 # of reference-loader.exe because it contains the [ReferenceAssemblyAttribute]
849 # and the runtime errors out with "File does not contain a valid CIL image."
850 PROFILE_DISABLED_TESTS += \
853 # constraints-load.il:
854 # Failed to load method 0x6000007 from '..../mono/tests/constraints-load.exe' due to
855 # Could not resolve type with token 01000002 assembly:mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 type:System.BrokenIComparable`1 member:<none>.
856 PROFILE_DISABLED_TESTS += \
857 constraints-load.exe \
862 PROFILE_DISABLED_TESTS += \
864 namedmutex-destroy-race.exe
867 AOT_DISABLED_TESTS= \
870 CI_DISABLED_TESTS = \
871 main-returns-background-resetabort.exe \
872 main-returns-background-abort-resetabort.exe \
873 assemblyresolve_event3.exe \
876 generic-xdomain.2.exe
878 # failing tests which we temporarily disable for PRs
879 # so they don't interfere with other people's work
880 CI_PR_DISABLED_TESTS = \
881 appdomain-threadpool-unload.exe \
882 appdomain-thread-abort.exe
884 # appdomain-threadpool-unload.exe creates 100 appdomains, takes too long with llvm
885 LLVM_DISABLED_TESTS = \
886 appdomain-threadpool-unload.exe
888 LLVM = $(filter --llvm, $(MONO_ENV_OPTIONS))
890 # The two finalizer tests only work under sgen
891 # gc-altstack.exe fails under boehm because it has no support for altstack
892 # bug-459094.exe creates an extremely deep directory tree
893 # delegate-invoke.exe depends on 929c6bc9b6d76a273f251e6f5dfacac36e9c38bd which was
895 # bug-Xamarin-5278.exe got broken by 5d26590e79da139a284459299aee95c25f4cd835
896 # bug-45841-fpstack-exceptions.exe: https://bugzilla.xamarin.com/show_bug.cgi?id=47053
897 # appdomain-thread-abort.exe: https://bugzilla.xamarin.com/show_bug.cgi?id=47054
898 KNOWN_FAILING_TESTS = \
899 delegate-async-exception.exe \
902 delegate-invoke.exe \
903 bug-Xamarin-5278.exe \
904 bug-45841-fpstack-exceptions.exe \
905 appdomain-thread-abort.exe
908 $(KNOWN_FAILING_TESTS) \
909 $(PLATFORM_DISABLED_TESTS) \
910 $(EXTRA_DISABLED_TESTS) \
911 $(COOP_DISABLED_TESTS) \
912 $(PROFILE_DISABLED_TESTS) \
913 $(if $(AOT),$(AOT_DISABLED_TESTS)) \
914 $(if $(CI),$(CI_DISABLED_TESTS)) \
915 $(if $(CI_PR),$CI_PR_DISABLED_TESTS) \
916 $(if $(LLVM),$(LLVM_DISABLED_TESTS))
918 INTERP_DISABLED_TESTS = \
919 $(CI_PR_DISABLED_TESTS) \
920 $(CI_DISABLED_TESTS) \
921 $(KNOWN_FAILING_TESTS) \
923 appdomain-async-invoke.exe \
925 appdomain-unload-callback.exe \
926 appdomain-unload-doesnot-raise-pending-events.exe \
927 appdomain-unload.exe \
931 array_load_exception.exe \
932 assembly_append_ordering.exe \
933 assemblyresolve_event4.exe \
934 async-exc-compilation.exe \
935 async-with-cb-throws.exe \
963 call_missing_class.exe \
964 call_missing_method.exe \
965 calliGenericTest.exe \
969 constant-division.exe \
972 delegate-async-exit.exe \
973 delegate-delegate-exit.exe \
975 delegate-with-null-target.exe \
983 dynamic-method-access.2.exe \
984 dynamic-method-finalize.2.exe \
985 dynamic-method-resurrection.exe \
986 dynamic-method-stack-traces.exe \
991 finally_block_ending_in_dead_bb.exe \
994 generic-marshalbyref.2.exe \
995 generic-mkrefany.2.exe \
996 generic-refanyval.2.exe \
997 generic-stack-traces2.2.exe \
998 generic-type-load-exception.2.exe \
999 generic-unloading.2.exe \
1000 generics-invoke-byref.2.exe \
1001 generics-sharing.2.exe \
1004 invalid_generic_instantiation.exe \
1005 invoke-string-ctors.exe \
1006 ldfld_missing_class.exe \
1007 ldfld_missing_field.exe \
1009 marshal-valuetypes.exe \
1015 main-returns-background-change.exe \
1019 monitor-wait-abort.exe \
1021 namedmutex-destroy-race.exe \
1022 nullable_boxing.2.exe \
1036 process-unref-race.exe \
1037 reference-loader.exe \
1038 reload-at-bb-end.exe \
1044 runtime-invoke.exe \
1045 runtime-invoke.gen.exe \
1047 shared-generic-synchronized.2.exe \
1048 stackframes-async.2.exe \
1049 static-constructor.exe \
1050 test-inline-call-stack.exe \
1052 test-type-ctor.exe \
1055 threadpool-exceptions1.exe \
1056 threadpool-exceptions2.exe \
1057 threadpool-exceptions3.exe \
1058 threadpool-exceptions4.exe \
1059 threadpool-exceptions5.exe \
1060 threadpool-exceptions6.exe \
1061 threadpool-exceptions7.exe \
1065 transparentproxy.exe \
1066 typeload-unaligned.exe \
1067 unload-appdomain-on-shutdown.exe \
1071 vt-sync-method.exe \
1075 # pre-requisite test sources: files that are not test themselves
1076 # but that need to be compiled
1077 PREREQ_IL_SRC=event-il.il module-cctor.il
1082 PREREQSI_IL=$(PREREQ_IL_SRC:.il=.exe) \
1083 $(PREREQ_IL_DLL_SRC:.il=.dll)
1084 PREREQSI_CS=$(PREREQ_CS_SRC:.cs=.exe) \
1085 $(PREREQ_CS_DLL_SRC:.cs=.dll)
1086 TESTSI_CS=$(filter-out $(DISABLED_TESTS),$(TEST_CS_SRC:.cs=.exe))
1087 TESTSI_IL=$(filter-out $(DISABLED_TESTS),$(TEST_IL_SRC:.il=.exe))
1088 TESTBS=$(filter-out $(DISABLED_TESTS),$(BENCHSRC:.cs=.exe))
1089 STRESS_TESTS=$(filter-out $(DISABLED_TESTS),$(STRESS_TESTS_SRC:.cs=.exe))
1091 PREREQSI_IL_AOT=$(PREREQ_IL_SRC:.il=.exe$(PLATFORM_AOT_SUFFIX)) \
1092 $(PREREQ_IL_DLL_SRC:.il=.dll$(PLATFORM_AOT_SUFFIX))
1093 PREREQSI_CS_AOT=$(PREREQ_CS_SRC:.cs=.exe$(PLATFORM_AOT_SUFFIX)) \
1094 $(PREREQ_CS_DLL_SRC:.cs=.dll$(PLATFORM_AOT_SUFFIX))
1096 EXTRA_DIST=test-driver test-runner.cs $(TEST_CS_SRC_DIST) $(TEST_IL_SRC) \
1097 $(BENCHSRC) $(STRESS_TESTS_SRC) stress-runner.pl $(PREREQ_IL_SRC) $(PREREQ_CS_SRC)
1103 TEST_DRIVER_HARD_KILL_FEATURE=-r:$(CLASS)/Mono.Posix.dll
1107 TEST_DRIVER_DEPEND=TestDriver.dll$(PLATFORM_AOT_SUFFIX)
1110 TEST_DRIVER_DEPEND=TestDriver.dll$(PLATFORM_AOT_SUFFIX)
1112 TEST_DRIVER_DEPEND=TestDriver.dll
1116 %.exe: %.cs $(TEST_DRIVER_DEPEND)
1117 $(MCS) -r:$(CLASS)/System.dll -r:$(CLASS)/System.Xml.dll -r:$(CLASS)/System.Core.dll -r:TestDriver.dll $(TEST_DRIVER_HARD_KILL_FEATURE) -out:$@ $<
1119 # N.B. test-runner.exe references the TOOLS_RUNTIME versions of the framework assemblies
1120 test-runner.exe: test-runner.cs $(TEST_DRIVER_DEPEND)
1121 $(MCS) -r:System.dll -r:System.Xml.dll -r:System.Core.dll -r:TestDriver.dll $(TEST_DRIVER_HARD_KILL_FEATURE) -out:$@ $<
1124 $(MCS) -r:$(CLASS)/System.dll -target:library -out:$@ $<
1126 reference-loader.exe: reference-loader.cs TestingReferenceAssembly.dll TestingReferenceReferenceAssembly.dll $(TEST_DRIVER_DEPEND)
1127 $(MCS) -r:$(CLASS)/System.dll -r:TestDriver.dll -r:TestingReferenceAssembly.dll -r:TestingReferenceReferenceAssembly.dll $(TEST_DRIVER_HARD_KILL_FEATURE) -out:$@ $(srcdir)/reference-loader.cs
1129 TestingReferenceAssembly.dll: TestingReferenceAssembly.cs
1130 $(MCS) -target:library -out:$@ $<
1132 TestingReferenceReferenceAssembly.dll: TestingReferenceReferenceAssembly.cs TestingReferenceAssembly.dll
1133 $(MCS) -r:TestingReferenceAssembly.dll -target:library -out:$@ $<
1135 %.exe$(PLATFORM_AOT_SUFFIX): %.exe
1136 $(RUNTIME) $(AOT_BUILD_FLAGS) $<
1138 %.dll$(PLATFORM_AOT_SUFFIX): %.dll
1139 $(RUNTIME) $(AOT_BUILD_FLAGS) $<
1141 # mkbundle works on ppc, but the pkg-config POC doesn't when run with make test
1145 # Can't use mkbundle on win32 since there is no static build there
1146 # Can't run test-unhandled-exception on Windows because of all the debug popups...
1150 # mkbundle uses the installed mono-2.pc so it won't work if there is no system mono
1151 #test_platform: testbundle test-iomap-regression
1152 test_platform: test-iomap-regression
1159 test_platform: test-eglib-remap
1164 bug-382986-lib.dll$(PLATFORM_AOT_SUFFIX) \
1165 bug-324535-il.dll$(PLATFORM_AOT_SUFFIX) \
1166 bug-36848-a.dll$(PLATFORM_AOT_SUFFIX) \
1167 bug-81691-b.dll$(PLATFORM_AOT_SUFFIX) \
1168 bug-327438.2.exe$(PLATFORM_AOT_SUFFIX) \
1169 bug-81466-lib.dll$(PLATFORM_AOT_SUFFIX)
1172 prereqs: $(PREREQSI_IL_AOT) $(PREREQSI_CS_AOT) $(AOT_EXTRA_LIBS)
1175 prereqs: $(PREREQSI_IL_AOT) $(PREREQSI_CS_AOT) $(AOT_EXTRA_LIBS)
1177 prereqs: $(PREREQSI_IL) $(PREREQSI_CS)
1181 # Target to precompile the test executables
1182 tests: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la prereqs $(GSHARED_TESTS)
1185 # Test that no symbols are missed in eglib-remap.h
1187 OK_G_SYMBOLS='g_list\|g_slist\|g_concat_dir_and_file\|g_Ctoc\'
1192 @echo "Testing eglib remap..."
1193 @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
1197 MONO_ENV_OPTIONS="--version" $(RUNTIME) array-init.exe | grep -q Architecture:
1199 test-sgen : sgen-tests
1201 # Precompile the test assemblies in parallel
1203 $(MAKE) -j4 $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS) compile-gac-loading
1205 $(MAKE) $(PREREQSI_IL_AOT) $(PREREQSI_CS_AOT) $(AOT_EXTRA_LIBS)
1208 $(MAKE) $(PREREQSI_IL_AOT) $(PREREQSI_CS_AOT) $(AOT_EXTRA_LIBS)
1211 # Remove empty .stdout and .stderr files for wrench
1213 @echo "Removing empty logs..."
1214 find . '(' -name "*.stdout" -o -name "*.stderr" ')' -size 0 -exec rm {} \;
1216 assemblyresolve/test/asm.dll:
1217 $(MAKE) -C assemblyresolve prereq
1220 $(MCS) -target:library -out:$@ $(srcdir)/../mini/TestDriver.cs $(srcdir)/../mini/TestHelpers.cs
1222 runtest: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
1226 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
1227 rm -f testlist testlist.sorted; \
1228 for i in $(TESTSI_CS) $(TESTBS) $(TESTSI_IL); do echo $${i} >> testlist; sort testlist > testlist.sorted; done; \
1229 for i in `cat testlist.sorted`; do \
1231 $(with_mono_path) $(JITTEST_PROG_RUN) --aot --debug $${i} > $${i}.aotlog 2>&1 || exit 1; \
1232 if $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$i "$(DISABLED_TESTS)" "$${dump_action}" $(RUNTIME_ARGS); \
1234 passed=`expr $${passed} + 1`; \
1236 if [ $$? = 2 ]; then break; fi; \
1237 failed=`expr $${failed} + 1`; \
1238 failed_tests="$${failed_tests} $$i"; \
1241 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1242 rm -f testlist testlist.sorted; \
1243 if [ $${failed} != 0 ]; then \
1244 echo -e "\nFailed tests:\n"; \
1245 for i in $${failed_tests}; do \
1247 if [ "x$$V" = "x1" ]; then \
1255 runtest-managed: test-runner.exe $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
1256 $(TOOLS_RUNTIME) --debug $(TEST_RUNNER) $(TEST_RUNNER_ARGS) -j a --testsuite-name "runtime" --timeout 300 --disabled "$(DISABLED_TESTS)" $(TESTSI_CS) $(TESTBS) $(TESTSI_IL)
1258 runtest-managed-serial: test-runner.exe $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
1259 $(TOOLS_RUNTIME) --debug $(TEST_RUNNER) $(TEST_RUNNER_ARGS) -j 1 --testsuite-name "runtime" --disabled "$(DISABLED_TESTS)" $(TESTSI_CS) $(TESTBS) $(TESTSI_IL)
1262 @if test x$(M) != x0; then $(MAKE) runtest-managed; else $(MAKE) runtest; fi
1265 @$(MAKE) AOT=1 runtest
1268 @$(MAKE) RUNTIME_ARGS="$${RUNTIME_ARGS} --trace" runtest
1270 testinterp: test-runner.exe $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
1271 $(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)
1273 testjitspeed: $(JITTEST_PROG) $(TESTBS)
1274 for i in $(TESTBS); do \
1276 time $(JITTEST_PROG) $$i; \
1279 test-iomap-regression: exists.cs
1280 @$(MCS) $(srcdir)/exists.cs -out:exists.exe
1281 @echo "Testing exists.exe..."
1282 @MONO_IOMAP=all $(RUNTIME) exists.exe
1284 stresstest: $(STRESS_TESTS)
1288 for i in $(STRESS_TESTS); do \
1289 if $(srcdir)/stress-runner.pl $$i ../mini/mono $(RUNTIME_ARGS); \
1291 passed=`expr $${passed} + 1`; \
1293 if [ $$? = 2 ]; then break; fi; \
1294 failed=`expr $${failed} + 1`; \
1295 failed_tests="$${failed_tests} $$i"; \
1298 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1299 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1300 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1302 testbundle: console.exe
1303 @echo "Testing mkbundle..."
1304 @$(MKBUNDLE) --static console.exe > mkbundle.stdout
1305 @$(with_mono_path) MONO_CFG_DIR=$(mono_cfg_dir) ./a.out >> mkbundle.stdout
1308 EXTRA_DIST += load-missing.il t-missing.cs load-exceptions.cs
1309 test-type-load: $(TEST_DRIVER_DEPEND)
1311 @$(ILASM) /dll /output:load-missing.dll $(srcdir)/load-missing.il > /dev/null
1312 @$(MCS) -t:library -out:t.dll -d:FOUND $(srcdir)/t-missing.cs
1313 @$(MCS) -r:TestDriver.dll -r:load-missing.dll -r:t.dll -out:load-exceptions.exe $(srcdir)/load-exceptions.cs
1314 @$(MCS) -t:library -out:t.dll $(srcdir)/t-missing.cs
1315 @echo "Testing load-exception.exe..."
1316 @$(RUNTIME) load-exceptions.exe > load-exceptions.exe.stdout 2> load-exceptions.exe.stderr
1319 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
1320 test-multi-netmodule:
1321 @$(MCS) -t:module test-multi-netmodule-1-netmodule.cs
1322 @$(MCS) -addmodule:test-multi-netmodule-1-netmodule.netmodule -t:library test-multi-netmodule-2-dll1.cs
1323 @$(MCS) -addmodule:test-multi-netmodule-1-netmodule.netmodule -t:library test-multi-netmodule-3-dll2.cs
1324 @$(MCS) -r:test-multi-netmodule-2-dll1.dll test-multi-netmodule-4-exe.cs
1325 $(RUNTIME) test-multi-netmodule-4-exe.exe > test-multi-netmodule-4-exe.exe.stdout 2> test-multi-netmodule-4-exe.exe.stderr
1327 EXTRA_DIST += custom-attr-errors.cs custom-attr-errors-lib.cs
1328 test-cattr-type-load: $(TEST_DRIVER_DEPEND) custom-attr-errors.cs custom-attr-errors-lib.cs
1329 $(MCS) -D:WITH_MEMBERS /t:library $(srcdir)/custom-attr-errors-lib.cs
1330 $(MCS) -r:TestDriver.dll -r:custom-attr-errors-lib.dll $(srcdir)/custom-attr-errors.cs
1331 $(MCS) /t:library $(srcdir)/custom-attr-errors-lib.cs
1332 @echo "Testing custom-attribute-load-exceptions.exe..."
1333 @$(RUNTIME) custom-attr-errors.exe > custom-attr-errors.exe.stdout 2> custom-attr-errors.exe.stderr
1335 EXTRA_DIST += reflection-load-with-context-lib.cs reflection-load-with-context-second-lib.cs reflection-load-with-context.cs
1336 test-reflection-load-with-context: reflection-load-with-context-lib.cs reflection-load-with-context-second-lib.cs reflection-load-with-context.exe
1337 rm -rf reflection-load-dir
1338 mkdir reflection-load-dir
1339 $(MCS) /t:library $(srcdir)/reflection-load-with-context-second-lib.cs -out:reflection-load-dir/reflection-load-with-context-second-lib.dll
1340 $(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
1341 @echo "Testing reflection-load-with-context.cs.exe..."
1342 @$(RUNTIME) reflection-load-with-context.exe > reflection-load-with-context.exe.stdout 2> reflection-load-with-context.exe.stderr
1345 EXTRA_DIST += debug-casts.cs
1346 # This depends on TLS, so its not ran by default
1348 @$(MCS) -r:TestDriver.dll $(srcdir)/debug-casts.cs
1349 @$(RUNTIME) --debug=casts debug-casts.exe
1351 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
1355 $(MAKE) sgen-regular-tests
1357 $(MAKE) sgen-toggleref-tests
1358 $(MAKE) sgen-bridge-tests
1359 $(MAKE) sgen-bridge2-tests
1362 SGEN_REGULAR_TESTS_SRC = \
1364 critical-finalizers.cs \
1365 sgen-descriptors.cs \
1366 sgen-gshared-vtype.cs \
1367 sgen-weakref-stress.cs \
1368 sgen-cementing-stress.cs \
1369 sgen-case-23400.cs \
1370 sgen-new-threads-dont-join-stw.cs \
1371 sgen-new-threads-dont-join-stw-2.cs \
1372 sgen-new-threads-collect.cs \
1373 gc-graystack-stress.cs \
1375 sgen-domain-unload.cs \
1376 sgen-domain-unload-2.cs
1378 SGEN_REGULAR_DISABLED_TESTS=
1381 SGEN_REGULAR_DISABLED_TESTS += \
1382 sgen-domain-unload.exe \
1383 sgen-domain-unload-2.exe
1386 SGEN_REGULAR_TESTS=$(filter-out $(SGEN_REGULAR_DISABLED_TESTS),$(SGEN_REGULAR_TESTS_SRC:.cs=.exe))
1388 sgen-regular-tests: $(SGEN_REGULAR_TESTS)
1389 $(MAKE) sgen-regular-tests-ms
1390 $(MAKE) sgen-regular-tests-ms-conc
1391 $(MAKE) sgen-regular-tests-ms-conc-par
1392 $(MAKE) sgen-regular-tests-ms-conc-split
1393 $(MAKE) sgen-regular-tests-ms-split
1394 $(MAKE) sgen-regular-tests-ms-conc-split-95
1395 $(MAKE) sgen-regular-tests-ms-clear-at-gc
1396 $(MAKE) sgen-regular-tests-ms-conc-clear-at-gc
1397 $(MAKE) sgen-regular-tests-ms-conc-split-clear-at-gc
1399 sgen-regular-tests-ms: $(SGEN_REGULAR_TESTS) test-runner.exe
1400 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)
1401 sgen-regular-tests-ms-conc: $(SGEN_REGULAR_TESTS) test-runner.exe
1402 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)
1403 sgen-regular-tests-ms-conc-par: $(SGEN_REGULAR_TESTS) test-runner.exe
1404 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)
1405 sgen-regular-tests-ms-conc-split: $(SGEN_REGULAR_TESTS) test-runner.exe
1406 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)
1407 sgen-regular-tests-ms-split: $(SGEN_REGULAR_TESTS) test-runner.exe
1408 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)
1409 sgen-regular-tests-ms-conc-split-95: $(SGEN_REGULAR_TESTS) test-runner.exe
1410 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)
1411 sgen-regular-tests-ms-clear-at-gc: $(SGEN_REGULAR_TESTS) test-runner.exe
1412 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)
1413 sgen-regular-tests-ms-conc-clear-at-gc: $(SGEN_REGULAR_TESTS) test-runner.exe
1414 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)
1415 sgen-regular-tests-ms-conc-split-clear-at-gc: $(SGEN_REGULAR_TESTS) test-runner.exe
1416 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)
1418 SGEN_TOGGLEREF_TESTS= \
1421 sgen-toggleref-tests: $(SGEN_TOGGLEREF_TESTS)
1422 $(MAKE) sgen-toggleref-tests-plain
1423 $(MAKE) sgen-toggleref-tests-ms-conc
1424 $(MAKE) sgen-toggleref-tests-ms-conc-split
1425 $(MAKE) sgen-toggleref-tests-ms-split
1426 $(MAKE) sgen-toggleref-tests-ms-split-95
1427 $(MAKE) sgen-toggleref-tests-plain-clear-at-gc
1428 $(MAKE) sgen-toggleref-tests-ms-conc-clear-at-gc
1429 $(MAKE) sgen-toggleref-tests-ms-split-clear-at-gc
1431 sgen-toggleref-tests-plain: $(SGEN_TOGGLEREF_TESTS) test-runner.exe
1432 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)
1433 sgen-toggleref-tests-ms-conc: $(SGEN_TOGGLEREF_TESTS) test-runner.exe
1434 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)
1435 sgen-toggleref-tests-ms-conc-split: $(SGEN_TOGGLEREF_TESTS) test-runner.exe
1436 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)
1437 sgen-toggleref-tests-ms-split: $(SGEN_TOGGLEREF_TESTS) test-runner.exe
1438 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)
1439 sgen-toggleref-tests-ms-split-95: $(SGEN_TOGGLEREF_TESTS) test-runner.exe
1440 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)
1441 sgen-toggleref-tests-plain-clear-at-gc: $(SGEN_TOGGLEREF_TESTS) test-runner.exe
1442 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)
1443 sgen-toggleref-tests-ms-conc-clear-at-gc: $(SGEN_TOGGLEREF_TESTS) test-runner.exe
1444 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)
1445 sgen-toggleref-tests-ms-split-clear-at-gc: $(SGEN_TOGGLEREF_TESTS) test-runner.exe
1446 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)
1448 SGEN_BRIDGE_TESTS= \
1450 sgen-bridge-major-fragmentation.exe
1452 sgen-bridge-tests: $(SGEN_BRIDGE_TESTS)
1453 $(MAKE) sgen-bridge-tests-plain
1454 $(MAKE) sgen-bridge-tests-ms-conc
1455 $(MAKE) sgen-bridge-tests-ms-split
1456 $(MAKE) sgen-bridge-tests-plain-new-bridge
1457 $(MAKE) sgen-bridge-tests-ms-conc-new-bridge
1458 $(MAKE) sgen-bridge-tests-ms-split-new-bridge
1459 $(MAKE) sgen-bridge-tests-plain-tarjan-bridge
1460 $(MAKE) sgen-bridge-tests-ms-split-tarjan-bridge
1462 sgen-bridge-tests-plain: $(SGEN_BRIDGE_TESTS) test-runner.exe
1463 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)
1464 sgen-bridge-tests-ms-conc: $(SGEN_BRIDGE_TESTS) test-runner.exe
1465 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)
1466 sgen-bridge-tests-ms-split: $(SGEN_BRIDGE_TESTS) test-runner.exe
1467 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)
1468 sgen-bridge-tests-plain-new-bridge: $(SGEN_BRIDGE_TESTS) test-runner.exe
1469 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)
1470 sgen-bridge-tests-ms-conc-new-bridge: $(SGEN_BRIDGE_TESTS) test-runner.exe
1471 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)
1472 sgen-bridge-tests-ms-split-new-bridge: $(SGEN_BRIDGE_TESTS) test-runner.exe
1473 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)
1474 sgen-bridge-tests-plain-tarjan-bridge: $(SGEN_BRIDGE_TESTS) test-runner.exe
1475 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)
1476 sgen-bridge-tests-ms-split-tarjan-bridge: $(SGEN_BRIDGE_TESTS) test-runner.exe
1477 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)
1479 SGEN_BRIDGE2_TESTS= \
1480 sgen-bridge-xref.exe
1482 sgen-bridge2-tests: $(SGEN_BRIDGE2_TESTS)
1483 $(MAKE) sgen-bridge2-tests-plain
1484 $(MAKE) sgen-bridge2-tests-ms-conc
1485 $(MAKE) sgen-bridge2-tests-ms-split
1486 $(MAKE) sgen-bridge2-tests-plain-new-bridge
1487 $(MAKE) sgen-bridge2-tests-ms-conc-new-bridge
1488 $(MAKE) sgen-bridge2-tests-ms-split-new-bridge
1489 $(MAKE) sgen-bridge2-tests-plain-tarjan-bridge
1490 $(MAKE) sgen-bridge2-tests-ms-split-tarjan-bridge
1492 sgen-bridge2-tests-plain: $(SGEN_BRIDGE2_TESTS) test-runner.exe
1493 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)
1494 sgen-bridge2-tests-ms-conc: $(SGEN_BRIDGE2_TESTS) test-runner.exe
1495 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)
1496 sgen-bridge2-tests-ms-split: $(SGEN_BRIDGE2_TESTS) test-runner.exe
1497 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)
1498 sgen-bridge2-tests-plain-new-bridge: $(SGEN_BRIDGE2_TESTS) test-runner.exe
1499 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)
1500 sgen-bridge2-tests-ms-conc-new-bridge: $(SGEN_BRIDGE2_TESTS) test-runner.exe
1501 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)
1502 sgen-bridge2-tests-ms-split-new-bridge: $(SGEN_BRIDGE2_TESTS) test-runner.exe
1503 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)
1504 sgen-bridge2-tests-plain-tarjan-bridge: $(SGEN_BRIDGE2_TESTS) test-runner.exe
1505 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)
1506 sgen-bridge2-tests-ms-split-tarjan-bridge: $(SGEN_BRIDGE2_TESTS) test-runner.exe
1507 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)
1509 SGEN_BRIDGE3_TESTS= \
1510 sgen-bridge-gchandle.exe
1512 sgen-bridge3-tests: $(SGEN_BRIDGE3_TESTS)
1513 $(MAKE) sgen-bridge3-tests-plain
1514 $(MAKE) sgen-bridge3-tests-ms-conc
1515 $(MAKE) sgen-bridge3-tests-ms-split
1516 $(MAKE) sgen-bridge3-tests-plain-new-bridge
1517 $(MAKE) sgen-bridge3-tests-ms-conc-new-bridge
1518 $(MAKE) sgen-bridge3-tests-ms-split-new-bridge
1519 $(MAKE) sgen-bridge3-tests-plain-tarjan-bridge
1520 $(MAKE) sgen-bridge3-tests-ms-split-tarjan-bridge
1522 sgen-bridge3-tests-plain: $(SGEN_bridge3_TESTS) test-runner.exe
1523 MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="bridge=3Bridge" MONO_GC_PARAMS="" $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --timeout 900 $(SGEN_BRIDGE3_TESTS)
1524 sgen-bridge3-tests-ms-conc: $(SGEN_BRIDGE3_TESTS) test-runner.exe
1525 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)
1526 sgen-bridge3-tests-ms-split: $(SGEN_BRIDGE3_TESTS) test-runner.exe
1527 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)
1528 sgen-bridge3-tests-plain-new-bridge: $(SGEN_BRIDGE3_TESTS) test-runner.exe
1529 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)
1530 sgen-bridge3-tests-ms-conc-new-bridge: $(SGEN_BRIDGE3_TESTS) test-runner.exe
1531 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)
1532 sgen-bridge3-tests-ms-split-new-bridge: $(SGEN_BRIDGE3_TESTS) test-runner.exe
1533 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)
1534 sgen-bridge3-tests-plain-tarjan-bridge: $(SGEN_BRIDGE3_TESTS) test-runner.exe
1535 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)
1536 sgen-bridge3-tests-ms-split-tarjan-bridge: $(SGEN_BRIDGE3_TESTS) test-runner.exe
1537 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)
1540 AOT_CONFIGURATIONS= \
1544 #LLVM crashes, got to fix it first.
1546 # "--llvm --gc=boehm|llvm+boehm"
1553 profile=$(DEFAULT_PROFILE); \
1554 tmpfile=`mktemp -t mono_aot_outputXXXXXX` || exit 1; \
1555 rm -f test-aot-$${name}.stdout test-aot-$${name}.stderr; \
1556 for assembly in $(mcs_topdir)/class/lib/$$profile/*.dll ; do \
1557 asm_name=`basename $$assembly`; \
1558 echo "... $$asm_name"; \
1559 for conf in $(AOT_CONFIGURATIONS); do \
1560 name=`echo $$conf | cut -d\| -f 2`; \
1561 params=`echo $$conf | cut -d\| -f 1`; \
1562 test_name="$${asm_name}|$${name}"; \
1563 echo " $$test_name"; \
1564 if MONO_PATH=$(mcs_topdir)/class/lib/$$profile $(JITTEST_PROG_RUN) $$params --aot=outfile=$$tmpfile $$assembly >> test-aot-$${name}.stdout 2>> test-aot-$${name}.stderr; \
1566 passed=`expr $${passed} + 1`; \
1568 failed=`expr $${failed} + 1`; \
1569 failed_tests="$${failed_tests} $$test_name"; \
1574 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1575 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1576 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1579 # Generated tests for runtime invoke
1580 EXTRA_DIST += gen-runtime-invoke.cs
1581 runtime-invoke.gen.exe: $(TEST_DRIVER_DEPEND) gen-runtime-invoke.exe
1582 $(RUNTIME) gen-runtime-invoke.exe > runtime-invoke.gen.cs
1583 $(MCS) -out:runtime-invoke.gen.exe -r:TestDriver.dll runtime-invoke.gen.cs
1585 EXTRA_DIST += make-imt-test.cs
1586 imt_big_iface_test.exe: $(TEST_DRIVER_DEPEND) make-imt-test.exe
1587 $(RUNTIME) make-imt-test.exe > imt_big_iface_test.cs
1588 $(MCS) -out:imt_big_iface_test.exe -r:TestDriver.dll imt_big_iface_test.cs
1590 EXTRA_DIST += test-inline-call-stack-library.cs test-inline-call-stack.cs
1591 test-inline-call-stack-library.dll: $(TEST_DRIVER_DEPEND) $(srcdir)/test-inline-call-stack-library.cs
1592 $(MCS) -t:library -out:test-inline-call-stack-library.dll $(srcdir)/test-inline-call-stack-library.cs
1594 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1597 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1600 test-inline-call-stack.exe: $(TEST_DRIVER_DEPEND) test-inline-call-stack-library.dll $(srcdir)/test-inline-call-stack.cs
1601 $(MCS) -r:TestDriver.dll -r:test-inline-call-stack-library.dll -out:test-inline-call-stack.exe $(srcdir)/test-inline-call-stack.cs
1603 EXTRA_DIST += unhandled-exception-base-configuration.config
1604 EXTRA_DIST += unhandled-exception-legacy-configuration.config
1605 EXTRA_DIST += appdomain-unload.exe.config
1606 EXTRA_DIST += unhandled-exception-test-case.2.cs
1607 EXTRA_DIST += unhandled-exception-test-runner.2.cs
1608 unhandled-exception-test-case.1.cs: unhandled-exception-test-case.2.cs
1609 cp unhandled-exception-test-case.2.cs unhandled-exception-test-case.1.cs
1610 unhandled-exception-test-case-legacy.1.cs: unhandled-exception-test-case.1.cs
1611 cp unhandled-exception-test-case.1.cs unhandled-exception-test-case-legacy.1.cs
1612 unhandled-exception-test-case-legacy.2.cs: unhandled-exception-test-case.2.cs
1613 cp unhandled-exception-test-case.2.cs unhandled-exception-test-case-legacy.2.cs
1614 unhandled-exception-config_files: unhandled-exception-base-configuration.config unhandled-exception-legacy-configuration.config
1615 cp unhandled-exception-base-configuration.config unhandled-exception-test-case.1.exe.config
1616 cp unhandled-exception-base-configuration.config unhandled-exception-test-case.2.exe.config
1617 cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.1.exe.config
1618 cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.2.exe.config
1619 unhandled-exception-test-case.1.exe: unhandled-exception-test-case.1.cs
1620 $(MCS) /debug unhandled-exception-test-case.1.cs
1621 unhandled-exception-test-case-legacy.1.exe: unhandled-exception-test-case-legacy.1.cs
1622 $(MCS) /debug unhandled-exception-test-case-legacy.1.cs
1623 unhandled-exception-test-case.2.exe: unhandled-exception-test-case.2.cs
1624 $(MCS) /debug unhandled-exception-test-case.2.cs
1625 unhandled-exception-test-case-legacy.2.exe: unhandled-exception-test-case-legacy.2.cs
1626 $(MCS) /debug unhandled-exception-test-case-legacy.2.cs
1627 unhandled-exception-test-runner.2.exe: unhandled-exception-test-runner.2.cs
1628 $(MCS) /debug unhandled-exception-test-runner.2.cs
1630 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
1631 $(RUNTIME) unhandled-exception-test-runner.2.exe RUNTIME:../mini/mono,GTC:F
1633 # We use 'test-support-files' to handle an ordering issue between the 'mono/' and 'runtime/' directories
1634 bug-80307.exe: $(srcdir)/bug-80307.cs
1635 $(MCS) -r:$(CLASS)/System.Web.dll -out:$@ $(srcdir)/bug-80307.cs
1636 cd $(top_builddir)/runtime && $(MAKE) test-support-files
1638 EXTRA_DIST += bug-81673-interface.cs
1639 bug-81673.exe bug-81673-interface.dll: $(srcdir)/bug-81673.cs $(srcdir)/bug-81673-interface.cs
1640 $(MCS) -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
1641 $(MCS) -out:bug-81673.exe -r:bug-81673-interface.dll $(srcdir)/bug-81673.cs
1642 $(MCS) -define:WITH_STOP -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
1644 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1647 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1650 EXTRA_DIST += bug-36848-a.cs
1651 bug-36848.exe bug-36848-a.dll: $(srcdir)/bug-36848.cs $(srcdir)/bug-36848-a.cs
1652 $(MCS) -target:library -out:bug-36848-a.dll $(srcdir)/bug-36848-a.cs
1653 $(MCS) -r:bug-36848-a.dll -out:bug-36848.exe $(srcdir)/bug-36848.cs
1654 $(MCS) -target:library -out:bug-36848-a.dll $(srcdir)/bug-36848-a.cs /define:WITH_STOP
1656 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1659 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1662 EXTRA_DIST += bug-81691-a.cs bug-81691-b.cs
1663 bug-81691.exe bug-81691-b.dll: $(srcdir)/bug-81691.cs $(srcdir)/bug-81691-a.cs $(srcdir)/bug-81691-b.cs
1664 $(MCS) -target:library -out:bug-81691-a.dll $(srcdir)/bug-81691-a.cs
1665 $(MCS) -target:library -out:bug-81691-b.dll -r:bug-81691-a.dll $(srcdir)/bug-81691-b.cs
1666 $(MCS) -r:bug-81691-b.dll -out:bug-81691.exe $(srcdir)/bug-81691.cs
1667 rm -f bug-81691-a.dll
1668 bug-81691.exe: bug-81691-b.dll
1670 EXTRA_DIST += bug-81466-lib.il
1671 bug-81466-lib.dll: bug-81466-lib.il
1672 $(ILASM) /dll /output:bug-81466-lib.dll $(srcdir)/bug-81466-lib.il
1674 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1677 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1679 bug-81466.exe: bug-81466.il bug-81466-lib.dll
1680 $(ILASM) /exe /output:bug-81466.exe $(srcdir)/bug-81466.il
1682 EXTRA_DIST += bug-324535-il.il
1683 bug-324535-il.dll : bug-324535-il.il
1684 $(ILASM) /dll /output:bug-324535-il.dll $(srcdir)/bug-324535-il.il
1686 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1689 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1691 bug-324535.exe : bug-324535.cs bug-324535-il.dll
1692 $(MCS) -r:bug-324535-il.dll -out:bug-324535.exe $(srcdir)/bug-324535.cs
1694 EXTRA_DIST += custom-modifiers.2.cs custom-modifiers-lib.il
1695 custom-modifiers-lib.dll: custom-modifiers-lib.il
1696 $(ILASM) /dll /output:custom-modifiers-lib.dll $(srcdir)/custom-modifiers-lib.il
1698 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1701 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1703 custom-modifiers.2.exe: custom-modifiers.2.cs custom-modifiers-lib.dll
1704 $(MCS) -r:custom-modifiers-lib.dll -out:custom-modifiers.2.exe $(srcdir)/custom-modifiers.2.cs
1706 EXTRA_DIST += bug-382986-lib.cs
1707 bug-382986-lib.dll: bug-382986-lib.cs
1708 $(MCS) -target:library -out:$@ $(srcdir)/bug-382986-lib.cs
1710 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1713 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1716 bug-382986.exe: bug-382986.cs bug-382986-lib.dll
1717 $(MCS) -out:$@ -r:bug-382986-lib.dll $(srcdir)/bug-382986.cs
1719 EXTRA_DIST += bug-17537-helper.cs
1720 bug-17537-helper.exe: bug-17537-helper.cs
1721 $(MCS) -out:$@ $(srcdir)/bug-17537-helper.cs
1724 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1727 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1730 bug-17537.exe: bug-17537.cs bug-17537-helper.exe
1731 $(MCS) -r:$(CLASS)/System.dll -out:$@ $(srcdir)/bug-17537.cs
1733 EXTRA_DIST += coreclr-security.cs
1735 coreclr-security.exe : coreclr-security.cs
1736 $(SMCS) -out:coreclr-security.exe $(srcdir)/coreclr-security.cs
1738 test-coreclr-security : coreclr-security.exe
1739 @echo "Testing coreclr-security.exe..."
1740 @$(RUNTIME_MOONLIGHT) --security=core-clr-test coreclr-security.exe
1742 EXTRA_DIST += generic-unboxing.2.il
1743 generic-unboxing.2.dll : generic-unboxing.2.il
1744 $(ILASM) /dll /output:generic-unboxing.2.dll $(srcdir)/generic-unboxing.2.il
1746 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1749 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1752 EXTRA_DIST += generic-boxing.2.il
1753 generic-boxing.2.dll : generic-boxing.2.il generic-unboxing.2.dll
1754 $(ILASM) /dll /output:generic-boxing.2.dll $(srcdir)/generic-boxing.2.il
1756 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1759 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1762 EXTRA_DIST += generic-unbox.2.cs
1763 generic-unbox.2.exe : generic-unbox.2.cs generic-unboxing.2.dll
1764 $(MCS) -r:generic-unboxing.2.dll -out:$@ $(srcdir)/generic-unbox.2.cs
1766 EXTRA_DIST += generic-box.2.cs
1767 generic-box.2.exe : generic-box.2.cs generic-unboxing.2.dll generic-boxing.2.dll
1768 $(MCS) -r:generic-unboxing.2.dll,generic-boxing.2.dll -out:$@ $(srcdir)/generic-box.2.cs
1770 EXTRA_DIST += generic-delegate2.2.cs generic-delegate2-lib.2.il
1771 generic-delegate2-lib.2.dll : generic-delegate2-lib.2.il
1772 $(ILASM) /dll /output:$@ $(srcdir)/generic-delegate2-lib.2.il
1774 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1777 $(RUNTIME) $(AOT_BUILD_FLAGS) $@
1779 generic-delegate2.2.exe : generic-delegate2.2.cs generic-delegate2-lib.2.dll
1780 $(MCS) -r:generic-delegate2-lib.2.dll -out:$@ $(srcdir)/generic-delegate2.2.cs
1782 bug-3903.exe: bug-3903.cs
1783 $(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:$@
1785 gshared: test-generic-sharing
1788 @$(MAKE) AOT=1 gshared
1790 GSHARED_TESTS_SRC = \
1791 generics-sharing.2.cs \
1792 shared-generic-methods.2.cs \
1793 shared-generic-synchronized.2.cs \
1794 generic-initobj.2.cs \
1795 generics-sharing-other-exc.2.cs \
1797 generic-unbox.2.cs \
1798 generic-delegate.2.cs \
1799 generic-sizeof.2.cs \
1800 generic-ldobj.2.cs \
1801 generic-mkrefany.2.cs \
1802 generic-refanyval.2.cs \
1803 generic-ldtoken.2.cs \
1804 generic-ldtoken-method.2.cs \
1805 generic-ldtoken-field.2.cs \
1806 generic-virtual.2.cs \
1807 generic-tailcall.2.cs \
1808 generic-interface-methods.2.cs \
1809 generic-array-type.2.cs \
1810 generic-method-patching.2.cs \
1811 generic-static-methods.2.cs \
1812 generic-null-call.2.cs \
1813 generic-tailcall2.2.cs \
1814 generic-array-exc.2.cs \
1815 generic-special.2.cs \
1816 generic-exceptions.2.cs \
1817 generic-delegate2.2.cs \
1818 generic-virtual2.2.cs \
1819 generic-valuetype-interface.2.cs \
1820 generic-valuetype-newobj.2.cs \
1821 generic-valuetype-newobj2.2.cs \
1822 generic-getgenericarguments.2.cs \
1823 generic-synchronized.2.cs \
1824 generic-delegate-ctor.2.cs \
1825 generic-constrained.2.cs \
1827 generic-virtual-invoke.2.cs \
1828 generic-typedef.2.cs \
1829 generic-marshalbyref.2.cs \
1832 generic-sealed-virtual.2.cs \
1833 generic-system-arrays.2.cs \
1834 generic-stack-traces.2.cs \
1835 generic-stack-traces2.2.cs \
1840 generic-type-load-exception.2.cs \
1843 generic-type-builder.2.cs
1845 GSHARED_DISABLED_TESTS=
1848 GSHARED_DISABLED_TESTS += \
1849 generic-type-builder.2.exe
1852 GSHARED_TESTS=$(filter-out $(GSHARED_DISABLED_TESTS),$(GSHARED_TESTS_SRC:.cs=.exe))
1854 test-generic-sharing-normal: $(GSHARED_TESTS)
1855 @for fn in $+ ; do \
1856 echo "Testing $$fn ..."; \
1857 $(RUNTIME) -O=gshared $$fn > $$fn.stdout || exit 1; \
1858 $(RUNTIME) -O=gshared,shared $$fn > $$fn.stdout || exit 1; \
1859 $(RUNTIME) -O=gshared,-inline $$fn > $$fn.stdout || exit 1; \
1860 $(RUNTIME) -O=gshared,-inline,shared $$fn > $fn.stdout || exit 1; \
1861 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; \
1864 test-generic-sharing-managed: test-runner.exe $(GSHARED_TESTS)
1865 $(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)
1868 test-generic-sharing:
1870 test-generic-sharing:
1871 @if test x$(M) != x0; then $(MAKE) test-generic-sharing-managed; else $(MAKE) test-generic-sharing-normal; fi
1874 EXTRA_DIST += async-exceptions.cs
1875 async-exceptions.exe : async-exceptions.cs
1876 $(MCS) -out:async-exceptions.exe $(srcdir)/async-exceptions.cs
1877 test-async-exceptions : async-exceptions.exe
1878 for i in `echo 0 1 2 3 4 5 6 7 8 9 10`; do $(RUNTIME) --inject-async-exc Tests:foo $$i async-exceptions.exe || exit 1; done
1879 for i in `echo 0 1 2 3 4 5 6 7 8 9 10`; do $(RUNTIME) --inject-async-exc Tests:bar $$i async-exceptions.exe || exit 1; done
1881 EXTRA_DIST += modules.cs modules-m1.cs
1882 modules-m1.netmodule: modules-m1.cs
1883 $(MCS) -out:$@ /target:module $(srcdir)/modules-m1.cs
1884 modules.exe: modules.cs modules-m1.netmodule $(TEST_DRIVER_DEPEND)
1885 $(MCS) -out:$@ /addmodule:modules-m1.netmodule -r:TestDriver.dll $(srcdir)/modules.cs
1887 # Useful if mono is compiled with --enable-shared=no
1889 cp "../../libtool" .
1890 sed -e 's,build_libtool_libs=no,build_libtool_libs=yes,g' libtool > 2; mv 2 libtool
1891 sed -e 's,LIBTOOL =,LIBTOOL2 =,g' Makefile > 2 && echo "LIBTOOL = bash ./libtool" > 1 && cat 1 2 > Makefile
1898 EXTRA_DIST += threadpool-in-processexit.cs threadpool-in-processexit.exe.stdout.expected
1900 @$(MCS) $(srcdir)/threadpool-in-processexit.cs -out:threadpool-in-processexit.exe
1901 @echo "Testing threadpool-in-processexit.exe..."
1902 @$(RUNTIME) threadpool-in-processexit.exe > threadpool-in-processexit.exe.stdout
1903 @diff -w threadpool-in-processexit.exe.stdout $(srcdir)/threadpool-in-processexit.exe.stdout.expected
1907 gc-oom-handling.exe \
1908 gc-oom-handling2.exe
1911 test-oom: $(OOM_TESTS)
1912 @for fn in $+ ; do \
1913 echo "Testing $$fn ..."; \
1914 MONO_GC_PARAMS=max-heap-size=16m MONO_ENV_OPTIONS="--gc=sgen" $(RUNTIME) $$fn > $$fn.stdout || exit 1; \
1915 MONO_GC_PARAMS=max-heap-size=16m $(RUNTIME) $$fn > $$fn.stdout || exit 1; \
1919 test-unhandled-exception-2:
1922 # tests that expect a 1 exit code
1923 UNHANDLED_EXCEPTION_1_TESTS = \
1924 unhandled-exception-1.exe
1926 # tests that expect a 255 exit code
1927 UNHANDLED_EXCEPTION_255_TESTS = \
1928 unhandled-exception-2.exe \
1929 unhandled-exception-3.exe \
1930 unhandled-exception-4.exe \
1931 unhandled-exception-5.exe \
1932 unhandled-exception-6.exe \
1933 unhandled-exception-7.exe \
1934 unhandled-exception-8.exe
1936 test-unhandled-exception-2: $(UNHANDLED_EXCEPTION_1_TESTS) $(UNHANDLED_EXCEPTION_255_TESTS)
1937 $(MAKE) test-unhandled-exception-2-1-with-managed-handler
1938 $(MAKE) test-unhandled-exception-2-1-without-managed-handler
1939 $(MAKE) test-unhandled-exception-2-255-with-managed-handler
1940 $(MAKE) test-unhandled-exception-2-255-without-managed-handler
1942 test-unhandled-exception-2-1-with-managed-handler: $(UNHANDLED_EXCEPTION_1_TESTS) test-runner.exe
1943 $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 1 $(UNHANDLED_EXCEPTION_1_TESTS)
1944 test-unhandled-exception-2-1-without-managed-handler: $(UNHANDLED_EXCEPTION_1_TESTS) test-runner.exe
1945 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)
1946 test-unhandled-exception-2-255-with-managed-handler: $(UNHANDLED_EXCEPTION_255_TESTS) test-runner.exe
1947 $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 255 $(UNHANDLED_EXCEPTION_255_TESTS)
1948 test-unhandled-exception-2-255-without-managed-handler: $(UNHANDLED_EXCEPTION_255_TESTS) test-runner.exe
1949 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)
1953 EXTRA_DIST += appdomain-loader.cs appdomain-tester.cs
1954 test-appdomain-unload: appdomain-loader.exe appdomain-tester.exe
1955 $(RUNTIME) -O=gshared appdomain-loader.exe > appdomain-loader.exe.1.stdout || exit 1;
1956 $(RUNTIME) appdomain-loader.exe > appdomain-loader.exe.2.stdout || exit 1;
1957 MONO_DEBUG_ASSEMBLY_UNLOAD=1 $(RUNTIME) -O=gshared appdomain-loader.exe > appdomain-loader.exe.3.stdout || exit 1;
1958 MONO_DEBUG_ASSEMBLY_UNLOAD=1 $(RUNTIME) appdomain-loader.exe > appdomain-loader.exe.4.stdout || exit 1;
1960 EXTRA_DIST += console-output.cs console-output.exe.stderr.expected console-output.exe.stdout.expected
1961 test-console-output: console-output.exe
1962 @$(RUNTIME) console-output.exe 1>console-output.exe.stdout
1963 @$(RUNTIME) console-output.exe 2>console-output.exe.stderr
1964 @diff -w console-output.exe.stdout $(srcdir)/console-output.exe.stdout.expected \
1965 && diff -w console-output.exe.stderr $(srcdir)/console-output.exe.stderr.expected
1967 test-pedump: test-runner.exe
1968 $(with_mono_path) $(mono_build_root)/tools/pedump/pedump --verify error test-runner.exe
1970 .PHONY: test-gac-loading
1972 runtest-gac-loading: test-runner.exe
1973 $(MAKE) -C testing_gac runtest
1975 compile-gac-loading:
1976 $(MAKE) -C testing_gac compile-tests
1978 PROCESS_STRESS_TESTS= \
1979 process-stress-1.exe \
1980 process-stress-2.exe \
1981 process-stress-3.exe \
1984 test-process-stress: $(PROCESS_STRESS_TESTS) test-runner.exe
1985 $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 600 $(PROCESS_STRESS_TESTS)
1988 $(MAKE) -C $(mono_build_root)/acceptance-tests coreclr-gcstress
1990 # Tests for the Mono lldb plugin
1991 EXTRA_DIST += test_lldb.py test-lldb.cs
1992 test-lldb: test-lldb.exe
1993 python test_lldb.py $(JITTEST_PROG)
1995 noinst_LTLIBRARIES = libtest.la
1997 AM_CPPFLAGS = $(GLIB_CFLAGS)
2000 # gcc-3.4.4 emits incorrect code when making indirect calls to stdcall functions using a tail call
2001 # This shows up when compiling mono_test_marshal_delegate ()
2002 libtest_la_CFLAGS=-fno-optimize-sibling-calls
2003 # the exported names created by gcc for stdcall functions are missing the leading _, so MS.NET
2004 # can't find them. So we use --kill-at to remove the @ suffix as well.
2005 libtest_la_LDFLAGS=-no-undefined -rpath `pwd` -Wl,--kill-at
2007 libtest_la_LDFLAGS = -rpath `pwd`
2009 libtest_la_SOURCES = libtest.c
2010 libtest_la_LIBADD = $(GLIB_LIBS) $(LIBICONV)
2012 CLEANFILES = $(TESTSI_CS) $(TESTSI_IL) $(STRESS_TESTS) *.dll *.stdout *.aotlog *.exe stest.dat