1 SUBDIRS = assemblyresolve gc-descriptors
3 check-local: assemblyresolve/test/asm.dll testjit test-generic-sharing test-type-load test-cattr-type-load test-reflection-load-with-context test_platform test-process-exit test-messages test-unhandled-exception-2 rm-empty-logs
4 check-full: test-sgen check-local
5 check-parallel: compile-tests check-full
7 # for backwards compatibility on Wrench
8 test-wrench: check-parallel
10 aotcheck: testaot gshared-aot
12 TEST_PROG = ../interpreter/mint
14 JITTEST_PROG = $(if $(VALGRIND), valgrind $(VALGRIND_ARGS),) $(if $(SGEN),$(top_builddir)/mono/mini/mono-sgen,$(top_builddir)/mono/mini/mono)
16 TEST_PROG_RUN = MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(TEST_PROG)
17 JITTEST_PROG_RUN = MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(JITTEST_PROG)
19 RUNTIME_ARGS=--config tests-config --optimize=all --debug
21 CLASS=$(mcs_topdir)/class/lib/$(DEFAULT_PROFILE)
23 with_mono_path = MONO_PATH=$(CLASS)
25 RUNTIME = $(with_mono_path) $(top_builddir)/runtime/mono-wrapper
28 PKG_CONFIG_PATH=$(top_builddir):$(PKG_CONFIG_PATH) \
29 $(RUNTIME) $(CLASS)/mkbundle.exe
31 MCS = $(RUNTIME) $(mcs_topdir)/class/lib/build/mcs.exe -unsafe -debug \
32 -nowarn:0162 -nowarn:0168 -nowarn:0219 -nowarn:0414 -nowarn:0618 \
33 -nowarn:0169 -nowarn:1690 -nowarn:0649 -nowarn:0612 -nowarn:3021 \
35 ILASM = $(RUNTIME) $(CLASS)/ilasm.exe
37 BENCHSRC=fib.cs random.cs nested-loops.cs ackermann.cs tight-loop.cs sieve.cs
49 gc-graystack-stress.cs \
52 assembly-load-stress.cs
54 # Disabled until ?mcs is fixed
60 assemblyresolve_event.cs \
61 assemblyresolve_event3.cs \
62 assemblyresolve_event4.cs \
96 typeload-unaligned.cs \
98 valuetype-gettype.cs \
100 static-constructor.cs \
110 invoke-string-ctors.cs \
119 assignable-tests.cs \
121 array-subtype-attr.cs \
127 newobj-valuetype.cs \
141 reflection-const-field.cs \
171 appdomain-client.cs \
172 appdomain-unload.cs \
173 appdomain-async-invoke.cs \
213 marshal-valuetypes.cs \
214 test-byval-in-struct.cs \
219 thread-static-init.cs \
231 threadpool-exceptions1.cs \
232 threadpool-exceptions2.cs \
233 threadpool-exceptions3.cs \
234 threadpool-exceptions4.cs \
235 threadpool-exceptions5.cs \
236 threadpool-exceptions6.cs \
237 threadpool-exceptions7.cs \
251 bug-Xamarin-5278.cs \
255 delegate-async-exit.cs \
256 delegate-delegate-exit.cs \
259 finalizer-exception.cs \
261 finalizer-thread.cs \
263 main-returns-abort-resetabort.cs \
264 main-returns-background-abort-resetabort.cs \
265 main-returns-background-resetabort.cs \
266 main-returns-background.cs \
267 main-returns-background-change.cs \
274 transparentproxy.cs \
277 soft-float-tests.cs \
280 assemblyresolve_event2.2.cs \
285 catch-generics.2.cs \
288 stackframes-async.2.cs \
289 module-cctor-loader.2.cs \
290 generics-invoke-byref.2.cs \
291 generic-signature-compare.2.cs \
292 generics-sharing.2.cs \
293 shared-generic-methods.2.cs \
294 shared-generic-synchronized.2.cs \
295 generic-inlining.2.cs \
296 generic-initobj.2.cs \
297 generic-delegate.2.cs \
298 generic-sizeof.2.cs \
299 generic-virtual.2.cs \
300 generic-interface-methods.2.cs \
301 generic-array-type.2.cs \
302 generic-method-patching.2.cs \
303 generic-static-methods.2.cs \
304 generic-null-call.2.cs \
305 generic-special.2.cs \
306 generic-exceptions.2.cs \
307 generic-virtual2.2.cs \
308 generic-valuetype-interface.2.cs \
309 generic-getgenericarguments.2.cs \
310 generic-type-builder.2.cs \
311 generic-synchronized.2.cs \
312 generic-delegate-ctor.2.cs \
313 generic-array-iface-set.2.cs \
314 generic-typedef.2.cs \
315 generic-marshalbyref.2.cs \
316 generic-xdomain.2.cs \
317 dynamic-generic-size.cs \
320 generic-virtual-invoke.2.cs \
322 generic-sealed-virtual.2.cs \
323 generic-system-arrays.2.cs \
324 generic-stack-traces.2.cs \
325 generic-stack-traces2.2.cs \
327 recursive-generics.2.cs \
333 dynamic-method-access.2.cs \
334 dynamic-method-finalize.2.cs \
335 dynamic-method-stack-traces.cs \
338 ienumerator-interfaces.2.cs \
339 array-enumerator-ifaces.2.cs \
340 generic_type_definition_encoding.2.cs \
341 generic_type_definition.2.cs \
345 bug-322722_patch_bx.2.cs \
348 bug-322722_dyn_method_throw.2.cs \
354 nullable_boxing.2.cs \
355 valuetype-equals.cs \
356 custom-modifiers.2.cs \
358 test-inline-call-stack.cs \
367 bug-389886-sre-generic-interface-instances.cs \
374 generic-unloading.2.cs \
375 generic-unloading-sub.2.cs \
377 appdomain-unload-callback.cs \
383 appdomain-thread-abort.cs \
395 monitor-resurrection.cs \
396 dynamic-method-resurrection.cs \
407 async-with-cb-throws.cs \
408 appdomain-unload-doesnot-raise-pending-events.cs \
410 assembly_append_ordering.cs \
413 allow-synchronous-major.cs \
414 unload-appdomain-on-shutdown.cs \
415 block_guard_restore_aligment_on_exit.cs \
416 thread_static_gc_layout.cs \
428 $(BASE_TEST_CS_SRC) \
429 async-exc-compilation.cs \
432 finally_block_ending_in_dead_bb.cs
435 runtime-invoke.gen.cs \
436 imt_big_iface_test.cs
439 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
441 PLATFORM_DISABLED_TESTS = finally_guard.exe
444 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
446 TEST_CS_SRC = $(BASE_TEST_CS_SRC) $(TEST_CS_SRC_GEN)
451 TEST_CS_SRC+=async-exc-compilation.cs filter-stack.cs
453 PLATFORM_DISABLED_TESTS=exception17.exe
454 PLATFORM_DISABLED_TESTS+=winx64structs.exe
460 PLATFORM_DISABLED_TESTS=async-exc-compilation.exe finally_guard.exe finally_block_ending_in_dead_bb.exe \
461 bug-18026.exe monitor.exe threadpool-exceptions5.exe
468 PLATFORM_DISABLED_TESTS=finalizer-abort.exe finalizer-exception.exe finalizer-exit.exe
472 # FIXME: These tests hang/fail for unknown reasons
473 PLATFORM_DISABLED_TESTS=monitor.exe threadpool-exceptions5.exe
477 PLATFORM_DISABLED_TESTS=filter-stack.exe
481 # monitor.exe is racy
482 PLATFORM_DISABLED_TESTS=filter-stack.exe monitor.exe
486 PLATFORM_DISABLED_TESTS=dynamic-method-resurrection.exe
487 #PLATFORM_DISABLED_TESTS=dynamic-method-resurrection.exe exception17.exe
491 # Tests that use Thread.Abort()
492 PLATFORM_DISABLED_TESTS= abort-stress-1.exe \
495 appdomain-thread-abort.exe \
496 async-exc-compilation.exe \
499 finalizer-abort.exe \
501 finally_block_ending_in_dead_bb.exe \
502 main-returns-abort-resetabort.exe \
503 main-returns-background-abort-resetabort.exe \
505 threadpool-exceptions5.exe \
506 threadpool-exceptions6.exe
508 # Tests that rely on AppDomain.Unload
509 PLATFORM_DISABLED_TESTS+= appdomain-async-invoke.exe \
511 appdomain-unload-callback.exe \
512 appdomain-unload.exe \
514 generic-unloading.2.exe \
517 threadpool-exceptions7.exe \
520 # pinvoke2 attaches a thread to the runtime, but
521 # doesn't 'unattach' it and it hangs in GC on exit
522 PLATFORM_DISABLED_TESTS+= pinvoke2.exe
524 # Tests that currently hang waiting for non-main threads
525 # to exit in NaCl, need to investigate. Most are AppDomain
526 # creation and Delegate tests.
527 PLATFORM_DISABLED_TESTS+= appdomain1.exe \
529 marshal-valuetypes.exe \
531 stackframes-async.2.exe \
532 generic-marshalbyref.2.exe \
533 generic-xdomain.2.exe \
536 # Tests that fail trying to write files (appdomain create mostly)
537 PLATFORM_DISABLED_TESTS+= bug-335131.2.exe \
542 # FIXME: don't know why delegate2.exe fails, it shouldn't
543 PLATFORM_DISABLED_TESTS+= delegate2.exe
545 # These tests newly fail with the latest revision. pinvoke3 fails because
546 # of a thread attach, the others have not been investigated. TODO revisit.
547 PLATFORM_DISABLED_TESTS+= pinvoke3.exe \
549 async-with-cb-throws.exe \
550 appdomain-unload-doesnot-raise-pending-events.exe \
551 gsharing-valuetype-layout.exe
554 # FIXME: There are problems with async callbacks and results on NaCl 32-bit
555 PLATFORM_DISABLED_TESTS+= delegate1.exe \
561 threadpool-exceptions3.exe \
566 # FIXME: These tests hang/fail for unknown reasons, deal with exiting
567 PLATFORM_DISABLED_TESTS+= main-returns-background-resetabort.exe \
568 main-returns-background.exe \
569 main-returns-background-change.exe
574 # The two finalizer tests only work under sgen
575 # gc-altstack.exe fails under boehm because it has no support for altstack
576 # bug-459094.exe creates an extremely deep directory tree
577 # delegate-invoke.exe depends on 929c6bc9b6d76a273f251e6f5dfacac36e9c38bd which was
579 # bug-Xamarin-5278.exe got broken by 5d26590e79da139a284459299aee95c25f4cd835
581 delegate-async-exception.exe \
584 delegate-invoke.exe \
585 bug-Xamarin-5278.exe \
586 $(PLATFORM_DISABLED_TESTS) \
587 $(EXTRA_DISABLED_TESTS)
589 DISABLED_TESTS_WRENCH= \
591 $(PLATFORM_DISABLED_TESTS_WRENCH) \
592 main-returns-background-resetabort.exe \
593 main-returns-background-abort-resetabort.exe \
595 assemblyresolve_event3.exe \
599 generic-xdomain.2.exe
601 AOT_DISABLED_TESTS=constraints-load.exe
603 # These only compile with MS CSC
622 static-fields-nonconst.il \
623 reload-at-bb-end.il \
624 test-enum-indstoreil.il \
631 call_missing_method.il \
632 call_missing_class.il \
633 ldfld_missing_field.il \
634 ldfld_missing_class.il \
641 ldtoken_with_byref_typespec.2.il \
642 resolve_method_bug.2.il \
643 resolve_field_bug.2.il \
644 resolve_type_bug.2.il \
645 generics-sharing-other-exc.2.il \
647 generic-mkrefany.2.il \
648 generic-refanyval.2.il \
649 generic-ldtoken.2.il \
650 generic-ldtoken-method.2.il \
651 generic-ldtoken-field.2.il \
652 generic-tailcall.2.il \
653 generic-tailcall2.2.il \
654 generic-array-exc.2.il \
655 generic-valuetype-newobj2.2.il \
656 generic-valuetype-newobj.2.il \
657 generic-constrained.2.il \
658 generic-type-load-exception.2.il \
665 constraints-load.il \
666 array_load_exception.il \
668 interface-with-static-method.il \
671 delegate-with-null-target.il \
673 gsharing-valuetype-layout.il \
674 invalid_generic_instantiation.il
677 # pre-requisite test sources: files that are not test themselves
678 # but that need to be compiled
679 PREREQ_IL_SRC=event-il.il module-cctor.il
681 PREREQ_IL_DLL_SRC=event-il.il module-cctor.il
684 PREREQSI_IL=$(PREREQ_IL_SRC:.il=.exe)
685 PREREQSI_CS=$(PREREQ_CS_SRC:.cs=.exe)
686 TESTSI_CS=$(TEST_CS_SRC:.cs=.exe)
687 TESTSI_IL=$(TEST_IL_SRC:.il=.exe)
688 TESTBS=$(BENCHSRC:.cs=.exe)
689 STRESS_TESTS=$(STRESS_TESTS_SRC:.cs=.exe)
691 EXTRA_DIST=test-driver test-runner.cs $(TEST_CS_SRC_DIST) $(TEST_IL_SRC) \
692 $(BENCHSRC) $(STRESS_TESTS_SRC) stress-runner.pl $(PREREQ_IL_SRC) $(PREREQ_CS_SRC)
697 %.exe: %.cs TestDriver.dll
698 $(MCS) -r:TestDriver.dll -out:$@ $<
700 # mkbundle works on ppc, but the pkg-config POC doesn't when run with make test
704 # Can't use mkbundle on win32 since there is no static build there
705 # Can't run test-unhandled-exception on Windows because of all the debug popups...
709 # mkbundle uses the installed mono-2.pc so it won't work if there is no system mono
710 #test_platform: testbundle test-iomap-regression
711 test_platform: test-iomap-regression
718 test_platform: test-eglib-remap
722 # Target to precompile the test executables
723 tests: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS) $(GSHARED_TESTS)
726 # Test that no symbols are missed in eglib-remap.h
728 OK_G_SYMBOLS='g_list\|g_slist\|g_concat_dir_and_file\|g_Ctoc\'
733 @echo "Testing eglib remap..."
734 @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
738 # Tests that the internals in mono/io-layer/messages.c are ok by triggering the
739 # code that checks that the table is properly sorted
747 test-messages: w32message.exe
749 $(with_mono_path) $(JITTEST_PROG_RUN) w32message.exe > w32message.allout 2>&1 && cmp test_messages.zero w32message.allout
754 test-sgen : sgen-tests
760 test-sgen : sgen-tests
764 test-sgen : sgen-tests
767 test-sgen : sgen-regular-tests
773 # Precompile the test assemblies in parallel
775 $(MAKE) -j4 $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
777 # Remove empty .stdout and .stderr files for wrench
779 @echo "Removing empty logs..."
780 @find . '(' -name "*.stdout" -o -name "*.stderr" ')' -empty -exec rm {} \;
782 assemblyresolve/test/asm.dll:
783 $(MAKE) -C assemblyresolve prereq
786 $(MCS) -target:library -out:$@ $(srcdir)/../mini/TestDriver.cs
788 test_cs: $(TEST_PROG) $(TESTSI_CS) libtest.la
791 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
792 if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
793 for i in $(TESTSI_CS); do \
794 if $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i "$${disabled_tests}" "$${dump_action}" $(RUNTIME_ARGS); \
796 passed=`expr $${passed} + 1`; \
798 if [ $$? = 2 ]; then break; fi; \
799 failed=`expr $${failed} + 1`; \
802 echo; echo ".cs: $${passed} test(s) passed. $${failed} test(s) did not pass."; echo
804 test_il: $(TEST_PROG) $(TESTSI_IL) libtest.la
807 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
808 if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
809 for i in $(TESTSI_IL); do \
810 if $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i "$${disabled_tests}" "$${dump_action}" $(RUNTIME_ARGS); \
812 passed=`expr $${passed} + 1`; \
814 if [ $$? = 2 ]; then break; fi; \
815 failed=`expr $${failed} + 1`; \
818 echo; echo ".il: $${passed} test(s) passed. $${failed} test(s) did not pass."; echo
820 testb: $(TEST_PROG) $(TESTBS)
821 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
822 if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
823 for i in $(TESTBS); do \
824 $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i "$${disabled_tests}" "$${dump_action}" $(RUNTIME_ARGS); \
827 runtest: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
831 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
832 if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
833 rm -f testlist testlist.sorted; \
834 for i in $(TESTSI_CS) $(TESTBS) $(TESTSI_IL); do echo $${i} >> testlist; sort testlist > testlist.sorted; done; \
835 for i in `cat testlist.sorted`; do \
837 if [ x$(AOT) = x1 ]; then if echo $(AOT_DISABLED_TESTS) | grep -v -q $${i}; then $(with_mono_path) $(JITTEST_PROG_RUN) --aot --debug $${i} > $${i}.aotlog 2>&1 || exit 1; fi; fi; \
838 if $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$i "$${disabled_tests}" "$${dump_action}" $(RUNTIME_ARGS); \
840 passed=`expr $${passed} + 1`; \
842 if [ $$? = 2 ]; then break; fi; \
843 failed=`expr $${failed} + 1`; \
844 failed_tests="$${failed_tests} $$i"; \
847 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
848 rm -f testlist testlist.sorted; \
849 if [ $${failed} != 0 ]; then \
850 echo -e "\nFailed tests:\n"; \
851 for i in $${failed_tests}; do \
853 if [ "x$$V" = "x1" ]; then \
861 runtest-managed: test-runner.exe $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
862 @if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
863 $(RUNTIME) ./test-runner.exe -j a --disabled "$${disabled_tests}" $(TESTSI_CS) $(TESTBS) $(TESTSI_IL)
865 runtest-managed-serial: test-runner.exe $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
866 @if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
867 $(RUNTIME) ./test-runner.exe -j 1 --disabled "$${disabled_tests}" $(TESTSI_CS) $(TESTBS) $(TESTSI_IL)
870 @if test x$(M) != x0; then $(MAKE) runtest-managed; else $(MAKE) runtest; fi
873 @$(MAKE) AOT=1 runtest
876 @$(MAKE) RUNTIME_ARGS="$${RUNTIME_ARGS} --trace" runtest
879 @$(MAKE) JITTEST_PROG_RUN="$(TEST_PROG_RUN)" runtest
881 testjitspeed: $(JITTEST_PROG) $(TESTBS)
882 for i in $(TESTBS); do \
884 time $(JITTEST_PROG) $$i; \
887 test-iomap-regression: exists.cs
888 @$(MCS) $(srcdir)/exists.cs -out:exists.exe
889 @echo "Testing exists.exe..."
890 @MONO_IOMAP=all $(RUNTIME) exists.exe
892 stresstest: $(STRESS_TESTS)
896 for i in $(STRESS_TESTS); do \
897 if $(srcdir)/stress-runner.pl $$i ../mini/mono $(RUNTIME_ARGS); \
899 passed=`expr $${passed} + 1`; \
901 if [ $$? = 2 ]; then break; fi; \
902 failed=`expr $${failed} + 1`; \
903 failed_tests="$${failed_tests} $$i"; \
906 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
907 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
908 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
910 testbundle: console.exe
911 @echo "Testing mkbundle..."
912 @$(MKBUNDLE) --static console.exe > mkbundle.stdout
913 @$(with_mono_path) MONO_CFG_DIR=$(mono_cfg_dir) ./a.out >> mkbundle.stdout
916 EXTRA_DIST += load-missing.il t-missing.cs load-exceptions.cs
917 test-type-load: TestDriver.dll
918 @$(ILASM) /dll /output:load-missing.dll $(srcdir)/load-missing.il > /dev/null
919 @$(MCS) -t:library -out:t.dll -d:FOUND $(srcdir)/t-missing.cs
920 @$(MCS) -r:TestDriver.dll -r:load-missing.dll -r:t.dll -out:load-exceptions.exe $(srcdir)/load-exceptions.cs
921 @$(MCS) -t:library -out:t.dll $(srcdir)/t-missing.cs
922 @echo "Testing load-exception.exe..."
923 @$(RUNTIME) load-exceptions.exe > load-exceptions.exe.stdout 2> load-exceptions.exe.stderr
925 EXTRA_DIST += custom-attr-errors.cs custom-attr-errors-lib.cs
926 test-cattr-type-load: TestDriver.dll custom-attr-errors.cs custom-attr-errors-lib.cs
927 $(MCS) -D:WITH_MEMBERS /t:library $(srcdir)/custom-attr-errors-lib.cs
928 $(MCS) -r:TestDriver.dll -r:custom-attr-errors-lib.dll $(srcdir)/custom-attr-errors.cs
929 $(MCS) /t:library $(srcdir)/custom-attr-errors-lib.cs
930 @echo "Testing custom-attribute-load-exceptions.exe..."
931 @$(RUNTIME) custom-attr-errors.exe > custom-attr-errors.exe.stdout 2> custom-attr-errors.exe.stderr
933 EXTRA_DIST += reflection-load-with-context-lib.cs reflection-load-with-context-second-lib.cs reflection-load-with-context.cs
934 test-reflection-load-with-context: reflection-load-with-context-lib.cs reflection-load-with-context-second-lib.cs reflection-load-with-context.exe
935 rm -rf reflection-load-dir
936 mkdir reflection-load-dir
937 $(MCS) /t:library $(srcdir)/reflection-load-with-context-second-lib.cs -out:reflection-load-dir/reflection-load-with-context-second-lib.dll
938 $(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
939 @echo "Testing reflection-load-with-context.cs.exe..."
940 @$(RUNTIME) reflection-load-with-context.exe > reflection-load-with-context.exe.stdout 2> reflection-load-with-context.exe.stderr
943 EXTRA_DIST += debug-casts.cs
944 # This depends on TLS, so its not ran by default
946 @$(MCS) -r:TestDriver.dll $(srcdir)/debug-casts.cs
947 @$(RUNTIME) --debug=casts debug-casts.exe
949 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-bridge-xref.cs bug-17590.cs sgen-toggleref.cs
952 #those are actually configurations, eg plain_sgen-descriptors.exe
953 #DISABLE_SGEN_TESTS =
957 critical-finalizers.exe \
958 sgen-descriptors.exe \
959 sgen-gshared-vtype.exe \
960 sgen-domain-unload.exe \
961 sgen-domain-unload-2.exe \
962 sgen-weakref-stress.exe \
963 sgen-cementing-stress.exe \
964 sgen-case-23400.exe \
965 sgen-new-threads-dont-join-stw.exe \
966 gc-graystack-stress.exe \
969 SGEN_CONFIGURATIONS = \
971 "major=marksweep-conc|ms-conc" \
972 "major=marksweep-conc,minor=split|ms-conc-split" \
973 "minor=split|ms-split" \
974 "minor=split,alloc-ratio=95|ms-split-95" \
975 "|plain-clear-at-gc|clear-at-gc" \
976 "major=marksweep-conc|ms-conc-clear-at-gc|clear-at-gc" \
977 "minor=split|ms-split-clear-at-gc|clear-at-gc"
980 #FIXME We should move to use SGEN_CONFIGURATIONS once sgen supports trailling commas or its argument list.
981 SGEN_BRIDGE_CONFIGURATIONS = \
983 ",major=marksweep-conc|ms-conc" \
984 "minor=split|ms-split" \
985 "bridge-implementation=new|plain-new-bridge" \
986 "bridge-implementation=new,major=marksweep-conc|ms-conc-new-bridge" \
987 "bridge-implementation=new,minor=split|ms-split-new-bridge" \
988 "bridge-implementation=tarjan|plain-tarjan-bridge" \
989 "bridge-implementation=tarjan,minor=split|ms-split-tarjan-bridge"
991 sgen-regular-tests: $(SGEN_TESTS)
995 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
998 for conf in $(SGEN_CONFIGURATIONS); do \
999 name=`echo $$conf | cut -d\| -f 2`; \
1000 params=`echo $$conf | cut -d\| -f 1`; \
1001 debug_opt=`echo $$conf | cut -d\| -f 3`; \
1002 test_name="$${test}|$${name}"; \
1003 if MONO_GC_PARAMS="$$params" MONO_ENV_OPTIONS="--gc=sgen" MONO_GC_DEBUG="$$debug_opt" $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$test_name "$(DISABLED_TESTS_SGEN)" "$${dump_action}" $(RUNTIME_ARGS); \
1005 passed=`expr $${passed} + 1`; \
1007 if [ $$? = 2 ]; then break; fi; \
1008 failed=`expr $${failed} + 1`; \
1009 failed_tests="$${failed_tests} $$test_name"; \
1013 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1014 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1015 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1017 sgen-bridge-tests1: sgen-bridge.exe sgen-bridge-major-fragmentation.exe
1021 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
1022 for test in $+; do \
1024 for conf in $(SGEN_BRIDGE_CONFIGURATIONS); do \
1025 name=`echo $$conf | cut -d\| -f 2`; \
1026 params=`echo $$conf | cut -d\| -f 1`; \
1027 test_name="$${test}|$${name}"; \
1028 if MONO_GC_DEBUG="bridge=Bridge" MONO_GC_PARAMS="$${params}" MONO_ENV_OPTIONS="--gc=sgen" $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$test_name "$(DISABLED_TESTS_SGEN)" "$${dump_action}" $(RUNTIME_ARGS); \
1030 passed=`expr $${passed} + 1`; \
1032 if [ $$? = 2 ]; then break; fi; \
1033 failed=`expr $${failed} + 1`; \
1034 failed_tests="$${failed_tests} $$test_name"; \
1038 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1039 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1040 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1042 sgen-bridge-tests2: sgen-bridge-xref.exe
1046 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
1047 for test in $+; do \
1049 for conf in $(SGEN_BRIDGE_CONFIGURATIONS); do \
1050 name=`echo $$conf | cut -d\| -f 2`; \
1051 params=`echo $$conf | cut -d\| -f 1`; \
1052 test_name="$${test}|$${name}"; \
1053 if MONO_GC_DEBUG="bridge=2Bridge" MONO_GC_PARAMS="$${params}" MONO_ENV_OPTIONS="--gc=sgen" $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$test_name "$(DISABLED_TESTS_SGEN)" "$${dump_action}" $(RUNTIME_ARGS); \
1055 passed=`expr $${passed} + 1`; \
1057 if [ $$? = 2 ]; then break; fi; \
1058 failed=`expr $${failed} + 1`; \
1059 failed_tests="$${failed_tests} $$test_name"; \
1063 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1064 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1065 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1067 sgen-toggleref-tests: sgen-toggleref.exe
1071 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
1072 for test in $+; do \
1074 for conf in $(SGEN_CONFIGURATIONS); do \
1075 name=`echo $$conf | cut -d\| -f 2`; \
1076 params=`echo $$conf | cut -d\| -f 1`; \
1077 test_name="$${test}|$${name}"; \
1078 if MONO_GC_PARAMS="toggleref-test,$$params" MONO_ENV_OPTIONS="--gc=sgen" $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$test_name "$(DISABLED_TESTS_SGEN)" "$${dump_action}" $(RUNTIME_ARGS); \
1080 passed=`expr $${passed} + 1`; \
1082 if [ $$? = 2 ]; then break; fi; \
1083 failed=`expr $${failed} + 1`; \
1084 failed_tests="$${failed_tests} $$test_name"; \
1088 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1089 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1090 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1092 sgen-bridge-tests: sgen-bridge-tests1 sgen-bridge-tests2
1094 sgen-tests: sgen-regular-tests sgen-bridge-tests sgen-toggleref-tests
1096 AOT_CONFIGURATIONS= \
1100 #LLVM crashes, got to fix it first.
1102 # "--llvm --gc=boehm|llvm+boehm"
1109 profile=$(DEFAULT_PROFILE); \
1110 tmpfile=`mktemp -t mono_aot_output` || exit 1; \
1111 rm -f test-aot-$${name}.stdout test-aot-$${name}.stderr; \
1112 for assembly in $(mcs_topdir)/class/lib/$$profile/*.dll ; do \
1113 asm_name=`basename $$assembly`; \
1114 echo "... $$asm_name"; \
1115 for conf in $(AOT_CONFIGURATIONS); do \
1116 name=`echo $$conf | cut -d\| -f 2`; \
1117 params=`echo $$conf | cut -d\| -f 1`; \
1118 test_name="$${asm_name}|$${name}"; \
1119 echo " $$test_name"; \
1120 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; \
1122 passed=`expr $${passed} + 1`; \
1124 failed=`expr $${failed} + 1`; \
1125 failed_tests="$${failed_tests} $$test_name"; \
1130 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1131 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1132 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1135 # Generated tests for runtime invoke
1136 EXTRA_DIST += gen-runtime-invoke.cs
1137 runtime-invoke.gen.exe: TestDriver.dll gen-runtime-invoke.exe
1138 $(RUNTIME) gen-runtime-invoke.exe > runtime-invoke.gen.cs
1139 $(MCS) -out:runtime-invoke.gen.exe -r:TestDriver.dll runtime-invoke.gen.cs
1141 EXTRA_DIST += make-imt-test.cs
1142 imt_big_iface_test.exe: TestDriver.dll make-imt-test.exe
1143 $(RUNTIME) make-imt-test.exe > imt_big_iface_test.cs
1144 $(MCS) -out:imt_big_iface_test.exe -r:TestDriver.dll imt_big_iface_test.cs
1146 EXTRA_DIST += test-inline-call-stack-library.cs test-inline-call-stack.cs
1147 test-inline-call-stack-library.dll: TestDriver.dll $(srcdir)/test-inline-call-stack-library.cs
1148 $(MCS) -t:library -out:test-inline-call-stack-library.dll $(srcdir)/test-inline-call-stack-library.cs
1149 test-inline-call-stack.exe: TestDriver.dll test-inline-call-stack-library.dll $(srcdir)/test-inline-call-stack.cs
1150 $(MCS) -r:TestDriver.dll -r:test-inline-call-stack-library.dll -out:test-inline-call-stack.exe $(srcdir)/test-inline-call-stack.cs
1152 EXTRA_DIST += unhandled-exception-base-configuration.config
1153 EXTRA_DIST += unhandled-exception-legacy-configuration.config
1154 EXTRA_DIST += appdomain-unload.exe.config
1155 EXTRA_DIST += unhandled-exception-test-case.2.cs
1156 EXTRA_DIST += unhandled-exception-test-runner.2.cs
1157 unhandled-exception-test-case.1.cs: unhandled-exception-test-case.2.cs
1158 cp unhandled-exception-test-case.2.cs unhandled-exception-test-case.1.cs
1159 unhandled-exception-test-case-legacy.1.cs: unhandled-exception-test-case.1.cs
1160 cp unhandled-exception-test-case.1.cs unhandled-exception-test-case-legacy.1.cs
1161 unhandled-exception-test-case-legacy.2.cs: unhandled-exception-test-case.2.cs
1162 cp unhandled-exception-test-case.2.cs unhandled-exception-test-case-legacy.2.cs
1163 unhandled-exception-config_files: unhandled-exception-base-configuration.config unhandled-exception-legacy-configuration.config
1164 cp unhandled-exception-base-configuration.config unhandled-exception-test-case.1.exe.config
1165 cp unhandled-exception-base-configuration.config unhandled-exception-test-case.2.exe.config
1166 cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.1.exe.config
1167 cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.2.exe.config
1168 unhandled-exception-test-case.1.exe: unhandled-exception-test-case.1.cs
1169 $(MCS) /debug unhandled-exception-test-case.1.cs
1170 unhandled-exception-test-case-legacy.1.exe: unhandled-exception-test-case-legacy.1.cs
1171 $(MCS) /debug unhandled-exception-test-case-legacy.1.cs
1172 unhandled-exception-test-case.2.exe: unhandled-exception-test-case.2.cs
1173 $(MCS) /debug unhandled-exception-test-case.2.cs
1174 unhandled-exception-test-case-legacy.2.exe: unhandled-exception-test-case-legacy.2.cs
1175 $(MCS) /debug unhandled-exception-test-case-legacy.2.cs
1176 unhandled-exception-test-runner.2.exe: unhandled-exception-test-runner.2.cs
1177 $(MCS) /debug unhandled-exception-test-runner.2.cs
1179 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
1180 $(RUNTIME) unhandled-exception-test-runner.2.exe RUNTIME:../mini/mono,GTC:F
1182 # We use 'test-support-files' to handle an ordering issue between the 'mono/' and 'runtime/' directories
1183 bug-80307.exe: $(srcdir)/bug-80307.cs
1184 $(MCS) -r:System.Web -out:$@ $(srcdir)/bug-80307.cs
1185 cd $(top_builddir)/runtime && $(MAKE) test-support-files
1187 EXTRA_DIST += bug-81673-interface.cs
1188 bug-81673.exe bug-81673-interface.dll: $(srcdir)/bug-81673.cs $(srcdir)/bug-81673-interface.cs
1189 $(MCS) -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
1190 $(MCS) -out:bug-81673.exe -r:bug-81673-interface.dll $(srcdir)/bug-81673.cs
1191 $(MCS) -define:WITH_STOP -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
1193 EXTRA_DIST += bug-81691-a.cs bug-81691-b.cs
1194 bug-81691.exe bug-81691-b.dll: $(srcdir)/bug-81691.cs $(srcdir)/bug-81691-a.cs $(srcdir)/bug-81691-b.cs
1195 $(MCS) -target:library -out:bug-81691-a.dll $(srcdir)/bug-81691-a.cs
1196 $(MCS) -target:library -out:bug-81691-b.dll -r:bug-81691-a.dll $(srcdir)/bug-81691-b.cs
1197 $(MCS) -r:bug-81691-b.dll -out:bug-81691.exe $(srcdir)/bug-81691.cs
1198 rm -f bug-81691-a.dll
1199 bug-81691.exe: bug-81691-b.dll
1201 EXTRA_DIST += bug-81466-lib.il
1202 bug-81466-lib.dll: bug-81466-lib.il
1203 $(ILASM) /dll /output:bug-81466-lib.dll $(srcdir)/bug-81466-lib.il
1204 bug-81466.exe: bug-81466.il bug-81466-lib.dll
1205 $(ILASM) /exe /output:bug-81466.exe $(srcdir)/bug-81466.il
1207 EXTRA_DIST += bug-324535-il.il
1208 bug-324535-il.dll : bug-324535-il.il
1209 $(ILASM) /dll /output:bug-324535-il.dll $(srcdir)/bug-324535-il.il
1210 bug-324535.exe : bug-324535.cs bug-324535-il.dll
1211 $(MCS) -r:bug-324535-il.dll -out:bug-324535.exe $(srcdir)/bug-324535.cs
1213 EXTRA_DIST += custom-modifiers.2.cs custom-modifiers-lib.il
1214 custom-modifiers-lib.dll: custom-modifiers-lib.il
1215 $(ILASM) /dll /output:custom-modifiers-lib.dll $(srcdir)/custom-modifiers-lib.il
1216 custom-modifiers.2.exe: custom-modifiers.2.cs custom-modifiers-lib.dll
1217 $(MCS) -r:custom-modifiers-lib.dll -out:custom-modifiers.2.exe $(srcdir)/custom-modifiers.2.cs
1219 EXTRA_DIST += bug-382986-lib.cs
1220 bug-382986-lib.dll: bug-382986-lib.cs
1221 $(MCS) -target:library -out:$@ $(srcdir)/bug-382986-lib.cs
1222 bug-382986.exe: bug-382986.cs bug-382986-lib.dll
1223 $(MCS) -out:$@ -r:bug-382986-lib.dll $(srcdir)/bug-382986.cs
1225 EXTRA_DIST += bug-17537-helper.cs
1226 bug-17537-helper.exe: bug-17537-helper.cs
1227 $(MCS) -out:$@ $(srcdir)/bug-17537-helper.cs
1230 bug-17537.exe: bug-17537.cs bug-17537-helper.exe
1231 $(MCS) -out:$@ $(srcdir)/bug-17537.cs
1233 EXTRA_DIST += coreclr-security.cs
1235 coreclr-security.exe : coreclr-security.cs
1236 $(SMCS) -out:coreclr-security.exe $(srcdir)/coreclr-security.cs
1238 test-coreclr-security : coreclr-security.exe
1239 @echo "Testing coreclr-security.exe..."
1240 @$(RUNTIME_MOONLIGHT) --security=core-clr-test coreclr-security.exe
1242 EXTRA_DIST += generic-unboxing.2.il
1243 generic-unboxing.2.dll : generic-unboxing.2.il
1244 $(ILASM) /dll /output:generic-unboxing.2.dll $(srcdir)/generic-unboxing.2.il
1246 EXTRA_DIST += generic-boxing.2.il
1247 generic-boxing.2.dll : generic-boxing.2.il generic-unboxing.2.dll
1248 $(ILASM) /dll /output:generic-boxing.2.dll $(srcdir)/generic-boxing.2.il
1250 EXTRA_DIST += generic-unbox.2.cs
1251 generic-unbox.2.exe : generic-unbox.2.cs generic-unboxing.2.dll
1252 $(MCS) -r:generic-unboxing.2.dll -out:$@ $(srcdir)/generic-unbox.2.cs
1254 EXTRA_DIST += generic-box.2.cs
1255 generic-box.2.exe : generic-box.2.cs generic-unboxing.2.dll generic-boxing.2.dll
1256 $(MCS) -r:generic-unboxing.2.dll,generic-boxing.2.dll -out:$@ $(srcdir)/generic-box.2.cs
1258 EXTRA_DIST += generic-delegate2.2.cs generic-delegate2-lib.2.il
1259 generic-delegate2-lib.2.dll : generic-delegate2-lib.2.il
1260 $(ILASM) /dll /output:$@ $(srcdir)/generic-delegate2-lib.2.il
1261 generic-delegate2.2.exe : generic-delegate2.2.cs generic-delegate2-lib.2.dll
1262 $(MCS) -r:generic-delegate2-lib.2.dll -out:$@ $(srcdir)/generic-delegate2.2.cs
1264 bug-3903.exe: bug-3903.cs
1265 $(MCS) -sdk:2 $(srcdir)/bug-3903.cs -out:$@
1267 gshared: test-generic-sharing
1270 @$(MAKE) AOT=1 gshared
1273 generics-sharing.2.exe shared-generic-methods.2.exe \
1274 shared-generic-synchronized.2.exe generic-initobj.2.exe \
1275 generics-sharing-other-exc.2.exe generic-box.2.exe \
1276 generic-unbox.2.exe generic-delegate.2.exe generic-sizeof.2.exe \
1277 generic-ldobj.2.exe generic-mkrefany.2.exe \
1278 generic-refanyval.2.exe generic-ldtoken.2.exe \
1279 generic-ldtoken-method.2.exe generic-ldtoken-field.2.exe \
1280 generic-virtual.2.exe generic-tailcall.2.exe \
1281 generic-interface-methods.2.exe generic-array-type.2.exe \
1282 generic-method-patching.2.exe generic-static-methods.2.exe \
1283 generic-null-call.2.exe generic-tailcall2.2.exe \
1284 generic-array-exc.2.exe generic-special.2.exe \
1285 generic-exceptions.2.exe generic-delegate2.2.exe \
1286 generic-virtual2.2.exe generic-valuetype-interface.2.exe \
1287 generic-valuetype-newobj.2.exe generic-valuetype-newobj2.2.exe \
1288 generic-getgenericarguments.2.exe generic-type-builder.2.exe \
1289 generic-synchronized.2.exe generic-delegate-ctor.2.exe \
1290 generic-constrained.2.exe bug-431413.2.exe \
1291 generic-virtual-invoke.2.exe generic-typedef.2.exe \
1292 generic-marshalbyref.2.exe bug-459285.2.exe bug-461198.2.exe \
1293 generic-sealed-virtual.2.exe generic-system-arrays.2.exe \
1294 generic-stack-traces.2.exe generic-stack-traces2.2.exe \
1295 bug-472600.2.exe bug-473482.2.exe bug-473999.2.exe \
1297 generic-type-load-exception.2.exe bug-616463.exe \
1300 test-generic-sharing-normal: $(GSHARED_TESTS)
1301 @for fn in $+ ; do \
1302 echo "Testing $$fn ..."; \
1303 $(RUNTIME) -O=gshared $$fn > $$fn.stdout || exit 1; \
1304 $(RUNTIME) -O=gshared,shared $$fn > $$fn.stdout || exit 1; \
1305 $(RUNTIME) -O=gshared,-inline $$fn > $$fn.stdout || exit 1; \
1306 $(RUNTIME) -O=gshared,-inline,shared $$fn > $fn.stdout || exit 1; \
1307 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; \
1310 test-generic-sharing-managed: test-runner.exe $(GSHARED_TESTS)
1311 @$(RUNTIME) ./test-runner.exe -j a --opt-sets "gshared gshared,shared gshared,-inline gshared,-inline,shared" $(GSHARED_TESTS)
1314 test-generic-sharing:
1316 test-generic-sharing:
1317 @if test x$(M) != x0; then $(MAKE) test-generic-sharing-managed; else $(MAKE) test-generic-sharing-normal; fi
1320 EXTRA_DIST += async-exceptions.cs
1321 async-exceptions.exe : async-exceptions.cs
1322 $(MCS) -out:async-exceptions.exe $(srcdir)/async-exceptions.cs
1323 test-async-exceptions : async-exceptions.exe
1324 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
1325 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
1327 EXTRA_DIST += modules.cs modules-m1.cs
1328 modules-m1.netmodule: modules-m1.cs
1329 $(MCS) -out:$@ /target:module $(srcdir)/modules-m1.cs
1330 modules.exe: modules.cs modules-m1.netmodule TestDriver.dll
1331 $(MCS) -out:$@ /addmodule:modules-m1.netmodule -r:TestDriver.dll $(srcdir)/modules.cs
1333 # Useful if mono is compiled with --enable-shared=no
1335 cp "../../libtool" .
1336 sed -e 's,build_libtool_libs=no,build_libtool_libs=yes,g' libtool > 2; mv 2 libtool
1337 sed -e 's,LIBTOOL =,LIBTOOL2 =,g' Makefile > 2 && echo "LIBTOOL = bash ./libtool" > 1 && cat 1 2 > Makefile
1344 EXTRA_DIST += threadpool-in-processexit.cs threadpool-in-processexit.exe.stdout.expected
1346 @$(MCS) $(srcdir)/threadpool-in-processexit.cs -out:threadpool-in-processexit.exe
1347 @echo "Testing threadpool-in-processexit.exe..."
1348 @$(RUNTIME) threadpool-in-processexit.exe > threadpool-in-processexit.exe.stdout
1349 @diff -w threadpool-in-processexit.exe.stdout $(srcdir)/threadpool-in-processexit.exe.stdout.expected
1353 gc-oom-handling.exe \
1354 gc-oom-handling2.exe
1357 test-oom: $(OOM_TESTS)
1358 @for fn in $+ ; do \
1359 echo "Testing $$fn ..."; \
1360 MONO_GC_PARAMS=max-heap-size=16m MONO_ENV_OPTIONS="--gc=sgen" $(RUNTIME) $$fn > $$fn.stdout || exit 1; \
1361 MONO_GC_PARAMS=max-heap-size=16m $(RUNTIME) $$fn > $$fn.stdout || exit 1; \
1365 test-unhandled-exception-2:
1367 test-unhandled-exception-2: unhandled-exception.exe
1368 @echo "Testing unhandled-exception_1 ..."; $(RUNTIME) $+ 1 1> unhandled-exception_1.exe.stdout 2> unhandled-exception_1.exe.stderr; if test "x$$?" != "x1"; then exit 1; fi; \
1369 echo "Testing unhandled-exception_2 ..."; $(RUNTIME) $+ 2 1> unhandled-exception_2.exe.stdout 2> unhandled-exception_2.exe.stderr; if test "x$$?" != "x0"; then exit 2; fi; \
1370 echo "Testing unhandled-exception_3 ..."; $(RUNTIME) $+ 3 1> unhandled-exception_3.exe.stdout 2> unhandled-exception_3.exe.stderr; if test "x$$?" != "x0"; then exit 3; fi; \
1371 echo "Testing unhandled-exception_4 ..."; $(RUNTIME) $+ 4 1> unhandled-exception_4.exe.stdout 2> unhandled-exception_4.exe.stderr; if test "x$$?" != "x0"; then exit 4; fi; \
1372 echo "Testing unhandled-exception_5 ..."; $(RUNTIME) $+ 5 1> unhandled-exception_5.exe.stdout 2> unhandled-exception_5.exe.stderr; if test "x$$?" != "x255"; then exit 5; fi; \
1373 echo "Testing unhandled-exception_6 ..."; $(RUNTIME) $+ 6 1> unhandled-exception_6.exe.stdout 2> unhandled-exception_6.exe.stderr; if test "x$$?" != "x0"; then exit 6; fi; \
1374 echo "Testing unhandled-exception_7 ..."; $(RUNTIME) $+ 7 1> unhandled-exception_7.exe.stdout 2> unhandled-exception_7.exe.stderr; if test "x$$?" != "x0"; then exit 7; fi; \
1375 echo "Testing unhandled-exception_8 ..."; $(RUNTIME) $+ 8 1> unhandled-exception_8.exe.stdout 2> unhandled-exception_8.exe.stderr; if test "x$$?" != "x3"; then exit 8; fi
1378 noinst_LTLIBRARIES = libtest.la
1380 AM_CPPFLAGS = $(GLIB_CFLAGS)
1383 # gcc-3.4.4 emits incorrect code when making indirect calls to stdcall functions using a tail call
1384 # This shows up when compiling mono_test_marshal_delegate ()
1385 libtest_la_CFLAGS=-fno-optimize-sibling-calls
1386 # the exported names created by gcc for stdcall functions are missing the leading _, so MS.NET
1387 # can't find them. So we use --kill-at to remove the @ suffix as well.
1388 libtest_la_LDFLAGS=-no-undefined -rpath `pwd` -Wl,--kill-at
1390 libtest_la_LDFLAGS = -rpath `pwd`
1392 libtest_la_SOURCES = libtest.c
1393 libtest_la_LIBADD = $(GLIB_LIBS) $(LIBICONV)
1395 CLEANFILES = $(TESTSI_CS) $(TESTSI_IL) $(STRESS_TESTS) *.dll *.stdout *.aotlog *.exe stest.dat