1 SUBDIRS = cas 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 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_SHARED_DIR=$(mono_build_root)/runtime MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(TEST_PROG)
17 JITTEST_PROG_RUN = MONO_SHARED_DIR=$(mono_build_root)/runtime MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(JITTEST_PROG)
19 RUNTIME_ARGS=--config tests-config --optimize=all --debug
21 with_mono_path = MONO_PATH=$(mcs_topdir)/class/lib/net_4_5
23 RUNTIME = $(with_mono_path) $(top_builddir)/runtime/mono-wrapper
26 PKG_CONFIG_PATH=$(top_builddir):$(PKG_CONFIG_PATH) \
27 $(RUNTIME) $(mcs_topdir)/class/lib/net_4_5/mkbundle.exe
29 MCS = $(RUNTIME) $(mcs_topdir)/class/lib/build/mcs.exe -unsafe -debug \
30 -nowarn:0162 -nowarn:0168 -nowarn:0219 -nowarn:0414 -nowarn:0618 \
31 -nowarn:0169 -nowarn:1690 -nowarn:0649 -nowarn:0612 -nowarn:3021 \
33 ILASM = $(RUNTIME) $(mcs_topdir)/class/lib/net_4_5/ilasm.exe
35 BENCHSRC=fib.cs random.cs nested-loops.cs ackermann.cs tight-loop.cs sieve.cs
47 gc-graystack-stress.cs \
50 assembly-load-stress.cs
52 # Disabled until ?mcs is fixed
58 assemblyresolve_event.cs \
59 assemblyresolve_event3.cs \
92 typeload-unaligned.cs \
94 valuetype-gettype.cs \
96 static-constructor.cs \
106 invoke-string-ctors.cs \
114 assignable-tests.cs \
116 array-subtype-attr.cs \
122 newobj-valuetype.cs \
136 reflection-const-field.cs \
165 appdomain-client.cs \
166 appdomain-unload.cs \
167 appdomain-async-invoke.cs \
204 marshal-valuetypes.cs \
205 test-byval-in-struct.cs \
210 thread-static-init.cs \
221 threadpool-exceptions1.cs \
222 threadpool-exceptions2.cs \
223 threadpool-exceptions3.cs \
224 threadpool-exceptions4.cs \
225 threadpool-exceptions5.cs \
226 threadpool-exceptions6.cs \
227 threadpool-exceptions7.cs \
241 bug-Xamarin-5278.cs \
245 delegate-async-exit.cs \
246 delegate-delegate-exit.cs \
249 finalizer-exception.cs \
251 finalizer-thread.cs \
253 main-returns-abort-resetabort.cs \
254 main-returns-background-abort-resetabort.cs \
255 main-returns-background-resetabort.cs \
256 main-returns-background.cs \
257 main-returns-background-change.cs \
264 transparentproxy.cs \
267 soft-float-tests.cs \
270 assemblyresolve_event2.2.cs \
275 catch-generics.2.cs \
278 stackframes-async.2.cs \
279 module-cctor-loader.2.cs \
280 generics-invoke-byref.2.cs \
281 generic-signature-compare.2.cs \
282 generics-sharing.2.cs \
283 shared-generic-methods.2.cs \
284 shared-generic-synchronized.2.cs \
285 generic-inlining.2.cs \
286 generic-initobj.2.cs \
287 generic-delegate.2.cs \
288 generic-sizeof.2.cs \
289 generic-virtual.2.cs \
290 generic-interface-methods.2.cs \
291 generic-array-type.2.cs \
292 generic-method-patching.2.cs \
293 generic-static-methods.2.cs \
294 generic-null-call.2.cs \
295 generic-special.2.cs \
296 generic-exceptions.2.cs \
297 generic-virtual2.2.cs \
298 generic-valuetype-interface.2.cs \
299 generic-getgenericarguments.2.cs \
300 generic-type-builder.2.cs \
301 generic-synchronized.2.cs \
302 generic-delegate-ctor.2.cs \
303 generic-array-iface-set.2.cs \
304 generic-typedef.2.cs \
305 generic-marshalbyref.2.cs \
306 generic-xdomain.2.cs \
309 generic-virtual-invoke.2.cs \
311 generic-sealed-virtual.2.cs \
312 generic-system-arrays.2.cs \
313 generic-stack-traces.2.cs \
314 generic-stack-traces2.2.cs \
316 recursive-generics.2.cs \
322 dynamic-method-access.2.cs \
323 dynamic-method-finalize.2.cs \
326 ienumerator-interfaces.2.cs \
327 array-enumerator-ifaces.2.cs \
328 generic_type_definition_encoding.2.cs \
329 generic_type_definition.2.cs \
333 bug-322722_patch_bx.2.cs \
336 bug-322722_dyn_method_throw.2.cs \
342 nullable_boxing.2.cs \
343 valuetype-equals.cs \
344 custom-modifiers.2.cs \
346 test-inline-call-stack.cs \
355 bug-389886-sre-generic-interface-instances.cs \
362 generic-unloading.2.cs \
363 generic-unloading-sub.2.cs \
365 appdomain-unload-callback.cs \
371 appdomain-thread-abort.cs \
383 dynamic-method-resurrection.cs \
394 async-with-cb-throws.cs \
395 appdomain-unload-doesnot-raise-pending-events.cs \
397 assembly_append_ordering.cs \
400 allow-synchronous-major.cs \
401 unload-appdomain-on-shutdown.cs \
402 block_guard_restore_aligment_on_exit.cs \
403 thread_static_gc_layout.cs \
407 $(BASE_TEST_CS_SRC) \
408 async-exc-compilation.cs \
411 finally_block_ending_in_dead_bb.cs
414 runtime-invoke.gen.cs \
415 imt_big_iface_test.cs
418 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
420 PLATFORM_DISABLED_TESTS = finally_guard.exe
423 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
425 TEST_CS_SRC = $(BASE_TEST_CS_SRC) $(TEST_CS_SRC_GEN)
430 TEST_CS_SRC+=async-exc-compilation.cs filter-stack.cs
432 PLATFORM_DISABLED_TESTS=exception17.exe
433 PLATFORM_DISABLED_TESTS+=winx64structs.exe
439 PLATFORM_DISABLED_TESTS=async-exc-compilation.exe finally_guard.exe finally_block_ending_in_dead_bb.exe \
440 bug-18026.exe monitor.exe threadpool-exceptions5.exe
447 PLATFORM_DISABLED_TESTS=finalizer-abort.exe finalizer-exception.exe finalizer-exit.exe
451 PLATFORM_DISABLED_TESTS=filter-stack.exe
455 # monitor.exe is racy
456 PLATFORM_DISABLED_TESTS=filter-stack.exe monitor.exe
460 PLATFORM_DISABLED_TESTS=dynamic-method-resurrection.exe
461 #PLATFORM_DISABLED_TESTS=dynamic-method-resurrection.exe exception17.exe
465 # Tests that use Thread.Abort()
466 PLATFORM_DISABLED_TESTS= abort-stress-1.exe \
469 appdomain-thread-abort.exe \
470 async-exc-compilation.exe \
473 finalizer-abort.exe \
475 finally_block_ending_in_dead_bb.exe \
476 main-returns-abort-resetabort.exe \
477 main-returns-background-abort-resetabort.exe \
479 threadpool-exceptions5.exe \
480 threadpool-exceptions6.exe
482 # Tests that rely on AppDomain.Unload
483 PLATFORM_DISABLED_TESTS+= appdomain-async-invoke.exe \
485 appdomain-unload-callback.exe \
486 appdomain-unload.exe \
488 generic-unloading.2.exe \
491 threadpool-exceptions7.exe \
494 # pinvoke2 attaches a thread to the runtime, but
495 # doesn't 'unattach' it and it hangs in GC on exit
496 PLATFORM_DISABLED_TESTS+= pinvoke2.exe
498 # Tests that currently hang waiting for non-main threads
499 # to exit in NaCl, need to investigate. Most are AppDomain
500 # creation and Delegate tests.
501 PLATFORM_DISABLED_TESTS+= appdomain1.exe \
503 marshal-valuetypes.exe \
505 stackframes-async.2.exe \
506 generic-marshalbyref.2.exe \
507 generic-xdomain.2.exe \
510 # Tests that fail trying to write files (appdomain create mostly)
511 PLATFORM_DISABLED_TESTS+= bug-335131.2.exe \
516 # FIXME: don't know why delegate2.exe fails, it shouldn't
517 PLATFORM_DISABLED_TESTS+= delegate2.exe
519 # These tests newly fail with the latest revision. pinvoke3 fails because
520 # of a thread attach, the others have not been investigated. TODO revisit.
521 PLATFORM_DISABLED_TESTS+= pinvoke3.exe \
523 async-with-cb-throws.exe \
524 appdomain-unload-doesnot-raise-pending-events.exe \
525 gsharing-valuetype-layout.exe
528 # FIXME: There are problems with async callbacks and results on NaCl 32-bit
529 PLATFORM_DISABLED_TESTS+= delegate1.exe \
535 threadpool-exceptions3.exe \
540 # FIXME: These tests hang/fail for unknown reasons, deal with exiting
541 PLATFORM_DISABLED_TESTS+= main-returns-background-resetabort.exe \
542 main-returns-background.exe \
543 main-returns-background-change.exe
548 # The two finalizer tests only work under sgen
549 # gc-altstack.exe fails under boehm because it has no support for altstack
550 # bug-459094.exe creates an extremely deep directory tree
551 # delegate-invoke.exe depends on 929c6bc9b6d76a273f251e6f5dfacac36e9c38bd which was
554 delegate-async-exception.exe \
557 delegate-invoke.exe \
558 $(PLATFORM_DISABLED_TESTS) \
559 $(EXTRA_DISABLED_TESTS)
561 DISABLED_TESTS_WRENCH= \
563 $(PLATFORM_DISABLED_TESTS_WRENCH) \
564 main-returns-background-resetabort.exe \
565 main-returns-background-abort-resetabort.exe \
567 assemblyresolve_event3.exe \
571 generic-xdomain.2.exe
573 AOT_DISABLED_TESTS=constraints-load.exe
575 # These only compile with MS CSC
594 static-fields-nonconst.il \
595 reload-at-bb-end.il \
596 test-enum-indstoreil.il \
603 call_missing_method.il \
604 call_missing_class.il \
605 ldfld_missing_field.il \
606 ldfld_missing_class.il \
613 ldtoken_with_byref_typespec.2.il \
614 resolve_method_bug.2.il \
615 resolve_field_bug.2.il \
616 resolve_type_bug.2.il \
617 generics-sharing-other-exc.2.il \
619 generic-mkrefany.2.il \
620 generic-refanyval.2.il \
621 generic-ldtoken.2.il \
622 generic-ldtoken-method.2.il \
623 generic-ldtoken-field.2.il \
624 generic-tailcall.2.il \
625 generic-tailcall2.2.il \
626 generic-array-exc.2.il \
627 generic-valuetype-newobj2.2.il \
628 generic-valuetype-newobj.2.il \
629 generic-constrained.2.il \
630 generic-type-load-exception.2.il \
637 constraints-load.il \
638 array_load_exception.il \
640 interface-with-static-method.il \
643 delegate-with-null-target.il \
645 gsharing-valuetype-layout.il \
646 invalid_generic_instantiation.il
649 # pre-requisite test sources: files that are not test themselves
650 # but that need to be compiled
651 PREREQ_IL_SRC=event-il.il module-cctor.il
653 PREREQ_IL_DLL_SRC=event-il.il module-cctor.il
656 PREREQSI_IL=$(PREREQ_IL_SRC:.il=.exe)
657 PREREQSI_CS=$(PREREQ_CS_SRC:.cs=.exe)
658 TESTSI_CS=$(TEST_CS_SRC:.cs=.exe)
659 TESTSI_IL=$(TEST_IL_SRC:.il=.exe)
660 TESTBS=$(BENCHSRC:.cs=.exe)
661 STRESS_TESTS=$(STRESS_TESTS_SRC:.cs=.exe)
663 EXTRA_DIST=test-driver $(TEST_CS_SRC_DIST) $(TEST_IL_SRC) \
664 $(BENCHSRC) $(STRESS_TESTS_SRC) stress-runner.pl $(PREREQ_IL_SRC) $(PREREQ_CS_SRC)
669 %.exe: %.cs TestDriver.dll
670 $(MCS) -r:TestDriver.dll -out:$@ $<
672 # mkbundle works on ppc, but the pkg-config POC doesn't when run with make test
676 # Can't use mkbundle on win32 since there is no static build there
677 # Can't run test-unhandled-exception on Windows because of all the debug popups...
681 # mkbundle uses the installed mono-2.pc so it won't work if there is no system mono
682 #test_platform: testbundle test-iomap-regression
683 test_platform: test-iomap-regression
690 test_platform: test-eglib-remap
694 # Target to precompile the test executables
695 tests: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS) $(GSHARED_TESTS)
698 # Test that no symbols are missed in eglib-remap.h
700 OK_G_SYMBOLS='g_list\|g_slist\|g_concat_dir_and_file\|g_Ctoc'
705 @echo "Testing eglib remap..."
706 @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
710 # Tests that the internals in mono/io-layer/messages.c are ok by triggering the
711 # code that checks that the table is properly sorted
719 test-messages: w32message.exe
721 $(with_mono_path) $(JITTEST_PROG_RUN) w32message.exe >& w32message.allout && cmp test_messages.zero w32message.allout
726 test-sgen : sgen-tests
732 test-sgen : sgen-tests
736 test-sgen : sgen-tests
739 test-sgen : sgen-regular-tests
745 # Precompile the test assemblies in parallel
747 $(MAKE) -j4 $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
749 # Remove empty .stdout and .stderr files for wrench
751 @echo "Removing empty logs..."
752 @find . '(' -name "*.stdout" -o -name "*.stderr" ')' -empty -exec rm {} \;
754 assemblyresolve/test/asm.dll:
755 $(MAKE) -C assemblyresolve prereq
758 $(MCS) -target:library -out:$@ $(srcdir)/../mini/TestDriver.cs
760 test_cs: $(TEST_PROG) $(TESTSI_CS) libtest.la
763 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
764 if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
765 for i in $(TESTSI_CS); do \
766 if $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i "$${disabled_tests}" "$${dump_action}" $(RUNTIME_ARGS); \
768 passed=`expr $${passed} + 1`; \
770 if [ $$? = 2 ]; then break; fi; \
771 failed=`expr $${failed} + 1`; \
774 echo; echo ".cs: $${passed} test(s) passed. $${failed} test(s) did not pass."; echo
776 test_il: $(TEST_PROG) $(TESTSI_IL) libtest.la
779 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
780 if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
781 for i in $(TESTSI_IL); do \
782 if $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i "$${disabled_tests}" "$${dump_action}" $(RUNTIME_ARGS); \
784 passed=`expr $${passed} + 1`; \
786 if [ $$? = 2 ]; then break; fi; \
787 failed=`expr $${failed} + 1`; \
790 echo; echo ".il: $${passed} test(s) passed. $${failed} test(s) did not pass."; echo
792 testb: $(TEST_PROG) $(TESTBS)
793 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
794 if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
795 for i in $(TESTBS); do \
796 $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i "$${disabled_tests}" "$${dump_action}" $(RUNTIME_ARGS); \
799 runtest: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
803 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
804 if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
805 rm -f testlist testlist.sorted; \
806 for i in $(TESTSI_CS) $(TESTBS) $(TESTSI_IL); do echo $${i} >> testlist; sort testlist > testlist.sorted; done; \
807 for i in `cat testlist.sorted`; do \
809 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; \
810 if $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_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`; \
816 failed_tests="$${failed_tests} $$i"; \
819 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
820 rm -f testlist testlist.sorted; \
821 if [ $${failed} != 0 ]; then \
822 echo -e "\nFailed tests:\n"; \
823 for i in $${failed_tests}; do \
825 if [ "x$$V" = "x1" ]; then \
833 runtest-managed: test-runner.exe $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
834 @if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
835 $(RUNTIME) ./test-runner.exe -j a --disabled "$${disabled_tests}" $(TESTSI_CS) $(TESTBS) $(TESTSI_IL)
838 @if test x$(M) != x; then $(MAKE) runtest-managed; else $(MAKE) runtest; fi
841 @$(MAKE) AOT=1 runtest
844 @$(MAKE) RUNTIME_ARGS="$${RUNTIME_ARGS} --trace" runtest
847 @$(MAKE) JITTEST_PROG_RUN="$(TEST_PROG_RUN)" runtest
849 testjitspeed: $(JITTEST_PROG) $(TESTBS)
850 for i in $(TESTBS); do \
852 time $(JITTEST_PROG) $$i; \
855 test-iomap-regression: exists.cs
856 @$(MCS) $(srcdir)/exists.cs -out:exists.exe
857 @echo "Testing exists.exe..."
858 @MONO_IOMAP=all $(RUNTIME) exists.exe
860 stresstest: $(STRESS_TESTS)
864 for i in $(STRESS_TESTS); do \
865 if $(srcdir)/stress-runner.pl $$i ../mini/mono $(RUNTIME_ARGS); \
867 passed=`expr $${passed} + 1`; \
869 if [ $$? = 2 ]; then break; fi; \
870 failed=`expr $${failed} + 1`; \
871 failed_tests="$${failed_tests} $$i"; \
874 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
875 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
876 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
878 testbundle: console.exe
879 @echo "Testing mkbundle..."
880 @$(MKBUNDLE) --static console.exe > mkbundle.stdout
881 @$(with_mono_path) MONO_CFG_DIR=$(mono_cfg_dir) MONO_SHARED_DIR=$(mono_build_root)/runtime ./a.out >> mkbundle.stdout
884 EXTRA_DIST += load-missing.il t-missing.cs load-exceptions.cs
885 test-type-load: TestDriver.dll
886 @$(ILASM) /dll /output:load-missing.dll $(srcdir)/load-missing.il > /dev/null
887 @$(MCS) -t:library -out:t.dll -d:FOUND $(srcdir)/t-missing.cs
888 @$(MCS) -r:TestDriver.dll -r:load-missing.dll -r:t.dll -out:load-exceptions.exe $(srcdir)/load-exceptions.cs
889 @$(MCS) -t:library -out:t.dll $(srcdir)/t-missing.cs
890 @echo "Testing load-exception.exe..."
891 @$(RUNTIME) load-exceptions.exe > load-exceptions.exe.stdout 2> load-exceptions.exe.stderr
893 EXTRA_DIST += custom-attr-errors.cs custom-attr-errors-lib.cs
894 test-cattr-type-load: TestDriver.dll custom-attr-errors.cs custom-attr-errors-lib.cs
895 $(MCS) -D:WITH_MEMBERS /t:library $(srcdir)/custom-attr-errors-lib.cs
896 $(MCS) -r:TestDriver.dll -r:custom-attr-errors-lib.dll $(srcdir)/custom-attr-errors.cs
897 $(MCS) /t:library $(srcdir)/custom-attr-errors-lib.cs
898 @echo "Testing custom-attribute-load-exceptions.exe..."
899 @$(RUNTIME) custom-attr-errors.exe > custom-attr-errors.exe.stdout 2> custom-attr-errors.exe.stderr
901 EXTRA_DIST += reflection-load-with-context-lib.cs reflection-load-with-context-second-lib.cs reflection-load-with-context.cs
902 test-reflection-load-with-context: TestDriver.dll reflection-load-with-context-lib.cs reflection-load-with-context-second-lib.cs reflection-load-with-context.cs
903 rm -rf reflection-load-dir
904 mkdir reflection-load-dir
905 $(MCS) /t:library $(srcdir)/reflection-load-with-context-second-lib.cs -out:reflection-load-dir/reflection-load-with-context-second-lib.dll
906 $(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
907 $(MCS) reflection-load-with-context.cs
908 @echo "Testing reflection-load-with-context.cs.exe..."
909 @$(RUNTIME) reflection-load-with-context.exe > reflection-load-with-context.exe.stdout 2> reflection-load-with-context.exe.stderr
912 EXTRA_DIST += debug-casts.cs
913 # This depends on TLS, so its not ran by default
915 @$(MCS) -r:TestDriver.dll $(srcdir)/debug-casts.cs
916 @$(RUNTIME) --debug=casts debug-casts.exe
918 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
921 #those are actually configurations, eg plain_sgen-descriptors.exe
922 #DISABLE_SGEN_TESTS =
926 critical-finalizers.exe \
927 sgen-descriptors.exe \
928 sgen-gshared-vtype.exe \
929 sgen-domain-unload.exe \
930 sgen-weakref-stress.exe \
931 sgen-cementing-stress.exe \
932 sgen-case-23400.exe \
933 sgen-new-threads-dont-join-stw.exe \
934 gc-graystack-stress.exe \
937 SGEN_CONFIGURATIONS = \
939 "major=marksweep-par|ms-par" \
940 "major=marksweep-conc|ms-conc" \
941 "major=marksweep-conc,minor=split|ms-conc-split" \
942 "minor=split|ms-split" \
943 "minor=split,alloc-ratio=95|ms-split-95" \
944 "|plain-clear-at-gc|clear-at-gc" \
945 "major=marksweep-par|ms-par-clear-at-gc|clear-at-gc" \
946 "major=marksweep-conc|ms-conc-clear-at-gc|clear-at-gc" \
947 "minor=split|ms-split-clear-at-gc|clear-at-gc"
950 #FIXME We should move to use SGEN_CONFIGURATIONS once sgen supports trailling commas or its argument list.
951 SGEN_BRIDGE_CONFIGURATIONS = \
953 ",major=marksweep-conc|ms-conc" \
954 ",minor=split|ms-split" \
955 ",bridge-implementation=new|plain-new-bridge" \
956 ",bridge-implementation=new,major=marksweep-conc|ms-conc-new-bridge" \
957 ",bridge-implementation=new,minor=split|ms-split-new-bridge"
959 sgen-regular-tests: $(SGEN_TESTS)
963 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
966 for conf in $(SGEN_CONFIGURATIONS); do \
967 name=`echo $$conf | cut -d\| -f 2`; \
968 params=`echo $$conf | cut -d\| -f 1`; \
969 debug_opt=`echo $$conf | cut -d\| -f 3`; \
970 test_name="$${test}|$${name}"; \
971 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); \
973 passed=`expr $${passed} + 1`; \
975 if [ $$? = 2 ]; then break; fi; \
976 failed=`expr $${failed} + 1`; \
977 failed_tests="$${failed_tests} $$test_name"; \
981 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
982 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
983 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
985 sgen-bridge-tests1: sgen-bridge.exe sgen-bridge-major-fragmentation.exe
989 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
992 for conf in $(SGEN_BRIDGE_CONFIGURATIONS); do \
993 name=`echo $$conf | cut -d\| -f 2`; \
994 params=`echo $$conf | cut -d\| -f 1`; \
995 test_name="$${test}|$${name}"; \
996 if MONO_GC_DEBUG="bridge=Bridge$${params}" MONO_ENV_OPTIONS="--gc=sgen" $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$test_name "$(DISABLED_TESTS_SGEN)" "$${dump_action}" $(RUNTIME_ARGS); \
998 passed=`expr $${passed} + 1`; \
1000 if [ $$? = 2 ]; then break; fi; \
1001 failed=`expr $${failed} + 1`; \
1002 failed_tests="$${failed_tests} $$test_name"; \
1006 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1007 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1008 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1010 sgen-bridge-tests2: sgen-bridge-xref.exe
1014 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
1015 for test in $+; do \
1017 for conf in $(SGEN_BRIDGE_CONFIGURATIONS); do \
1018 name=`echo $$conf | cut -d\| -f 2`; \
1019 params=`echo $$conf | cut -d\| -f 1`; \
1020 test_name="$${test}|$${name}"; \
1021 if MONO_GC_DEBUG="bridge=2Bridge$${params}" MONO_ENV_OPTIONS="--gc=sgen" $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$test_name "$(DISABLED_TESTS_SGEN)" "$${dump_action}" $(RUNTIME_ARGS); \
1023 passed=`expr $${passed} + 1`; \
1025 if [ $$? = 2 ]; then break; fi; \
1026 failed=`expr $${failed} + 1`; \
1027 failed_tests="$${failed_tests} $$test_name"; \
1031 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1032 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1033 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1035 sgen-toggleref-tests: sgen-toggleref.exe
1039 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
1040 for test in $+; do \
1042 for conf in $(SGEN_CONFIGURATIONS); do \
1043 name=`echo $$conf | cut -d\| -f 2`; \
1044 params=`echo $$conf | cut -d\| -f 1`; \
1045 test_name="$${test}|$${name}"; \
1046 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); \
1048 passed=`expr $${passed} + 1`; \
1050 if [ $$? = 2 ]; then break; fi; \
1051 failed=`expr $${failed} + 1`; \
1052 failed_tests="$${failed_tests} $$test_name"; \
1056 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1057 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1058 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1060 sgen-bridge-tests: sgen-bridge-tests1 sgen-bridge-tests2
1062 sgen-tests: sgen-regular-tests sgen-bridge-tests sgen-toggleref-tests
1064 AOT_CONFIGURATIONS= \
1068 #LLVM crashes, got to fix it first.
1070 # "--llvm --gc=boehm|llvm+boehm"
1078 tmpfile=`mktemp -t mono_aot_output` || exit 1; \
1079 rm -f test-aot-$${name}.stdout test-aot-$${name}.stderr; \
1080 for assembly in $(mcs_topdir)/class/lib/$$profile/*.dll ; do \
1081 asm_name=`basename $$assembly`; \
1082 echo "... $$asm_name"; \
1083 for conf in $(AOT_CONFIGURATIONS); do \
1084 name=`echo $$conf | cut -d\| -f 2`; \
1085 params=`echo $$conf | cut -d\| -f 1`; \
1086 test_name="$${asm_name}|$${name}"; \
1087 echo " $$test_name"; \
1088 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; \
1090 passed=`expr $${passed} + 1`; \
1092 failed=`expr $${failed} + 1`; \
1093 failed_tests="$${failed_tests} $$test_name"; \
1098 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1099 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1100 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1103 # Generated tests for runtime invoke
1104 EXTRA_DIST += gen-runtime-invoke.cs
1105 runtime-invoke.gen.exe: TestDriver.dll gen-runtime-invoke.exe
1106 $(RUNTIME) gen-runtime-invoke.exe > runtime-invoke.gen.cs
1107 $(MCS) -out:runtime-invoke.gen.exe -r:TestDriver.dll runtime-invoke.gen.cs
1109 EXTRA_DIST += make-imt-test.cs
1110 imt_big_iface_test.exe: TestDriver.dll make-imt-test.exe
1111 $(RUNTIME) make-imt-test.exe > imt_big_iface_test.cs
1112 $(MCS) -out:imt_big_iface_test.exe -r:TestDriver.dll imt_big_iface_test.cs
1114 EXTRA_DIST += test-inline-call-stack-library.cs test-inline-call-stack.cs
1115 test-inline-call-stack-library.dll: TestDriver.dll $(srcdir)/test-inline-call-stack-library.cs
1116 $(MCS) -t:library -out:test-inline-call-stack-library.dll $(srcdir)/test-inline-call-stack-library.cs
1117 test-inline-call-stack.exe: TestDriver.dll test-inline-call-stack-library.dll $(srcdir)/test-inline-call-stack.cs
1118 $(MCS) -r:TestDriver.dll -r:test-inline-call-stack-library.dll -out:test-inline-call-stack.exe $(srcdir)/test-inline-call-stack.cs
1120 EXTRA_DIST += unhandled-exception-base-configuration.config
1121 EXTRA_DIST += unhandled-exception-legacy-configuration.config
1122 EXTRA_DIST += appdomain-unload.exe.config
1123 EXTRA_DIST += unhandled-exception-test-case.2.cs
1124 EXTRA_DIST += unhandled-exception-test-runner.2.cs
1125 unhandled-exception-test-case.1.cs: unhandled-exception-test-case.2.cs
1126 cp unhandled-exception-test-case.2.cs unhandled-exception-test-case.1.cs
1127 unhandled-exception-test-case-legacy.1.cs: unhandled-exception-test-case.1.cs
1128 cp unhandled-exception-test-case.1.cs unhandled-exception-test-case-legacy.1.cs
1129 unhandled-exception-test-case-legacy.2.cs: unhandled-exception-test-case.2.cs
1130 cp unhandled-exception-test-case.2.cs unhandled-exception-test-case-legacy.2.cs
1131 unhandled-exception-config_files: unhandled-exception-base-configuration.config unhandled-exception-legacy-configuration.config
1132 cp unhandled-exception-base-configuration.config unhandled-exception-test-case.1.exe.config
1133 cp unhandled-exception-base-configuration.config unhandled-exception-test-case.2.exe.config
1134 cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.1.exe.config
1135 cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.2.exe.config
1136 unhandled-exception-test-case.1.exe: unhandled-exception-test-case.1.cs
1137 $(MCS) /debug unhandled-exception-test-case.1.cs
1138 unhandled-exception-test-case-legacy.1.exe: unhandled-exception-test-case-legacy.1.cs
1139 $(MCS) /debug unhandled-exception-test-case-legacy.1.cs
1140 unhandled-exception-test-case.2.exe: unhandled-exception-test-case.2.cs
1141 $(MCS) /debug unhandled-exception-test-case.2.cs
1142 unhandled-exception-test-case-legacy.2.exe: unhandled-exception-test-case-legacy.2.cs
1143 $(MCS) /debug unhandled-exception-test-case-legacy.2.cs
1144 unhandled-exception-test-runner.2.exe: unhandled-exception-test-runner.2.cs
1145 $(MCS) /debug unhandled-exception-test-runner.2.cs
1147 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
1148 $(RUNTIME) unhandled-exception-test-runner.2.exe RUNTIME:../mini/mono,GTC:F
1150 # We use 'test-support-files' to handle an ordering issue between the 'mono/' and 'runtime/' directories
1151 bug-80307.exe: $(srcdir)/bug-80307.cs
1152 $(MCS) -r:System.Web -out:$@ $(srcdir)/bug-80307.cs
1153 cd $(top_builddir)/runtime && $(MAKE) test-support-files
1155 EXTRA_DIST += bug-81673-interface.cs
1156 bug-81673.exe bug-81673-interface.dll: $(srcdir)/bug-81673.cs $(srcdir)/bug-81673-interface.cs
1157 $(MCS) -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
1158 $(MCS) -out:bug-81673.exe -r:bug-81673-interface.dll $(srcdir)/bug-81673.cs
1159 $(MCS) -define:WITH_STOP -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
1161 EXTRA_DIST += bug-81691-a.cs bug-81691-b.cs
1162 bug-81691.exe bug-81691-b.dll: $(srcdir)/bug-81691.cs $(srcdir)/bug-81691-a.cs $(srcdir)/bug-81691-b.cs
1163 $(MCS) -target:library -out:bug-81691-a.dll $(srcdir)/bug-81691-a.cs
1164 $(MCS) -target:library -out:bug-81691-b.dll -r:bug-81691-a.dll $(srcdir)/bug-81691-b.cs
1165 $(MCS) -r:bug-81691-b.dll -out:bug-81691.exe $(srcdir)/bug-81691.cs
1166 rm -f bug-81691-a.dll
1167 bug-81691.exe: bug-81691-b.dll
1169 EXTRA_DIST += bug-81466-lib.il
1170 bug-81466-lib.dll: bug-81466-lib.il
1171 $(ILASM) /dll /output:bug-81466-lib.dll $(srcdir)/bug-81466-lib.il
1172 bug-81466.exe: bug-81466.il bug-81466-lib.dll
1173 $(ILASM) /exe /output:bug-81466.exe $(srcdir)/bug-81466.il
1175 EXTRA_DIST += bug-324535-il.il
1176 bug-324535-il.dll : bug-324535-il.il
1177 $(ILASM) /dll /output:bug-324535-il.dll $(srcdir)/bug-324535-il.il
1178 bug-324535.exe : bug-324535.cs bug-324535-il.dll
1179 $(MCS) -r:bug-324535-il.dll -out:bug-324535.exe $(srcdir)/bug-324535.cs
1181 EXTRA_DIST += custom-modifiers.2.cs custom-modifiers-lib.il
1182 custom-modifiers-lib.dll: custom-modifiers-lib.il
1183 $(ILASM) /dll /output:custom-modifiers-lib.dll $(srcdir)/custom-modifiers-lib.il
1184 custom-modifiers.2.exe: custom-modifiers.2.cs custom-modifiers-lib.dll
1185 $(MCS) -r:custom-modifiers-lib.dll -out:custom-modifiers.2.exe $(srcdir)/custom-modifiers.2.cs
1187 EXTRA_DIST += bug-382986-lib.cs
1188 bug-382986-lib.dll: bug-382986-lib.cs
1189 $(MCS) -target:library -out:$@ $(srcdir)/bug-382986-lib.cs
1190 bug-382986.exe: bug-382986.cs bug-382986-lib.dll
1191 $(MCS) -out:$@ -r:bug-382986-lib.dll $(srcdir)/bug-382986.cs
1193 EXTRA_DIST += coreclr-security.cs
1195 coreclr-security.exe : coreclr-security.cs
1196 $(SMCS) -out:coreclr-security.exe $(srcdir)/coreclr-security.cs
1198 test-coreclr-security : coreclr-security.exe
1199 @echo "Testing coreclr-security.exe..."
1200 @$(RUNTIME_MOONLIGHT) --security=core-clr-test coreclr-security.exe
1202 EXTRA_DIST += generic-unboxing.2.il
1203 generic-unboxing.2.dll : generic-unboxing.2.il
1204 $(ILASM) /dll /output:generic-unboxing.2.dll $(srcdir)/generic-unboxing.2.il
1206 EXTRA_DIST += generic-boxing.2.il
1207 generic-boxing.2.dll : generic-boxing.2.il generic-unboxing.2.dll
1208 $(ILASM) /dll /output:generic-boxing.2.dll $(srcdir)/generic-boxing.2.il
1210 EXTRA_DIST += generic-unbox.2.cs
1211 generic-unbox.2.exe : generic-unbox.2.cs generic-unboxing.2.dll
1212 $(MCS) -r:generic-unboxing.2.dll -out:$@ $(srcdir)/generic-unbox.2.cs
1214 EXTRA_DIST += generic-box.2.cs
1215 generic-box.2.exe : generic-box.2.cs generic-unboxing.2.dll generic-boxing.2.dll
1216 $(MCS) -r:generic-unboxing.2.dll,generic-boxing.2.dll -out:$@ $(srcdir)/generic-box.2.cs
1218 EXTRA_DIST += generic-delegate2.2.cs generic-delegate2-lib.2.il
1219 generic-delegate2-lib.2.dll : generic-delegate2-lib.2.il
1220 $(ILASM) /dll /output:$@ $(srcdir)/generic-delegate2-lib.2.il
1221 generic-delegate2.2.exe : generic-delegate2.2.cs generic-delegate2-lib.2.dll
1222 $(MCS) -r:generic-delegate2-lib.2.dll -out:$@ $(srcdir)/generic-delegate2.2.cs
1224 bug-3903.exe: bug-3903.cs
1225 $(MCS) -sdk:2 $(srcdir)/bug-3903.cs -out:$@
1227 gshared: test-generic-sharing
1230 @$(MAKE) AOT=1 gshared
1233 generics-sharing.2.exe shared-generic-methods.2.exe \
1234 shared-generic-synchronized.2.exe generic-initobj.2.exe \
1235 generics-sharing-other-exc.2.exe generic-box.2.exe \
1236 generic-unbox.2.exe generic-delegate.2.exe generic-sizeof.2.exe \
1237 generic-ldobj.2.exe generic-mkrefany.2.exe \
1238 generic-refanyval.2.exe generic-ldtoken.2.exe \
1239 generic-ldtoken-method.2.exe generic-ldtoken-field.2.exe \
1240 generic-virtual.2.exe generic-tailcall.2.exe \
1241 generic-interface-methods.2.exe generic-array-type.2.exe \
1242 generic-method-patching.2.exe generic-static-methods.2.exe \
1243 generic-null-call.2.exe generic-tailcall2.2.exe \
1244 generic-array-exc.2.exe generic-special.2.exe \
1245 generic-exceptions.2.exe generic-delegate2.2.exe \
1246 generic-virtual2.2.exe generic-valuetype-interface.2.exe \
1247 generic-valuetype-newobj.2.exe generic-valuetype-newobj2.2.exe \
1248 generic-getgenericarguments.2.exe generic-type-builder.2.exe \
1249 generic-synchronized.2.exe generic-delegate-ctor.2.exe \
1250 generic-constrained.2.exe bug-431413.2.exe \
1251 generic-virtual-invoke.2.exe generic-typedef.2.exe \
1252 generic-marshalbyref.2.exe bug-459285.2.exe bug-461198.2.exe \
1253 generic-sealed-virtual.2.exe generic-system-arrays.2.exe \
1254 generic-stack-traces.2.exe generic-stack-traces2.2.exe \
1255 bug-472600.2.exe bug-473482.2.exe bug-473999.2.exe \
1257 generic-type-load-exception.2.exe bug-616463.exe \
1260 test-generic-sharing-normal: $(GSHARED_TESTS)
1261 @for fn in $+ ; do \
1262 echo "Testing $$fn ..."; \
1263 MONO_GENERIC_SHARING=all $(RUNTIME) -O=gshared $$fn > $$fn.stdout || exit 1; \
1264 MONO_GENERIC_SHARING=all $(RUNTIME) -O=gshared,shared $$fn > $$fn.stdout || exit 1; \
1265 MONO_GENERIC_SHARING=all $(RUNTIME) -O=gshared,-inline $$fn > $$fn.stdout || exit 1; \
1266 MONO_GENERIC_SHARING=all $(RUNTIME) -O=gshared,-inline,shared $$fn > $fn.stdout || exit 1; \
1267 if [ x$(AOT) = x1 ]; then MONO_GENERIC_SHARING=all $(with_mono_path) $(JITTEST_PROG_RUN) --aot --debug $$fn > /dev/null || exit 1; MONO_GENERIC_SHARING=all $(RUNTIME) $$fn > $$fn.stdout || exit 1; fi; \
1270 test-generic-sharing-managed: test-runner.exe $(GSHARED_TESTS)
1271 @$(RUNTIME) ./test-runner.exe -j a --opt-sets "gshared gshared,shared gshared,-inline gshared,-inline,shared" $(GSHARED_TESTS)
1274 test-generic-sharing:
1276 test-generic-sharing:
1277 @if test x$(M) != x; then $(MAKE) test-generic-sharing-managed; else $(MAKE) test-generic-sharing-normal; fi
1280 EXTRA_DIST += async-exceptions.cs
1281 async-exceptions.exe : async-exceptions.cs
1282 $(MCS) -out:async-exceptions.exe $(srcdir)/async-exceptions.cs
1283 test-async-exceptions : async-exceptions.exe
1284 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
1285 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
1287 EXTRA_DIST += modules.cs modules-m1.cs
1288 modules-m1.netmodule: modules-m1.cs
1289 $(MCS) -out:$@ /target:module $(srcdir)/modules-m1.cs
1290 modules.exe: modules.cs modules-m1.netmodule TestDriver.dll
1291 $(MCS) -out:$@ /addmodule:modules-m1.netmodule -r:TestDriver.dll $(srcdir)/modules.cs
1293 # Useful if mono is compiled with --enable-shared=no
1295 cp "../../libtool" .
1296 sed -e 's,build_libtool_libs=no,build_libtool_libs=yes,g' libtool > 2; mv 2 libtool
1297 sed -e 's,LIBTOOL =,LIBTOOL2 =,g' Makefile > 2 && echo "LIBTOOL = bash ./libtool" > 1 && cat 1 2 > Makefile
1304 EXTRA_DIST += bug-438454.cs bug-438454.exe.stdout.expected threadpool-in-processexit.cs threadpool-in-processexit.exe.stdout.expected
1306 @$(MCS) $(srcdir)/bug-438454.cs -out:bug-438454.exe
1307 @echo "Testing bug-438454.exe..."
1308 @$(RUNTIME) bug-438454.exe > bug-438454.exe.stdout
1309 @diff -w bug-438454.exe.stdout $(srcdir)/bug-438454.exe.stdout.expected
1310 @$(MCS) $(srcdir)/threadpool-in-processexit.cs -out:threadpool-in-processexit.exe
1311 @echo "Testing threadpool-in-processexit.exe..."
1312 @$(RUNTIME) threadpool-in-processexit.exe > threadpool-in-processexit.exe.stdout
1313 @diff -w threadpool-in-processexit.exe.stdout $(srcdir)/threadpool-in-processexit.exe.stdout.expected
1317 gc-oom-handling.exe \
1318 gc-oom-handling2.exe
1321 test-oom: $(OOM_TESTS)
1322 @for fn in $+ ; do \
1323 echo "Testing $$fn ..."; \
1324 MONO_GC_PARAMS=max-heap-size=16m,major=marksweep-par MONO_ENV_OPTIONS="--gc=sgen" $(RUNTIME) $$fn > $$fn.stdout || exit 1; \
1325 MONO_GC_PARAMS=max-heap-size=16m MONO_ENV_OPTIONS="--gc=sgen" $(RUNTIME) $$fn > $$fn.stdout || exit 1; \
1326 MONO_GC_PARAMS=max-heap-size=16m $(RUNTIME) $$fn > $$fn.stdout || exit 1; \
1330 noinst_LTLIBRARIES = libtest.la
1332 AM_CPPFLAGS = $(GLIB_CFLAGS) $(GMODULE_CFLAGS)
1335 # gcc-3.4.4 emits incorrect code when making indirect calls to stdcall functions using a tail call
1336 # This shows up when compiling mono_test_marshal_delegate ()
1337 libtest_la_CFLAGS=-fno-optimize-sibling-calls
1338 # the exported names created by gcc for stdcall functions are missing the leading _, so MS.NET
1339 # can't find them. So we use --kill-at to remove the @ suffix as well.
1340 libtest_la_LDFLAGS=-no-undefined -rpath `pwd` -Wl,--kill-at
1342 libtest_la_LDFLAGS = -rpath `pwd`
1344 libtest_la_SOURCES = libtest.c
1345 libtest_la_LIBADD = $(GLIB_LIBS) $(LIBICONV)
1347 CLEANFILES = $(TESTSI_CS) $(TESTSI_IL) $(STRESS_TESTS) *.dll *.stdout *.aotlog *.exe stest.dat