1 SUBDIRS = gc-descriptors . testing_gac
5 $(MAKE) test-jit || ok=false; \
6 $(MAKE) test-generic-sharing || ok=false; \
7 $(MAKE) test-type-load || ok=false; \
8 $(MAKE) test-multi-netmodule || ok=false; \
9 $(MAKE) test-cattr-type-load || ok=false; \
10 $(MAKE) test-reflection-load-with-context || ok=false; \
11 $(MAKE) test-platform || ok=false; \
12 $(MAKE) test-console-output || ok=false; \
13 $(MAKE) test-env-options || ok=false; \
14 $(MAKE) test-unhandled-exception-2 || ok=false; \
15 $(MAKE) test-appdomain-unload || ok=false; \
16 $(MAKE) test-process-stress || ok=false; \
17 $(MAKE) test-pedump || ok=false; \
18 $(MAKE) rm-empty-logs || ok=false; \
19 $(MAKE) runtest-gac-loading || ok=false; \
24 $(MAKE) test-sgen || ok=false; \
25 $(MAKE) check-local || ok=false; \
30 $(MAKE) compile-tests; \
31 $(MAKE) check-full || ok=false; \
35 $(MAKE) -C $(mono_build_root)/acceptance-tests check-coreclr
38 $(MAKE) test-stress-sgen
40 # for backwards compatibility on Wrench
41 test-wrench: check-parallel
43 aotcheck: testaot gshared-aot
45 JITTEST_PROG = $(if $(VALGRIND), valgrind $(VALGRIND_ARGS),) $(if $(SGEN),$(top_builddir)/mono/mini/mono-sgen,$(top_builddir)/mono/mini/mono)
47 JITTEST_PROG_RUN = MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(JITTEST_PROG)
50 RUNTIME_ARGS=--config tests-config --optimize=all --debug
52 CLASS=$(mcs_topdir)/class/lib/$(DEFAULT_PROFILE)
54 with_mono_path = MONO_PATH=$(CLASS)
56 RUNTIME = $(with_mono_path) $(top_builddir)/runtime/mono-wrapper
57 TOOLS_RUNTIME = MONO_PATH=$(mcs_topdir)/class/lib/build $(top_builddir)/runtime/mono-wrapper --aot-path=$(mcs_topdir)/class/lib/build
60 PKG_CONFIG_PATH=$(top_builddir):$(PKG_CONFIG_PATH) \
61 $(RUNTIME) $(CLASS)/mkbundle.exe
64 PROFILE_MCS_FLAGS = -d:MOBILE,MOBILE_LEGACY,FULL_AOT_DESKTOP
68 PROFILE_MCS_FLAGS = -d:MOBILE,MOBILE_LEGACY
71 MCS_NO_LIB = $(TOOLS_RUNTIME) $(CSC) -unsafe -debug:portable \
73 -nowarn:0162 -nowarn:0168 -nowarn:0219 -nowarn:0414 -nowarn:0618 \
74 -nowarn:0169 -nowarn:1690 -nowarn:0649 -nowarn:0612 -nowarn:3021 \
75 -nowarn:0197 $(PROFILE_MCS_FLAGS)
79 ILASM = $(TOOLS_RUNTIME) $(mcs_topdir)/class/lib/build/ilasm.exe
81 TEST_RUNNER = ./test-runner.exe --runtime $(top_builddir)/runtime/mono-wrapper --mono-path "$(CLASS)"
84 TEST_RUNNER += --runtime-args "$(AOT_RUN_FLAGS)"
88 TEST_RUNNER += --runtime-args "$(AOT_RUN_FLAGS)"
92 TEST_RUNNER += --config tests-config --runtime $(if $(MONO_EXECUTABLE),$(shell cygpath -w -a $(MONO_EXECUTABLE) | sed 's/\\/\\\\/g'),mono)
94 TEST_RUNNER += --config tests-config --runtime $(if $(MONO_EXECUTABLE),$(MONO_EXECUTABLE),mono)
97 TEST_RUNNER += $(if $(V), --verbose,)
99 TESTS_BENCH_SRC=fib.cs random.cs nested-loops.cs ackermann.cs tight-loop.cs sieve.cs
111 gc-graystack-stress.cs \
114 assembly-load-stress.cs
116 # Disabled until ?mcs is fixed
119 generic-unloading-sub.2.cs \
124 assembly-load-remap.cs \
125 assemblyresolve_event.cs \
126 assemblyresolve_event3.cs \
127 assemblyresolve_event4.cs \
160 typeload-unaligned.cs \
162 valuetype-gettype.cs \
164 static-constructor.cs \
174 invoke-string-ctors.cs \
183 assignable-tests.cs \
185 array-subtype-attr.cs \
191 newobj-valuetype.cs \
205 reflection-const-field.cs \
265 test-byval-in-struct.cs \
269 thread-static-init.cs \
281 threadpool-exceptions1.cs \
282 threadpool-exceptions2.cs \
283 threadpool-exceptions3.cs \
284 threadpool-exceptions4.cs \
285 threadpool-exceptions5.cs \
286 threadpool-exceptions6.cs \
298 bug-Xamarin-5278.cs \
300 delegate-async-exit.cs \
301 delegate-delegate-exit.cs \
304 finalizer-exception.cs \
306 finalizer-thread.cs \
308 main-returns-abort-resetabort.cs \
309 main-returns-background-abort-resetabort.cs \
310 main-returns-background-resetabort.cs \
311 main-returns-background.cs \
312 main-returns-background-change.cs \
320 soft-float-tests.cs \
327 catch-generics.2.cs \
330 module-cctor-loader.2.cs \
331 generics-invoke-byref.2.cs \
332 generic-signature-compare.2.cs \
333 generics-sharing.2.cs \
334 shared-generic-methods.2.cs \
335 shared-generic-synchronized.2.cs \
336 generic-inlining.2.cs \
337 generic-initobj.2.cs \
338 generic-delegate.2.cs \
339 generic-sizeof.2.cs \
340 generic-virtual.2.cs \
341 generic-interface-methods.2.cs \
342 generic-array-type.2.cs \
343 generic-method-patching.2.cs \
344 generic-static-methods.2.cs \
345 generic-null-call.2.cs \
346 generic-special.2.cs \
347 generic-special2.2.cs \
348 generic-exceptions.2.cs \
349 generic-virtual2.2.cs \
350 generic-valuetype-interface.2.cs \
351 generic-getgenericarguments.2.cs \
352 generic-synchronized.2.cs \
353 generic-delegate-ctor.2.cs \
354 generic-array-iface-set.2.cs \
355 generic-typedef.2.cs \
358 generic-virtual-invoke.2.cs \
360 generic-sealed-virtual.2.cs \
361 generic-system-arrays.2.cs \
362 generic-stack-traces.2.cs \
363 generic-stack-traces2.2.cs \
365 recursive-generics.2.cs \
373 ienumerator-interfaces.2.cs \
374 array-enumerator-ifaces.2.cs \
375 generic_type_definition_encoding.2.cs \
382 nullable_boxing.2.cs \
383 valuetype-equals.cs \
384 custom-modifiers.2.cs \
386 test-inline-call-stack.cs \
412 monitor-resurrection.cs \
413 monitor-wait-abort.cs \
425 async-with-cb-throws.cs \
429 allow-synchronous-major.cs \
430 block_guard_restore_aligment_on_exit.cs \
431 thread_static_gc_layout.cs \
444 thread-native-exit.cs \
445 reference-loader.cs \
446 thread-suspend-suspended.cs \
447 thread-suspend-selfsuspended.cs \
454 appdomain-client.cs \
455 appdomain-unload.cs \
456 appdomain-async-invoke.cs \
457 appdomain-thread-abort.cs \
461 appdomain-serialize-exception.cs \
462 assemblyresolve_event2.2.cs \
463 appdomain-unload-callback.cs \
464 appdomain-unload-doesnot-raise-pending-events.cs \
465 unload-appdomain-on-shutdown.cs \
469 generic-type-builder.2.cs \
470 dynamic-generic-size.cs \
472 dynamic-method-access.2.cs \
473 dynamic-method-finalize.2.cs \
474 dynamic-method-stack-traces.cs \
475 generic_type_definition.2.cs \
478 bug-322722_patch_bx.2.cs \
479 bug-322722_dyn_method_throw.2.cs \
482 bug-389886-sre-generic-interface-instances.cs \
486 constant-division.cs \
487 dynamic-method-resurrection.cs \
489 assembly_append_ordering.cs \
492 generic-marshalbyref.2.cs \
493 stackframes-async.2.cs \
494 transparentproxy.cs \
497 marshal-valuetypes.cs \
500 generic-xdomain.2.cs \
501 threadpool-exceptions7.cs \
503 generic-unloading.2.cs \
504 namedmutex-destroy-race.cs \
506 appdomain-threadpool-unload.cs \
507 process-unref-race.cs \
510 runtime-invoke.gen.cs \
511 imt_big_iface_test.cs
514 TESTS_CS_SRC += async-exc-compilation.cs finally_guard.cs finally_block_ending_in_dead_bb.cs
518 TESTS_CS_SRC += async-exc-compilation.cs finally_guard.cs finally_block_ending_in_dead_bb.cs
528 calliGenericTest.il \
537 static-fields-nonconst.il \
538 reload-at-bb-end.il \
539 test-enum-indstoreil.il \
546 call_missing_method.il \
547 call_missing_class.il \
548 ldfld_missing_field.il \
549 ldfld_missing_class.il \
556 ldtoken_with_byref_typespec.2.il \
557 resolve_method_bug.2.il \
558 resolve_field_bug.2.il \
559 resolve_type_bug.2.il \
560 generics-sharing-other-exc.2.il \
562 generic-mkrefany.2.il \
563 generic-refanyval.2.il \
564 generic-ldtoken.2.il \
565 generic-ldtoken-method.2.il \
566 generic-ldtoken-field.2.il \
567 generic-tailcall.2.il \
568 generic-tailcall2.2.il \
569 generic-array-exc.2.il \
570 generic-valuetype-newobj2.2.il \
571 generic-valuetype-newobj.2.il \
572 generic-constrained.2.il \
573 generic-type-load-exception.2.il \
580 array_load_exception.il \
582 interface-with-static-method.il \
584 delegate-with-null-target.il \
586 gsharing-valuetype-layout.il \
587 invalid_generic_instantiation.il \
588 bug-45841-fpstack-exceptions.il \
591 TESTS_GSHARED_SRC = \
592 generics-sharing.2.cs \
593 shared-generic-methods.2.cs \
594 shared-generic-synchronized.2.cs \
595 generic-initobj.2.cs \
596 generics-sharing-other-exc.2.cs \
599 generic-delegate.2.cs \
600 generic-sizeof.2.cs \
602 generic-mkrefany.2.cs \
603 generic-refanyval.2.cs \
604 generic-ldtoken.2.cs \
605 generic-ldtoken-method.2.cs \
606 generic-ldtoken-field.2.cs \
607 generic-virtual.2.cs \
608 generic-tailcall.2.cs \
609 generic-interface-methods.2.cs \
610 generic-array-type.2.cs \
611 generic-method-patching.2.cs \
612 generic-static-methods.2.cs \
613 generic-null-call.2.cs \
614 generic-tailcall2.2.cs \
615 generic-array-exc.2.cs \
616 generic-special.2.cs \
617 generic-special2.2.cs \
618 generic-exceptions.2.cs \
619 generic-delegate2.2.cs \
620 generic-virtual2.2.cs \
621 generic-valuetype-interface.2.cs \
622 generic-valuetype-newobj.2.cs \
623 generic-valuetype-newobj2.2.cs \
624 generic-getgenericarguments.2.cs \
625 generic-synchronized.2.cs \
626 generic-delegate-ctor.2.cs \
627 generic-constrained.2.cs \
629 generic-virtual-invoke.2.cs \
630 generic-typedef.2.cs \
631 generic-marshalbyref.2.cs \
634 generic-sealed-virtual.2.cs \
635 generic-system-arrays.2.cs \
636 generic-stack-traces.2.cs \
637 generic-stack-traces2.2.cs \
642 generic-type-load-exception.2.cs \
645 generic-type-builder.2.cs
649 PLATFORM_DISABLED_TESTS = finally_guard.exe
652 PLATFORM_DISABLED_TESTS += w32message.exe
660 PLATFORM_DISABLED_TESTS=async-exc-compilation.exe finally_guard.exe finally_block_ending_in_dead_bb.exe \
661 bug-18026.exe monitor.exe threadpool-exceptions5.exe process-unref-race.exe w32message.exe \
662 unhandled-exception-1.exe unhandled-exception-2.exe unhandled-exception-3.exe unhandled-exception-4.exe \
663 unhandled-exception-5.exe unhandled-exception-6.exe unhandled-exception-7.exe unhandled-exception-8.exe
670 PLATFORM_DISABLED_TESTS=finalizer-abort.exe finalizer-exception.exe finalizer-exit.exe
674 # FIXME: These tests hang/fail for unknown reasons
675 PLATFORM_DISABLED_TESTS=monitor.exe threadpool-exceptions5.exe appdomain-thread-abort.exe appdomain-unload.exe \
676 pinvoke2.exe pinvoke3.exe pinvoke11.exe threadpool-exceptions7.exe winx64structs.exe bug-10127.exe pinvoke_ppcc.exe \
677 pinvoke_ppcs.exe pinvoke_ppci.exe pinvoke_ppcf.exe pinvoke_ppcd.exe abort-cctor.exe load-exceptions.exe \
678 sgen-domain-unload-2.exe sgen-weakref-stress.exe sgen-cementing-stress.exe sgen-new-threads-dont-join-stw.exe \
679 sgen-new-threads-dont-join-stw-2.exe sgen-new-threads-collect.exe sgen-bridge.exe
683 PLATFORM_DISABLED_TESTS=filter-stack.exe
687 # monitor.exe is racy
688 PLATFORM_DISABLED_TESTS=filter-stack.exe monitor.exe
692 PLATFORM_DISABLED_TESTS=dynamic-method-resurrection.exe
693 #PLATFORM_DISABLED_TESTS=dynamic-method-resurrection.exe exception17.exe
695 PLATFORM_DISABLED_TESTS += \
698 sgen-bridge-major-fragmentation.exe \
703 # Tests that use Thread.Abort()
704 PLATFORM_DISABLED_TESTS= abort-stress-1.exe \
707 appdomain-thread-abort.exe \
708 async-exc-compilation.exe \
711 finalizer-abort.exe \
713 finally_block_ending_in_dead_bb.exe \
714 main-returns-abort-resetabort.exe \
715 main-returns-background-abort-resetabort.exe \
717 threadpool-exceptions5.exe \
718 threadpool-exceptions6.exe
720 PLATFORM_DISABLED_TESTS+= w32message.exe
722 # Tests that rely on AppDomain.Unload
723 PLATFORM_DISABLED_TESTS+= appdomain-async-invoke.exe \
725 appdomain-unload-callback.exe \
726 appdomain-unload.exe \
728 generic-unloading.2.exe \
731 threadpool-exceptions7.exe \
734 # pinvoke2 attaches a thread to the runtime, but
735 # doesn't 'unattach' it and it hangs in GC on exit
736 PLATFORM_DISABLED_TESTS+= pinvoke2.exe
738 # Tests that currently hang waiting for non-main threads
739 # to exit in NaCl, need to investigate. Most are AppDomain
740 # creation and Delegate tests.
741 PLATFORM_DISABLED_TESTS+= appdomain1.exe \
743 marshal-valuetypes.exe \
745 stackframes-async.2.exe \
746 generic-marshalbyref.2.exe \
747 generic-xdomain.2.exe \
750 # Tests that fail trying to write files (appdomain create mostly)
751 PLATFORM_DISABLED_TESTS+= bug-335131.2.exe \
756 # FIXME: don't know why delegate2.exe fails, it shouldn't
757 PLATFORM_DISABLED_TESTS+= delegate2.exe
759 # These tests newly fail with the latest revision. pinvoke3 fails because
760 # of a thread attach, the others have not been investigated. TODO revisit.
761 PLATFORM_DISABLED_TESTS+= pinvoke3.exe \
763 async-with-cb-throws.exe \
764 appdomain-unload-doesnot-raise-pending-events.exe \
765 gsharing-valuetype-layout.exe
768 # FIXME: There are problems with async callbacks and results on NaCl 32-bit
769 PLATFORM_DISABLED_TESTS+= delegate1.exe \
775 threadpool-exceptions3.exe \
780 # FIXME: These tests hang/fail for unknown reasons, deal with exiting
781 PLATFORM_DISABLED_TESTS+= main-returns-background-resetabort.exe \
782 main-returns-background.exe \
783 main-returns-background-change.exe
789 COOP_DISABLED_TESTS= thunks.exe
794 PROFILE_DISABLED_TESTS=
797 # Tests which rely on TypeLoadExceptions
798 # In full-aot mode, these cause the relevant methods to be not AOTed.
799 PROFILE_DISABLED_TESTS += \
800 typeload-unaligned.exe \
802 invalid_generic_instantiation.exe \
805 array_load_exception.exe \
807 generic-type-load-exception.2.exe \
809 call_missing_method.exe \
810 call_missing_class.exe \
811 ldfld_missing_field.exe \
812 ldfld_missing_class.exe \
814 resolve_method_bug.2.exe \
815 resolve_field_bug.2.exe \
816 resolve_type_bug.2.exe
818 # Tests which rely on remoting
819 PROFILE_DISABLED_TESTS += \
822 generic-marshalbyref.2.exe \
823 unhandled-exception-7.exe
825 # Tests which use unsupported pinvoke+full aot
827 PROFILE_DISABLED_TESTS += \
837 # Tests which load assemblies which are not
838 # in the testing_aot_full profile
839 PROFILE_DISABLED_TESTS += \
840 assembly-load-remap.exe
842 # Test which needs remoting support
843 PROFILE_DISABLED_TESTS += \
850 # Tests which needs AppDomain support
851 PROFILE_DISABLED_TESTS += \
853 appdomain-client.exe \
854 appdomain-unload.exe \
855 appdomain-async-invoke.exe \
856 appdomain-thread-abort.exe \
860 appdomain-unload-callback.exe \
861 appdomain-unload-doesnot-raise-pending-events.exe \
862 unload-appdomain-on-shutdown.exe \
863 assemblyresolve_event2.2.exe \
866 generic-marshalbyref.2.exe \
867 stackframes-async.2.exe \
868 transparentproxy.exe \
871 marshal-valuetypes.exe \
872 xdomain-threads.exe \
874 generic-xdomain.2.exe \
875 threadpool-exceptions7.exe \
877 generic-unloading.2.exe \
878 appdomain-threadpool-unload.exe
880 # Tests which needs System.Reflection.Emit support
881 PROFILE_DISABLED_TESTS += \
885 generic-type-builder.2.exe \
886 dynamic-generic-size.exe \
888 dynamic-method-access.2.exe \
889 dynamic-method-finalize.2.exe \
890 dynamic-method-stack-traces.exe \
891 generic_type_definition.2.exe \
892 bug-333798-tb.2.exe \
894 bug-322722_patch_bx.2.exe \
895 bug-322722_dyn_method_throw.2.exe \
898 bug-389886-sre-generic-interface-instances.exe \
902 constant-division.exe \
903 dynamic-method-resurrection.exe \
904 assembly_append_ordering.exe
906 # Test which needs System.Web support
907 PROFILE_DISABLED_TESTS += \
910 # Tests which needs named Mutex support
911 PROFILE_DISABLED_TESTS += \
912 namedmutex-destroy-race.exe
914 # ThreadAbortException doesn't have necessary field for this test
915 PROFILE_DISABLED_TESTS += \
918 # can't AOT the TestingReferenceAssembly.dll which is a dependency
919 # of reference-loader.exe because it contains the [ReferenceAssemblyAttribute]
920 # and the runtime errors out with "File does not contain a valid CIL image."
921 PROFILE_DISABLED_TESTS += \
924 # constraints-load.il:
925 # Failed to load method 0x6000007 from '..../mono/tests/constraints-load.exe' due to
926 # Could not resolve type with token 01000002 assembly:mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 type:System.BrokenIComparable`1 member:<none>.
927 PROFILE_DISABLED_TESTS += \
928 constraints-load.exe \
931 PROFILE_DISABLED_TESTS += \
932 generic-type-builder.2.exe
934 PROFILE_DISABLED_TESTS += \
935 sgen-domain-unload.exe \
936 sgen-domain-unload-2.exe
938 PROFILE_DISABLED_TESTS += \
943 PROFILE_DISABLED_TESTS += \
945 namedmutex-destroy-race.exe
948 AOT_DISABLED_TESTS= \
951 CI_DISABLED_TESTS = \
952 main-returns-background-resetabort.exe \
953 main-returns-background-abort-resetabort.exe \
954 assemblyresolve_event3.exe \
957 generic-xdomain.2.exe
959 # failing tests which we temporarily disable for PRs
960 # so they don't interfere with other people's work
961 CI_PR_DISABLED_TESTS = \
962 appdomain-threadpool-unload.exe \
963 appdomain-thread-abort.exe
965 # appdomain-threadpool-unload.exe creates 100 appdomains, takes too long with llvm
966 LLVM_DISABLED_TESTS = \
967 appdomain-threadpool-unload.exe
969 LLVM = $(filter --llvm, $(MONO_ENV_OPTIONS))
971 # The two finalizer tests only work under sgen
972 # gc-altstack.exe fails under boehm because it has no support for altstack
973 # bug-459094.exe creates an extremely deep directory tree
974 # delegate-invoke.exe depends on 929c6bc9b6d76a273f251e6f5dfacac36e9c38bd which was
976 # bug-Xamarin-5278.exe got broken by 5d26590e79da139a284459299aee95c25f4cd835
977 # bug-45841-fpstack-exceptions.exe: https://bugzilla.xamarin.com/show_bug.cgi?id=47053
978 # appdomain-thread-abort.exe: https://bugzilla.xamarin.com/show_bug.cgi?id=47054
979 KNOWN_FAILING_TESTS = \
980 delegate-async-exception.exe \
983 delegate-invoke.exe \
984 bug-Xamarin-5278.exe \
985 bug-45841-fpstack-exceptions.exe \
986 appdomain-thread-abort.exe
989 $(KNOWN_FAILING_TESTS) \
990 $(PLATFORM_DISABLED_TESTS) \
991 $(EXTRA_DISABLED_TESTS) \
992 $(COOP_DISABLED_TESTS) \
993 $(PROFILE_DISABLED_TESTS) \
994 $(if $(AOT),$(AOT_DISABLED_TESTS)) \
995 $(if $(CI),$(CI_DISABLED_TESTS)) \
996 $(if $(CI_PR),$CI_PR_DISABLED_TESTS) \
997 $(if $(LLVM),$(LLVM_DISABLED_TESTS))
999 INTERP_DISABLED_TESTS = \
1000 $(CI_PR_DISABLED_TESTS) \
1001 $(CI_DISABLED_TESTS) \
1002 $(KNOWN_FAILING_TESTS) \
1004 appdomain-async-invoke.exe \
1005 appdomain-exit.exe \
1006 appdomain-serialize-exception.exe \
1007 appdomain-unload-callback.exe \
1008 appdomain-unload-doesnot-raise-pending-events.exe \
1009 appdomain-unload.exe \
1013 array_load_exception.exe \
1014 assembly_append_ordering.exe \
1015 assemblyresolve_event4.exe \
1016 async-exc-compilation.exe \
1017 async-with-cb-throws.exe \
1037 call_missing_class.exe \
1038 call_missing_method.exe \
1039 calliGenericTest.exe \
1042 delegate-with-null-target.exe \
1044 dynamic-method-stack-traces.exe \
1048 finally_block_ending_in_dead_bb.exe \
1049 generic-marshalbyref.2.exe \
1050 generic-mkrefany.2.exe \
1051 generic-refanyval.2.exe \
1052 generic-stack-traces2.2.exe \
1053 generic-type-load-exception.2.exe \
1054 generic-unloading.2.exe \
1055 generics-invoke-byref.2.exe \
1056 generics-sharing.2.exe \
1059 invalid_generic_instantiation.exe \
1060 ldfld_missing_class.exe \
1061 ldfld_missing_field.exe \
1063 main-returns-background-change.exe \
1064 marshal-valuetypes.exe \
1072 nullable_boxing.2.exe \
1084 process-unref-race.exe \
1085 reload-at-bb-end.exe \
1092 stackframes-async.2.exe \
1093 static-constructor.exe \
1094 test-inline-call-stack.exe \
1095 test-type-ctor.exe \
1097 threadpool-exceptions1.exe \
1098 threadpool-exceptions2.exe \
1099 threadpool-exceptions3.exe \
1100 threadpool-exceptions4.exe \
1101 threadpool-exceptions5.exe \
1102 threadpool-exceptions6.exe \
1103 threadpool-exceptions7.exe \
1107 transparentproxy.exe \
1108 typeload-unaligned.exe \
1109 unload-appdomain-on-shutdown.exe \
1112 vt-sync-method.exe \
1116 TESTS_CS=$(filter-out $(DISABLED_TESTS),$(TESTS_CS_SRC:.cs=.exe))
1117 TESTS_IL=$(filter-out $(DISABLED_TESTS),$(TESTS_IL_SRC:.il=.exe))
1118 TESTS_BENCH=$(filter-out $(DISABLED_TESTS),$(TESTS_BENCH_SRC:.cs=.exe))
1119 TESTS_STRESS=$(filter-out $(DISABLED_TESTS),$(TESTS_STRESS_SRC:.cs=.exe))
1120 TESTS_GSHARED=$(filter-out $(DISABLED_TESTS),$(TESTS_GSHARED_SRC:.cs=.exe))
1123 TESTSAOT_CS=$(TESTS_CS:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1124 TESTSAOT_IL=$(TESTS_IL:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1125 TESTSAOT_BENCH=$(TESTS_BENCH:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1126 TESTSAOT_STRESS=$(TESTS_STRESS:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1127 TESTSAOT_GSHARED=$(TESTS_GSHARED:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1131 TESTSAOT_CS=$(TESTS_CS:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1132 TESTSAOT_IL=$(TESTS_IL:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1133 TESTSAOT_BENCH=$(TESTS_BENCH:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1134 TESTSAOT_STRESS=$(TESTS_STRESS:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1135 TESTSAOT_GSHARED=$(TESTS_GSHARED:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1138 EXTRA_DIST=test-driver test-runner.cs $(TESTS_CS_SRC) $(TESTS_IL_SRC) \
1139 $(TESTS_BENCH_SRC) $(TESTS_STRESS_SRC) stress-runner.pl
1145 if !HYBRID_AOT_TESTS
1146 TEST_DRIVER_HARD_KILL_FEATURE=-r:$(CLASS)/Mono.Posix.dll
1151 TEST_DRIVER_DEPEND=TestDriver.dll$(PLATFORM_AOT_SUFFIX)
1154 TEST_DRIVER_DEPEND=TestDriver.dll$(PLATFORM_AOT_SUFFIX)
1156 TEST_DRIVER_DEPEND=TestDriver.dll
1160 %.exe: %.cs $(TEST_DRIVER_DEPEND)
1161 $(MCS) -r:$(CLASS)/System.dll -r:$(CLASS)/System.Xml.dll -r:$(CLASS)/System.Core.dll -r:TestDriver.dll $(TEST_DRIVER_HARD_KILL_FEATURE) -out:$@ $<
1163 # N.B. test-runner.exe references the TOOLS_RUNTIME versions of the framework assemblies
1164 test-runner.exe: test-runner.cs $(TEST_DRIVER_DEPEND)
1165 $(MCS) -r:System.dll -r:System.Xml.dll -r:System.Core.dll -r:TestDriver.dll $(TEST_DRIVER_HARD_KILL_FEATURE) -out:$@ $<
1168 $(MCS) -r:$(CLASS)/System.dll -target:library -out:$@ $<
1170 $(ILASM) /dll /output:$@ $<
1172 reference-loader.exe: reference-loader.cs TestingReferenceAssembly.dll TestingReferenceReferenceAssembly.dll $(TEST_DRIVER_DEPEND)
1173 $(MCS) -r:$(CLASS)/System.dll -r:TestDriver.dll -r:TestingReferenceAssembly.dll -r:TestingReferenceReferenceAssembly.dll $(TEST_DRIVER_HARD_KILL_FEATURE) -out:$@ $(srcdir)/reference-loader.cs
1175 TestingReferenceAssembly.dll: TestingReferenceAssembly.cs
1176 $(MCS) -target:library -out:$@ $<
1178 TestingReferenceReferenceAssembly.dll: TestingReferenceReferenceAssembly.cs TestingReferenceAssembly.dll
1179 $(MCS) -r:TestingReferenceAssembly.dll -target:library -out:$@ $<
1181 %.exe$(PLATFORM_AOT_SUFFIX): %.exe
1182 $(RUNTIME) $(AOT_BUILD_FLAGS) $<
1184 %.dll$(PLATFORM_AOT_SUFFIX): %.dll
1185 $(RUNTIME) $(AOT_BUILD_FLAGS) $<
1187 # mkbundle works on ppc, but the pkg-config POC doesn't when run with make test
1191 # Can't use mkbundle on win32 since there is no static build there
1192 # Can't run test-unhandled-exception on Windows because of all the debug popups...
1196 # mkbundle uses the installed mono-2.pc so it won't work if there is no system mono
1197 #test-platform: testbundle test-iomap-regression
1198 test-platform: test-iomap-regression
1205 test-platform: test-eglib-remap
1209 # Target to precompile the test executables
1210 tests: compile-tests
1213 # Test that no symbols are missed in eglib-remap.h
1215 OK_G_SYMBOLS='g_list\|g_slist\|g_concat_dir_and_file\|g_Ctoc'
1220 @echo "Testing eglib remap..."
1221 @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
1225 MONO_ENV_OPTIONS="--version" $(RUNTIME) array-init.exe | grep -q Architecture:
1227 # Precompile the test assemblies in parallel
1229 $(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
1231 # Remove empty .stdout and .stderr files for wrench
1233 @echo "Removing empty logs..."
1234 find . '(' -name "*.stdout" -o -name "*.stderr" ')' -size 0 -exec rm {} \;
1237 $(MCS) -target:library -out:$@ $(srcdir)/../mini/TestDriver.cs $(srcdir)/../mini/TestHelpers.cs
1239 runtest: compile-tests
1243 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
1244 rm -f testlist testlist.sorted; \
1245 for i in $(TESTS_CS) $(TESTS_IL) $(TESTS_BENCH); do echo $${i} >> testlist; sort testlist > testlist.sorted; done; \
1246 for i in `cat testlist.sorted`; do \
1248 $(with_mono_path) $(JITTEST_PROG_RUN) --aot --debug $${i} > $${i}.aotlog 2>&1 || exit 1; \
1249 if $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$i "$(DISABLED_TESTS)" "$${dump_action}" $(RUNTIME_ARGS); \
1251 passed=`expr $${passed} + 1`; \
1253 if [ $$? = 2 ]; then break; fi; \
1254 failed=`expr $${failed} + 1`; \
1255 failed_tests="$${failed_tests} $$i"; \
1258 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1259 rm -f testlist testlist.sorted; \
1260 if [ $${failed} != 0 ]; then \
1261 echo -e "\nFailed tests:\n"; \
1262 for i in $${failed_tests}; do \
1264 if [ "x$$V" = "x1" ]; then \
1272 runtest-managed: test-runner.exe compile-tests
1273 $(TOOLS_RUNTIME) --debug $(TEST_RUNNER) -j a --testsuite-name "runtime" --timeout 300 --disabled "$(DISABLED_TESTS)" $(TESTS_CS) $(TESTS_IL) $(TESTS_BENCH)
1275 runtest-managed-serial: test-runner.exe compile-tests
1276 $(TOOLS_RUNTIME) --debug $(TEST_RUNNER) -j 1 --testsuite-name "runtime" --disabled "$(DISABLED_TESTS)" $(TESTS_CS) $(TESTS_IL) $(TESTS_BENCH)
1279 @if test x$(M) != x0; then $(MAKE) runtest-managed; else $(MAKE) runtest; fi
1282 @$(MAKE) AOT=1 runtest
1285 @$(MAKE) RUNTIME_ARGS="$${RUNTIME_ARGS} --trace" runtest
1287 testinterp: test-runner.exe compile-tests
1288 $(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)
1290 testjitspeed: $(JITTEST_PROG) compile-tests
1291 for i in $(TESTS_BENCH); do \
1293 time $(JITTEST_PROG) $$i; \
1296 test-iomap-regression: exists.exe
1297 @echo "Testing exists.exe..."
1298 @MONO_IOMAP=all $(RUNTIME) exists.exe
1300 stresstest: compile-tests
1304 for i in $(TESTS_STRESS); do \
1305 if $(srcdir)/stress-runner.pl $$i ../mini/mono $(RUNTIME_ARGS); \
1307 passed=`expr $${passed} + 1`; \
1309 if [ $$? = 2 ]; then break; fi; \
1310 failed=`expr $${failed} + 1`; \
1311 failed_tests="$${failed_tests} $$i"; \
1314 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1315 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1316 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1318 testbundle: console.exe
1319 @echo "Testing mkbundle..."
1320 @$(MKBUNDLE) --static console.exe > mkbundle.stdout
1321 @$(with_mono_path) MONO_CFG_DIR=$(mono_cfg_dir) ./a.out >> mkbundle.stdout
1324 EXTRA_DIST += load-missing.il t-missing.cs load-exceptions.cs
1326 load-missing.dll: load-missing.il
1327 $(Q) $(ILASM) /dll /output:$@ $<
1329 load-exceptions.exe t.dll: load-exceptions.cs t-missing.cs load-missing.dll $(TEST_DRIVER_DEPEND)
1330 $(Q) $(MCS) -t:library -out:t.dll -d:FOUND t-missing.cs
1331 $(Q) $(MCS) -r:TestDriver.dll -r:load-missing.dll -r:t.dll -out:$@ $<
1332 $(Q) $(MCS) -t:library -out:t.dll t-missing.cs
1334 test-type-load: load-exceptions.exe
1336 $(Q) $(RUNTIME) load-exceptions.exe > load-exceptions.exe.stdout 2> load-exceptions.exe.stderr
1339 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
1341 test-multi-netmodule-1-netmodule.netmodule: test-multi-netmodule-1-netmodule.cs
1342 $(Q) $(MCS) -t:module -out:$@ $<
1343 test-multi-netmodule-2-dll1.dll: test-multi-netmodule-2-dll1.cs test-multi-netmodule-1-netmodule.netmodule
1344 $(Q) $(MCS) -addmodule:test-multi-netmodule-1-netmodule.netmodule -t:library -out:$@ $<
1345 test-multi-netmodule-3-dll2.dll: test-multi-netmodule-3-dll2.cs test-multi-netmodule-1-netmodule.netmodule
1346 $(Q) $(MCS) -addmodule:test-multi-netmodule-1-netmodule.netmodule -t:library -out:$@ $<
1347 test-multi-netmodule-4-exe.exe: test-multi-netmodule-4-exe.cs test-multi-netmodule-2-dll1.dll test-multi-netmodule-3-dll2.dll
1348 $(Q) $(MCS) -r:test-multi-netmodule-2-dll1.dll -out:$@ $<
1350 test-multi-netmodule: test-multi-netmodule-4-exe.exe
1351 $(Q) $(RUNTIME) test-multi-netmodule-4-exe.exe > test-multi-netmodule-4-exe.exe.stdout 2> test-multi-netmodule-4-exe.exe.stderr
1353 EXTRA_DIST += custom-attr-errors.cs custom-attr-errors-lib.cs
1355 custom-attr-errors.exe custom-attr-errors-lib.dll: custom-attr-errors.cs custom-attr-errors-lib.cs $(TEST_DRIVER_DEPEND)
1356 $(Q) $(MCS) /t:library -D:WITH_MEMBERS custom-attr-errors-lib.cs
1357 $(Q) $(MCS) -r:TestDriver.dll -r:custom-attr-errors-lib.dll custom-attr-errors.cs
1358 $(Q) $(MCS) /t:library custom-attr-errors-lib.cs
1360 test-cattr-type-load: custom-attr-errors.exe
1361 $(Q) $(RUNTIME) custom-attr-errors.exe > custom-attr-errors.exe.stdout 2> custom-attr-errors.exe.stderr
1363 EXTRA_DIST += reflection-load-with-context-lib.cs reflection-load-with-context-second-lib.cs reflection-load-with-context.cs
1365 reflection-load-with-context-second-lib.dll: reflection-load-with-context-second-lib.cs
1366 $(Q) $(MCS) /t:library -out:$@ $<
1367 reflection-load-with-context-lib.dll: reflection-load-with-context-lib.cs reflection-load-with-context-second-lib.dll
1368 $(Q) $(MCS) /t:library -r:reflection-load-with-context-second-lib.dll -out:$@ $<
1369 reflection-load-with-context.exe: reflection-load-with-context-lib.dll
1371 test-reflection-load-with-context: reflection-load-with-context.exe
1372 $(Q) $(RUNTIME) reflection-load-with-context.exe > reflection-load-with-context.exe.stdout 2> reflection-load-with-context.exe.stderr
1375 EXTRA_DIST += debug-casts.cs
1376 # This depends on TLS, so its not ran by default
1377 debug-casts: debug-casts.exe
1378 $(Q) $(RUNTIME) --debug=casts debug-casts.exe
1380 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
1384 $(MAKE) test-sgen-regular || ok=false; \
1385 $(MAKE) test-sgen-toggleref || ok=false; \
1386 $(MAKE) test-sgen-bridge || ok=false; \
1387 $(MAKE) test-sgen-bridge2 || ok=false; \
1388 $(MAKE) test-sgen-bridge3 || ok=false; \
1393 $(MAKE) test-stress-sgen-regular || ok=false; \
1394 $(MAKE) test-stress-sgen-toggleref || ok=false; \
1395 $(MAKE) test-stress-sgen-bridge || ok=false; \
1396 $(MAKE) test-stress-sgen-bridge2 || ok=false; \
1397 $(MAKE) test-stress-sgen-bridge3 || ok=false; \
1400 TESTS_SGEN_REGULAR_SRC = \
1402 critical-finalizers.cs \
1403 sgen-descriptors.cs \
1404 sgen-gshared-vtype.cs \
1405 sgen-weakref-stress.cs \
1406 sgen-cementing-stress.cs \
1407 sgen-case-23400.cs \
1408 sgen-new-threads-dont-join-stw.cs \
1409 sgen-new-threads-dont-join-stw-2.cs \
1410 sgen-new-threads-collect.cs \
1411 gc-graystack-stress.cs \
1413 sgen-domain-unload.cs \
1414 sgen-domain-unload-2.cs
1416 TESTS_SGEN_REGULAR=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_REGULAR_SRC:.cs=.exe))
1419 TESTSAOT_SGEN_REGULAR=$(TESTS_SGEN_REGULAR:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1423 TESTSAOT_SGEN_REGULAR=$(TESTS_SGEN_REGULAR:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1426 test-sgen-regular: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR)
1428 $(MAKE) test-sgen-regular-ms-simple || ok=false; \
1429 $(MAKE) test-sgen-regular-ms-conc-simple || ok=false; \
1432 test-stress-sgen-regular: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR)
1434 $(MAKE) test-sgen-regular-ms-simple MONO_TESTS_STRESS=1 || ok=false; \
1435 $(MAKE) test-sgen-regular-ms-conc-simple MONO_TESTS_STRESS=1 || ok=false; \
1436 $(MAKE) test-sgen-regular-ms-conc-par-simple MONO_TESTS_STRESS=1 || ok=false; \
1437 $(MAKE) test-sgen-regular-ms-conc-split MONO_TESTS_STRESS=1 || ok=false; \
1438 $(MAKE) test-sgen-regular-ms-conc-split-95-clear-at-gc MONO_TESTS_STRESS=1 || ok=false; \
1439 $(MAKE) test-sgen-regular-ms-conc-par-simple-par-dyn MONO_TESTS_STRESS=1 || ok=false; \
1440 $(MAKE) test-sgen-regular-ms-conc-par-simple-par-512k MONO_TESTS_STRESS=1 || ok=false; \
1441 $(MAKE) test-sgen-regular-ms-conc-par-simple-par-32m MONO_TESTS_STRESS=1 || ok=false; \
1442 $(MAKE) test-sgen-regular-ms-conc-par-simple-par-dyn-clear-at-gc MONO_TESTS_STRESS=1 || ok=false; \
1445 test-sgen-regular-ms-simple: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
1446 $(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)
1447 test-sgen-regular-ms-conc-simple: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
1448 $(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)
1449 test-sgen-regular-ms-conc-par-simple: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
1450 $(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)
1451 test-sgen-regular-ms-conc-split: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
1452 $(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)
1453 test-sgen-regular-ms-conc-split-95-clear-at-gc: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
1454 $(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)
1455 test-sgen-regular-ms-conc-par-simple-par-dyn: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
1456 $(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)
1457 test-sgen-regular-ms-conc-par-simple-par-512k: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
1458 $(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)
1459 test-sgen-regular-ms-conc-par-simple-par-32m: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
1460 $(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)
1461 test-sgen-regular-ms-conc-par-simple-par-dyn-clear-at-gc: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
1462 $(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)
1464 TESTS_SGEN_TOGGLEREF_SRC= \
1467 TESTS_SGEN_TOGGLEREF=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_TOGGLEREF_SRC:.cs=.exe))
1470 TESTSAOT_SGEN_TOGGLEREF=$(TESTS_SGEN_TOGGLEREF:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1474 TESTSAOT_SGEN_TOGGLEREF=$(TESTS_SGEN_TOGGLEREF:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1477 test-sgen-toggleref: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF)
1479 $(MAKE) test-sgen-toggleref-ms-simple || ok=false; \
1480 $(MAKE) test-sgen-toggleref-ms-conc-simple || ok=false; \
1483 test-stress-sgen-toggleref: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF)
1485 $(MAKE) test-sgen-toggleref-ms-simple MONO_TESTS_STRESS=1 || ok=false; \
1486 $(MAKE) test-sgen-toggleref-ms-conc-simple MONO_TESTS_STRESS=1 || ok=false; \
1487 $(MAKE) test-sgen-toggleref-ms-conc-par-simple MONO_TESTS_STRESS=1 || ok=false; \
1488 $(MAKE) test-sgen-toggleref-ms-conc-split MONO_TESTS_STRESS=1 || ok=false; \
1489 $(MAKE) test-sgen-toggleref-ms-conc-split-95-clear-at-gc MONO_TESTS_STRESS=1 || ok=false; \
1490 $(MAKE) test-sgen-toggleref-ms-conc-par-simple-par-dyn MONO_TESTS_STRESS=1 || ok=false; \
1491 $(MAKE) test-sgen-toggleref-ms-conc-par-simple-par-512k MONO_TESTS_STRESS=1 || ok=false; \
1492 $(MAKE) test-sgen-toggleref-ms-conc-par-simple-par-32m MONO_TESTS_STRESS=1 || ok=false; \
1493 $(MAKE) test-sgen-toggleref-ms-conc-par-simple-par-dyn-clear-at-gc MONO_TESTS_STRESS=1 || ok=false; \
1496 test-sgen-toggleref-ms-simple: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
1497 $(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)
1498 test-sgen-toggleref-ms-conc-simple: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
1499 $(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)
1500 test-sgen-toggleref-ms-conc-par-simple: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
1501 $(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)
1502 test-sgen-toggleref-ms-conc-split: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
1503 $(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)
1504 test-sgen-toggleref-ms-conc-split-95-clear-at-gc: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
1505 $(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)
1506 test-sgen-toggleref-ms-conc-par-simple-par-dyn: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
1507 $(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)
1508 test-sgen-toggleref-ms-conc-par-simple-par-512k: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
1509 $(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)
1510 test-sgen-toggleref-ms-conc-par-simple-par-32m: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
1511 $(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)
1512 test-sgen-toggleref-ms-conc-par-simple-par-dyn-clear-at-gc: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
1513 $(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)
1515 TESTS_SGEN_BRIDGE_SRC= \
1517 sgen-bridge-major-fragmentation.cs
1519 TESTS_SGEN_BRIDGE=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_BRIDGE_SRC:.cs=.exe))
1522 TESTSAOT_SGEN_BRIDGE=$(TESTS_SGEN_BRIDGE:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1526 TESTSAOT_SGEN_BRIDGE=$(TESTS_SGEN_BRIDGE:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1529 test-sgen-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE)
1531 $(MAKE) test-sgen-bridge-ms-simple-tarjan-bridge || ok=false; \
1532 $(MAKE) test-sgen-bridge-ms-conc-simple-tarjan-bridge || ok=false; \
1535 test-stress-sgen-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE)
1537 $(MAKE) test-sgen-bridge-ms-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
1538 $(MAKE) test-sgen-bridge-ms-conc-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
1539 $(MAKE) test-sgen-bridge-ms-conc-split-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
1540 $(MAKE) test-sgen-bridge-ms-conc-simple-new-bridge MONO_TESTS_STRESS=1 || ok=false; \
1541 $(MAKE) test-sgen-bridge-ms-conc-simple-old-bridge MONO_TESTS_STRESS=1 || ok=false; \
1542 $(MAKE) test-sgen-bridge-ms-conc-par-simple-par-dyn-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
1543 $(MAKE) test-sgen-bridge-ms-conc-par-simple-par-512k-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
1544 $(MAKE) test-sgen-bridge-ms-conc-par-simple-par-32m-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
1547 test-sgen-bridge-ms-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
1548 $(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)
1549 test-sgen-bridge-ms-conc-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
1550 $(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)
1551 test-sgen-bridge-ms-conc-split-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
1552 $(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)
1553 test-sgen-bridge-ms-conc-simple-new-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
1554 $(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)
1555 test-sgen-bridge-ms-conc-simple-old-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
1556 $(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)
1557 test-sgen-bridge-ms-conc-par-simple-par-dyn-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
1558 $(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)
1559 test-sgen-bridge-ms-conc-par-simple-par-512k-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
1560 $(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)
1561 test-sgen-bridge-ms-conc-par-simple-par-32m-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
1562 $(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)
1564 TESTS_SGEN_BRIDGE2_SRC= \
1567 TESTS_SGEN_BRIDGE2=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_BRIDGE2_SRC:.cs=.exe))
1570 TESTSAOT_SGEN_BRIDGE2=$(TESTS_SGEN_BRIDGE2:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1574 TESTSAOT_SGEN_BRIDGE2=$(TESTS_SGEN_BRIDGE2:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1577 test-sgen-bridge2: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2)
1579 $(MAKE) test-sgen-bridge2-ms-simple-tarjan-bridge || ok=false; \
1580 $(MAKE) test-sgen-bridge2-ms-conc-simple-tarjan-bridge || ok=false; \
1583 test-stress-sgen-bridge2: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2)
1585 $(MAKE) test-sgen-bridge2-ms-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
1586 $(MAKE) test-sgen-bridge2-ms-conc-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
1587 $(MAKE) test-sgen-bridge2-ms-conc-split-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
1588 $(MAKE) test-sgen-bridge2-ms-conc-simple-new-bridge MONO_TESTS_STRESS=1 || ok=false; \
1589 $(MAKE) test-sgen-bridge2-ms-conc-simple-old-bridge MONO_TESTS_STRESS=1 || ok=false; \
1590 $(MAKE) test-sgen-bridge2-ms-conc-par-simple-par-dyn-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
1591 $(MAKE) test-sgen-bridge2-ms-conc-par-simple-par-512k-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
1592 $(MAKE) test-sgen-bridge2-ms-conc-par-simple-par-32m-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
1595 test-sgen-bridge2-ms-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
1596 $(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)
1597 test-sgen-bridge2-ms-conc-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
1598 $(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)
1599 test-sgen-bridge2-ms-conc-split-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
1600 $(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)
1601 test-sgen-bridge2-ms-conc-simple-new-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
1602 $(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)
1603 test-sgen-bridge2-ms-conc-simple-old-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
1604 $(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)
1605 test-sgen-bridge2-ms-conc-par-simple-par-dyn-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
1606 $(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)
1607 test-sgen-bridge2-ms-conc-par-simple-par-512k-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
1608 $(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)
1609 test-sgen-bridge2-ms-conc-par-simple-par-32m-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
1610 $(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)
1612 TESTS_SGEN_BRIDGE3_SRC= \
1613 sgen-bridge-gchandle.cs
1615 TESTS_SGEN_BRIDGE3=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_BRIDGE3_SRC:.cs=.exe))
1618 TESTSAOT_SGEN_BRIDGE3=$(TESTS_SGEN_BRIDGE3:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1622 TESTSAOT_SGEN_BRIDGE3=$(TESTS_SGEN_BRIDGE3:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1625 test-sgen-bridge3: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3)
1627 $(MAKE) test-sgen-bridge3-ms-simple-tarjan-bridge || ok=false; \
1628 $(MAKE) test-sgen-bridge3-ms-conc-simple-tarjan-bridge || ok=false; \
1631 test-stress-sgen-bridge3: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3)
1633 $(MAKE) test-sgen-bridge3-ms-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
1634 $(MAKE) test-sgen-bridge3-ms-conc-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
1635 $(MAKE) test-sgen-bridge3-ms-conc-split-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
1636 $(MAKE) test-sgen-bridge3-ms-conc-simple-new-bridge MONO_TESTS_STRESS=1 || ok=false; \
1637 $(MAKE) test-sgen-bridge3-ms-conc-simple-old-bridge MONO_TESTS_STRESS=1 || ok=false; \
1638 $(MAKE) test-sgen-bridge3-ms-conc-par-simple-par-dyn-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
1639 $(MAKE) test-sgen-bridge3-ms-conc-par-simple-par-512k-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
1640 $(MAKE) test-sgen-bridge3-ms-conc-par-simple-par-32m-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
1643 test-sgen-bridge3-ms-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
1644 $(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)
1645 test-sgen-bridge3-ms-conc-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
1646 $(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)
1647 test-sgen-bridge3-ms-conc-split-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
1648 $(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)
1649 test-sgen-bridge3-ms-conc-simple-new-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
1650 $(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)
1651 test-sgen-bridge3-ms-conc-simple-old-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
1652 $(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)
1653 test-sgen-bridge3-ms-conc-par-simple-par-dyn-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
1654 $(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)
1655 test-sgen-bridge3-ms-conc-par-simple-par-512k-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
1656 $(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)
1657 test-sgen-bridge3-ms-conc-par-simple-par-32m-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
1658 $(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)
1660 TESTS_SGEN_OOM_SRC = \
1661 sgen-oom-cementing-stress.cs \
1662 sgen-oom-new-threads-dont-join-stw-2.cs \
1663 sgen-oom-bridge-major-fragmentation.cs \
1664 gc-oom-handling.cs \
1667 TESTS_SGEN_OOM=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_OOM_SRC:.cs=.exe))
1670 TESTSAOT_SGEN_OOM=$(TESTS_SGEN_OOM:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1674 TESTSAOT_SGEN_OOM=$(TESTS_SGEN_OOM:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1677 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
1678 $(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)
1680 AOT_CONFIGURATIONS= \
1684 #LLVM crashes, got to fix it first.
1686 # "--llvm --gc=boehm|llvm+boehm"
1693 profile=$(DEFAULT_PROFILE); \
1694 tmpfile=`mktemp -t mono_aot_outputXXXXXX` || exit 1; \
1695 rm -f test-aot-$${name}.stdout test-aot-$${name}.stderr; \
1696 for assembly in $(mcs_topdir)/class/lib/$$profile/*.dll ; do \
1697 asm_name=`basename $$assembly`; \
1698 echo "... $$asm_name"; \
1699 for conf in $(AOT_CONFIGURATIONS); do \
1700 name=`echo $$conf | cut -d\| -f 2`; \
1701 params=`echo $$conf | cut -d\| -f 1`; \
1702 test_name="$${asm_name}|$${name}"; \
1703 echo " $$test_name"; \
1704 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; \
1706 passed=`expr $${passed} + 1`; \
1708 failed=`expr $${failed} + 1`; \
1709 failed_tests="$${failed_tests} $$test_name"; \
1714 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1715 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1716 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1719 # Generated tests for runtime invoke
1720 EXTRA_DIST += gen-runtime-invoke.cs
1722 runtime-invoke.gen.cs: gen-runtime-invoke.exe
1723 $(Q) $(RUNTIME) gen-runtime-invoke.exe > runtime-invoke.gen.cs
1725 EXTRA_DIST += make-imt-test.cs
1727 imt_big_iface_test.cs: make-imt-test.exe
1728 $(Q) $(RUNTIME) make-imt-test.exe > imt_big_iface_test.cs
1730 EXTRA_DIST += test-inline-call-stack-library.cs test-inline-call-stack.cs
1732 test-inline-call-stack-library.dll: $(srcdir)/test-inline-call-stack-library.cs
1733 $(MCS) -t:library -out:$@ $<
1735 test-inline-call-stack.exe$(PLATFORM_AOT_SUFFIX): test-inline-call-stack-library.dll$(PLATFORM_AOT_SUFFIX)
1736 test-inline-call-stack.exe: test-inline-call-stack.cs test-inline-call-stack-library.dll $(TEST_DRIVER_DEPEND)
1737 $(MCS) -r:TestDriver.dll -r:test-inline-call-stack-library.dll -out:$@ $<
1739 EXTRA_DIST += unhandled-exception-base-configuration.config
1740 EXTRA_DIST += unhandled-exception-legacy-configuration.config
1741 EXTRA_DIST += appdomain-unload.exe.config
1742 EXTRA_DIST += unhandled-exception-test-case.2.cs
1743 EXTRA_DIST += unhandled-exception-test-runner.2.cs
1744 unhandled-exception-test-case.1.cs: unhandled-exception-test-case.2.cs
1745 cp unhandled-exception-test-case.2.cs unhandled-exception-test-case.1.cs
1746 unhandled-exception-test-case-legacy.1.cs: unhandled-exception-test-case.1.cs
1747 cp unhandled-exception-test-case.1.cs unhandled-exception-test-case-legacy.1.cs
1748 unhandled-exception-test-case-legacy.2.cs: unhandled-exception-test-case.2.cs
1749 cp unhandled-exception-test-case.2.cs unhandled-exception-test-case-legacy.2.cs
1750 unhandled-exception-config_files: unhandled-exception-base-configuration.config unhandled-exception-legacy-configuration.config
1751 cp unhandled-exception-base-configuration.config unhandled-exception-test-case.1.exe.config
1752 cp unhandled-exception-base-configuration.config unhandled-exception-test-case.2.exe.config
1753 cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.1.exe.config
1754 cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.2.exe.config
1756 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
1758 test-unhandled-exception: unhandled-exception-test-runner.2.exe
1759 $(Q) $(RUNTIME) unhandled-exception-test-runner.2.exe RUNTIME:../mini/mono,GTC:F
1761 safehandle.2.exe winx64structs.exe thunks.exe pinvoke3.exe pinvoke2.exe pinvoke-2.2.exe pinvoke17.exe pinvoke13.exe \
1762 pinvoke11.exe pinvoke_ppcs.exe pinvoke_ppci.exe pinvoke_ppcf.exe pinvoke_ppcd.exe pinvoke_ppcc.exe pinvoke.exe \
1763 marshalbool.exe marshal9.exe marshal5.exe marshal.exe handleref.exe cominterop.exe bug-Xamarin-5278.exe: libtest.la
1765 event-get.2.exe$(PLATFORM_AOT_SUFFIX): event-il.exe$(PLATFORM_AOT_SUFFIX)
1766 event-get.2.exe: event-il.exe
1768 module-cctor-loader.2.exe$(PLATFORM_AOT_SUFFIX): module-cctor.exe$(PLATFORM_AOT_SUFFIX)
1769 module-cctor-loader.2.exe: module-cctor.exe
1771 reference-loader.exe$(PLATFORM_AOT_SUFFIX): TestingReferenceAssembly.dll$(PLATFORM_AOT_SUFFIX) TestingReferenceReferenceAssembly.dll$(PLATFORM_AOT_SUFFIX)
1772 reference-loader.exe: TestingReferenceAssembly.dll TestingReferenceReferenceAssembly.dll
1774 assemblyresolve_asm.dll$(PLATFORM_AOT_SUFFIX): assemblyresolve_deps/Test.dll$(PLATFORM_AOT_SUFFIX)
1775 MONO_PATH="assemblyresolve_deps:$(CLASS)" $(top_builddir)/runtime/mono-wrapper $(AOT_BUILD_FLAGS) assemblyresolve_asm.dll
1776 assemblyresolve_deps/Test.dll$(PLATFORM_AOT_SUFFIX): assemblyresolve_deps/TestBase.dll$(PLATFORM_AOT_SUFFIX)
1778 assemblyresolve_deps:
1779 mkdir -p assemblyresolve_deps
1780 assemblyresolve_deps/TestBase.dll: assemblyresolve_deps $(srcdir)/assemblyresolve_TestBase.cs
1781 $(MCS) -target:library -out:assemblyresolve_deps/TestBase.dll $(srcdir)/assemblyresolve_TestBase.cs
1782 assemblyresolve_deps/Test.dll: assemblyresolve_deps assemblyresolve_deps/TestBase.dll $(srcdir)/assemblyresolve_Test.cs
1783 $(MCS) -target:library -r:assemblyresolve_deps/TestBase.dll -out:assemblyresolve_deps/Test.dll $(srcdir)/assemblyresolve_Test.cs
1784 assemblyresolve_asm.dll: assemblyresolve_deps/Test.dll $(srcdir)/assemblyresolve_asm.cs
1785 $(MCS) -target:library -r:assemblyresolve_deps/TestBase.dll -r:assemblyresolve_deps/Test.dll -out:assemblyresolve_asm.dll $(srcdir)/assemblyresolve_asm.cs
1787 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)
1788 assemblyresolve_event3.exe: assemblyresolve_asm.dll assemblyresolve_deps/Test.dll assemblyresolve_deps/TestBase.dll
1790 assemblyresolve_event4.exe$(PLATFORM_AOT_SUFFIX): assemblyresolve_deps/Test.dll$(PLATFORM_AOT_SUFFIX) assemblyresolve_deps/TestBase.dll$(PLATFORM_AOT_SUFFIX)
1791 assemblyresolve_event4.exe: assemblyresolve_deps/Test.dll assemblyresolve_deps/TestBase.dll
1793 # We use 'test-support-files' to handle an ordering issue between the 'mono/' and 'runtime/' directories
1794 bug-80307.exe: $(srcdir)/bug-80307.cs
1795 $(MCS) -r:$(CLASS)/System.Web.dll -out:$@ $(srcdir)/bug-80307.cs
1796 cd $(top_builddir)/runtime && $(MAKE) test-support-files
1798 EXTRA_DIST += bug-81673-interface.cs
1800 bug-81673.exe$(PLATFORM_AOT_SUFFIX): bug-81673-interface.dll$(PLATFORM_AOT_SUFFIX)
1801 bug-81673.exe bug-81673-interface.dll: $(srcdir)/bug-81673.cs $(srcdir)/bug-81673-interface.cs
1802 $(MCS) -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
1803 $(MCS) -r:bug-81673-interface.dll -out:bug-81673.exe $(srcdir)/bug-81673.cs
1804 $(MCS) -define:WITH_STOP -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
1806 EXTRA_DIST += bug-36848-a.cs
1808 bug-36848.exe$(PLATFORM_AOT_SUFFIX): bug-36848-a.dll$(PLATFORM_AOT_SUFFIX)
1809 bug-36848.exe bug-36848-a.dll: $(srcdir)/bug-36848.cs $(srcdir)/bug-36848-a.cs
1810 $(MCS) -target:library -out:bug-36848-a.dll $(srcdir)/bug-36848-a.cs
1811 $(MCS) -r:bug-36848-a.dll -out:bug-36848.exe $(srcdir)/bug-36848.cs
1812 $(MCS) -define:WITH_STOP -target:library -out:bug-36848-a.dll $(srcdir)/bug-36848-a.cs
1814 EXTRA_DIST += bug-81691-a.cs bug-81691-b.cs
1816 bug-81691.exe$(PLATFORM_AOT_SUFFIX): bug-81691-b.dll$(PLATFORM_AOT_SUFFIX)
1817 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
1818 $(MCS) -target:library -out:bug-81691-a.dll $(srcdir)/bug-81691-a.cs
1819 $(MCS) -r:bug-81691-a.dll -target:library -out:bug-81691-b.dll $(srcdir)/bug-81691-b.cs
1820 $(MCS) -r:bug-81691-b.dll -out:bug-81691.exe $(srcdir)/bug-81691.cs
1821 rm -f bug-81691-a.dll
1823 EXTRA_DIST += bug-81466-lib.il
1825 bug-81466.exe$(PLATFORM_AOT_SUFFIX): bug-81466-lib.dll$(PLATFORM_AOT_SUFFIX)
1826 bug-81466.exe bug-81466-lib.dll: $(srcdir)/bug-81466.il $(srcdir)/bug-81466-lib.il
1827 $(ILASM) /dll /output:bug-81466-lib.dll $(srcdir)/bug-81466-lib.il
1828 $(ILASM) /exe /output:bug-81466.exe $(srcdir)/bug-81466.il
1830 EXTRA_DIST += bug-324535-il.il
1832 bug-324535.exe$(PLATFORM_AOT_SUFFIX): bug-324535-il.dll$(PLATFORM_AOT_SUFFIX)
1833 bug-324535.exe bug-324535-il.dll: $(srcdir)/bug-324535.cs $(srcdir)/bug-324535-il.il
1834 $(ILASM) /dll /output:bug-324535-il.dll $(srcdir)/bug-324535-il.il
1835 $(MCS) -r:bug-324535-il.dll -out:bug-324535.exe $(srcdir)/bug-324535.cs
1837 EXTRA_DIST += custom-modifiers.2.cs custom-modifiers-lib.il
1839 custom-modifiers.2.exe$(PLATFORM_AOT_SUFFIX): custom-modifiers-lib.dll$(PLATFORM_AOT_SUFFIX)
1840 custom-modifiers.2.exe custom-modifiers-lib.dll: $(srcdir)/custom-modifiers.2.cs $(srcdir)/custom-modifiers-lib.il
1841 $(ILASM) /dll /output:custom-modifiers-lib.dll $(srcdir)/custom-modifiers-lib.il
1842 $(MCS) -r:custom-modifiers-lib.dll -out:custom-modifiers.2.exe $(srcdir)/custom-modifiers.2.cs
1844 EXTRA_DIST += bug-382986-lib.cs
1846 bug-382986.exe$(PLATFORM_AOT_SUFFIX): bug-382986-lib.dll$(PLATFORM_AOT_SUFFIX)
1847 bug-382986.exe bug-382986-lib.dll: $(srcdir)/bug-382986.cs $(srcdir)/bug-382986-lib.cs
1848 $(MCS) -target:library -out:bug-382986-lib.dll $(srcdir)/bug-382986-lib.cs
1849 $(MCS) -r:bug-382986-lib.dll -out:bug-382986.exe $(srcdir)/bug-382986.cs
1851 EXTRA_DIST += bug-17537-helper.cs
1853 bug-17537.exe$(PLATFORM_AOT_SUFFIX): bug-17537-helper.exe$(PLATFORM_AOT_SUFFIX)
1854 bug-17537-helper.exe: $(srcdir)/bug-17537-helper.cs
1857 bug-17537.exe: bug-17537-helper.exe
1859 EXTRA_DIST += coreclr-security.cs
1861 test-coreclr-security : coreclr-security.exe
1862 @$(RUNTIME_MOONLIGHT) --security=core-clr-test coreclr-security.exe
1864 EXTRA_DIST += generic-unboxing.2.il generic-boxing.2.il
1866 generic-unboxing.2.dll: $(srcdir)/generic-unboxing.2.il
1867 $(ILASM) /dll /output:$@ $<
1868 generic-boxing.2.dll: $(srcdir)/generic-boxing.2.il generic-unboxing.2.dll
1869 $(ILASM) /dll /output:$@ $<
1871 EXTRA_DIST += generic-unbox.2.cs
1873 generic-unbox.2.exe$(PLATFORM_AOT_SUFFIX): generic-unboxing.2.dll$(PLATFORM_AOT_SUFFIX)
1874 generic-unbox.2.exe: $(srcdir)/generic-unbox.2.cs generic-unboxing.2.dll
1875 $(MCS) -r:generic-unboxing.2.dll -out:$@ $<
1877 EXTRA_DIST += generic-box.2.cs
1879 generic-box.2.exe$(PLATFORM_AOT_SUFFIX): generic-unboxing.2.dll$(PLATFORM_AOT_SUFFIX) generic-boxing.2.dll$(PLATFORM_AOT_SUFFIX)
1880 generic-box.2.exe : $(srcdir)/generic-box.2.cs generic-unboxing.2.dll generic-boxing.2.dll
1881 $(MCS) -r:generic-unboxing.2.dll,generic-boxing.2.dll -out:$@ $<
1883 EXTRA_DIST += generic-delegate2.2.cs generic-delegate2-lib.2.il
1885 generic-delegate2-lib.2.dll: $(srcdir)/generic-delegate2-lib.2.il
1886 $(ILASM) /dll /output:$@ $<
1888 generic-delegate2.2.exe$(PLATFORM_AOT_SUFFIX): generic-delegate2-lib.2.dll$(PLATFORM_AOT_SUFFIX)
1889 generic-delegate2.2.exe: $(srcdir)/generic-delegate2.2.cs generic-delegate2-lib.2.dll
1890 $(MCS) -r:generic-delegate2-lib.2.dll -out:$@ $<
1892 bug-3903.exe: bug-3903.cs
1893 $(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:$@
1896 $(MAKE) test-generic-sharing
1899 @$(MAKE) AOT=1 gshared
1901 test-generic-sharing-normal: $(TESTS_GSHARED) $(TESTSAOT_GSHARED)
1902 @for fn in $+ ; do \
1903 echo "Testing $$fn ..."; \
1904 $(RUNTIME) -O=gshared $$fn > $$fn.stdout || exit 1; \
1905 $(RUNTIME) -O=gshared,shared $$fn > $$fn.stdout || exit 1; \
1906 $(RUNTIME) -O=gshared,-inline $$fn > $$fn.stdout || exit 1; \
1907 $(RUNTIME) -O=gshared,-inline,shared $$fn > $fn.stdout || exit 1; \
1908 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; \
1911 test-generic-sharing-managed: test-runner.exe $(TESTS_GSHARED) $(TESTSAOT_GSHARED)
1912 $(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)
1915 test-generic-sharing:
1917 test-generic-sharing:
1918 @if test x$(M) != x0; then $(MAKE) test-generic-sharing-managed; else $(MAKE) test-generic-sharing-normal; fi
1921 EXTRA_DIST += async-exceptions.cs
1922 async-exceptions.exe : async-exceptions.cs
1923 $(MCS) -out:async-exceptions.exe $(srcdir)/async-exceptions.cs
1924 test-async-exceptions : async-exceptions.exe
1925 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
1926 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
1928 EXTRA_DIST += modules.cs modules-m1.cs
1929 modules-m1.netmodule: modules-m1.cs
1930 $(MCS) -out:$@ /target:module $(srcdir)/modules-m1.cs
1931 modules.exe: modules.cs modules-m1.netmodule $(TEST_DRIVER_DEPEND)
1932 $(MCS) -out:$@ /addmodule:modules-m1.netmodule -r:TestDriver.dll $(srcdir)/modules.cs
1934 # Useful if mono is compiled with --enable-shared=no
1936 cp "../../libtool" .
1937 sed -e 's,build_libtool_libs=no,build_libtool_libs=yes,g' libtool > 2; mv 2 libtool
1938 sed -e 's,LIBTOOL =,LIBTOOL2 =,g' Makefile > 2 && echo "LIBTOOL = bash ./libtool" > 1 && cat 1 2 > Makefile
1945 EXTRA_DIST += threadpool-in-processexit.cs threadpool-in-processexit.exe.stdout.expected
1947 @$(MCS) $(srcdir)/threadpool-in-processexit.cs -out:threadpool-in-processexit.exe
1948 @echo "Testing threadpool-in-processexit.exe..."
1949 @$(RUNTIME) threadpool-in-processexit.exe > threadpool-in-processexit.exe.stdout
1950 @diff -w threadpool-in-processexit.exe.stdout $(srcdir)/threadpool-in-processexit.exe.stdout.expected
1953 # tests that expect a 1 exit code
1954 TESTS_UNHANDLED_EXCEPTION_1_SRC = \
1955 unhandled-exception-1.cs
1957 # tests that expect a 255 exit code
1958 TESTS_UNHANDLED_EXCEPTION_255_SRC = \
1959 unhandled-exception-2.cs \
1960 unhandled-exception-3.cs \
1961 unhandled-exception-4.cs \
1962 unhandled-exception-5.cs \
1963 unhandled-exception-6.cs \
1964 unhandled-exception-7.cs \
1965 unhandled-exception-8.cs
1967 TESTS_UNHANDLED_EXCEPTION_1=$(filter-out $(DISABLED_TESTS),$(TESTS_UNHANDLED_EXCEPTION_1_SRC:.cs=.exe))
1968 TESTS_UNHANDLED_EXCEPTION_255=$(filter-out $(DISABLED_TESTS),$(TESTS_UNHANDLED_EXCEPTION_255_SRC:.cs=.exe))
1971 TESTSAOT_UNHANDLED_EXCEPTION_1=$(TESTS_UNHANDLED_EXCEPTION_1:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1972 TESTSAOT_UNHANDLED_EXCEPTION_255=$(TESTS_UNHANDLED_EXCEPTION_255:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1976 TESTSAOT_UNHANDLED_EXCEPTION_1=$(TESTS_UNHANDLED_EXCEPTION_1:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1977 TESTSAOT_UNHANDLED_EXCEPTION_255=$(TESTS_UNHANDLED_EXCEPTION_255:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1980 test-unhandled-exception-2: $(TESTS_UNHANDLED_EXCEPTION_1) $(TESTS_UNHANDLED_EXCEPTION_255) $(TESTSAOT_UNHANDLED_EXCEPTION_1) $(TESTSAOT_UNHANDLED_EXCEPTION_255)
1982 $(MAKE) test-unhandled-exception-2-1-with-managed-handler || ok=false; \
1983 $(MAKE) test-unhandled-exception-2-1-without-managed-handler || ok=false; \
1984 $(MAKE) test-unhandled-exception-2-255-with-managed-handler || ok=false; \
1985 $(MAKE) test-unhandled-exception-2-255-without-managed-handler || ok=false; \
1988 test-unhandled-exception-2-1-with-managed-handler: $(TESTS_UNHANDLED_EXCEPTION_1) $(TESTSAOT_UNHANDLED_EXCEPTION_1) test-runner.exe
1989 $(TOOLS_RUNTIME) $(TEST_RUNNER) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 1 $(TESTS_UNHANDLED_EXCEPTION_1)
1990 test-unhandled-exception-2-1-without-managed-handler: $(TESTS_UNHANDLED_EXCEPTION_1) $(TESTSAOT_UNHANDLED_EXCEPTION_1) test-runner.exe
1991 TEST_UNHANDLED_EXCEPTION_HANDLER=1 $(TOOLS_RUNTIME) $(TEST_RUNNER) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 1 $(TESTS_UNHANDLED_EXCEPTION_1)
1992 test-unhandled-exception-2-255-with-managed-handler: $(TESTS_UNHANDLED_EXCEPTION_255) $(TESTSAOT_UNHANDLED_EXCEPTION_255) test-runner.exe
1993 $(TOOLS_RUNTIME) $(TEST_RUNNER) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 255 $(TESTS_UNHANDLED_EXCEPTION_255)
1994 test-unhandled-exception-2-255-without-managed-handler: $(TESTS_UNHANDLED_EXCEPTION_255) $(TESTSAOT_UNHANDLED_EXCEPTION_255) test-runner.exe
1995 TEST_UNHANDLED_EXCEPTION_HANDLER=1 $(TOOLS_RUNTIME) $(TEST_RUNNER) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 255 $(TESTS_UNHANDLED_EXCEPTION_255)
1997 EXTRA_DIST += appdomain-loader.cs appdomain-tester.cs
2000 test-appdomain-unload:
2002 appdomain-loader.exe: appdomain-tester.exe
2004 test-appdomain-unload: appdomain-loader.exe appdomain-tester.exe
2005 $(RUNTIME) -O=gshared appdomain-loader.exe > appdomain-loader.exe.1.stdout || exit 1;
2006 $(RUNTIME) appdomain-loader.exe > appdomain-loader.exe.2.stdout || exit 1;
2007 MONO_DEBUG_ASSEMBLY_UNLOAD=1 $(RUNTIME) -O=gshared appdomain-loader.exe > appdomain-loader.exe.3.stdout || exit 1;
2008 MONO_DEBUG_ASSEMBLY_UNLOAD=1 $(RUNTIME) appdomain-loader.exe > appdomain-loader.exe.4.stdout || exit 1;
2011 EXTRA_DIST += console-output.cs console-output.exe.stderr.expected console-output.exe.stdout.expected
2012 test-console-output: console-output.exe
2013 @$(RUNTIME) console-output.exe 1>console-output.exe.stdout
2014 @$(RUNTIME) console-output.exe 2>console-output.exe.stderr
2015 @diff -w console-output.exe.stdout $(srcdir)/console-output.exe.stdout.expected \
2016 && diff -w console-output.exe.stderr $(srcdir)/console-output.exe.stderr.expected
2018 test-pedump: test-runner.exe
2019 $(with_mono_path) $(mono_build_root)/tools/pedump/pedump --verify error test-runner.exe
2021 .PHONY: test-gac-loading
2023 runtest-gac-loading: test-runner.exe
2024 $(MAKE) -C testing_gac runtest
2026 compile-gac-loading:
2027 $(MAKE) -C testing_gac compile-tests
2029 TESTS_STRESS_PROCESS_SRC= \
2030 process-stress-1.cs \
2031 process-stress-2.cs \
2032 process-stress-3.cs \
2035 TESTS_STRESS_PROCESS=$(filter-out $(DISABLED_TESTS),$(TESTS_STRESS_PROCESS_SRC:.cs=.exe))
2038 TESTSAOT_STRESS_PROCESS=$(TESTS_STRESS_PROCESS:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2042 TESTSAOT_STRESS_PROCESS=$(TESTS_STRESS_PROCESS:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2045 test-process-stress: $(TESTS_STRESS_PROCESS) $(TESTSAOT_STRESS_PROCESS) test-runner.exe
2046 $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 600 $(TESTS_STRESS_PROCESS)
2049 $(MAKE) -C $(mono_build_root)/acceptance-tests coreclr-gcstress
2051 # Tests for the Mono lldb plugin
2052 EXTRA_DIST += test_lldb.py test-lldb.cs
2053 test-lldb: test-lldb.exe
2054 python test_lldb.py $(JITTEST_PROG)
2056 noinst_LTLIBRARIES = libtest.la
2058 AM_CPPFLAGS = $(GLIB_CFLAGS)
2061 # gcc-3.4.4 emits incorrect code when making indirect calls to stdcall functions using a tail call
2062 # This shows up when compiling mono_test_marshal_delegate ()
2063 libtest_la_CFLAGS=-fno-optimize-sibling-calls
2064 # the exported names created by gcc for stdcall functions are missing the leading _, so MS.NET
2065 # can't find them. So we use --kill-at to remove the @ suffix as well.
2066 libtest_la_LDFLAGS=-no-undefined -rpath `pwd` -Wl,--kill-at
2068 libtest_la_LDFLAGS = -rpath `pwd`
2070 libtest_la_SOURCES = libtest.c
2071 libtest_la_LIBADD = $(GLIB_LIBS) $(LIBICONV)
2073 CLEANFILES = $(TESTS_CS) $(TESTS_IL) $(TESTS_BENCH) $(TESTS_STRESS) $(TESTSAOT_CS) $(TESTSAOT_IL) $(TESTSAOT_BENCH) $(TESTSAOT_STRESS) *.dll *.stdout *.aotlog *.exe stest.dat