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
48 assembly-load-stress.cs
50 # Disabled until ?mcs is fixed
56 assemblyresolve_event.cs \
57 assemblyresolve_event3.cs \
90 typeload-unaligned.cs \
92 valuetype-gettype.cs \
94 static-constructor.cs \
104 invoke-string-ctors.cs \
112 assignable-tests.cs \
114 array-subtype-attr.cs \
120 newobj-valuetype.cs \
134 reflection-const-field.cs \
163 appdomain-client.cs \
164 appdomain-unload.cs \
165 appdomain-async-invoke.cs \
202 marshal-valuetypes.cs \
203 test-byval-in-struct.cs \
208 thread-static-init.cs \
219 threadpool-exceptions1.cs \
220 threadpool-exceptions2.cs \
221 threadpool-exceptions3.cs \
222 threadpool-exceptions4.cs \
223 threadpool-exceptions5.cs \
224 threadpool-exceptions6.cs \
225 threadpool-exceptions7.cs \
239 bug-Xamarin-5278.cs \
243 delegate-async-exit.cs \
244 delegate-delegate-exit.cs \
247 finalizer-exception.cs \
249 finalizer-thread.cs \
251 main-returns-abort-resetabort.cs \
252 main-returns-background-abort-resetabort.cs \
253 main-returns-background-resetabort.cs \
254 main-returns-background.cs \
255 main-returns-background-change.cs \
262 transparentproxy.cs \
265 soft-float-tests.cs \
268 assemblyresolve_event2.2.cs \
273 catch-generics.2.cs \
276 stackframes-async.2.cs \
277 module-cctor-loader.2.cs \
278 generics-invoke-byref.2.cs \
279 generic-signature-compare.2.cs \
280 generics-sharing.2.cs \
281 shared-generic-methods.2.cs \
282 shared-generic-synchronized.2.cs \
283 generic-inlining.2.cs \
284 generic-initobj.2.cs \
285 generic-delegate.2.cs \
286 generic-sizeof.2.cs \
287 generic-virtual.2.cs \
288 generic-interface-methods.2.cs \
289 generic-array-type.2.cs \
290 generic-method-patching.2.cs \
291 generic-static-methods.2.cs \
292 generic-null-call.2.cs \
293 generic-special.2.cs \
294 generic-exceptions.2.cs \
295 generic-virtual2.2.cs \
296 generic-valuetype-interface.2.cs \
297 generic-getgenericarguments.2.cs \
298 generic-type-builder.2.cs \
299 generic-synchronized.2.cs \
300 generic-delegate-ctor.2.cs \
301 generic-array-iface-set.2.cs \
302 generic-typedef.2.cs \
303 generic-marshalbyref.2.cs \
304 generic-xdomain.2.cs \
307 generic-virtual-invoke.2.cs \
309 generic-sealed-virtual.2.cs \
310 generic-system-arrays.2.cs \
311 generic-stack-traces.2.cs \
312 generic-stack-traces2.2.cs \
314 recursive-generics.2.cs \
320 dynamic-method-access.2.cs \
321 dynamic-method-finalize.2.cs \
324 ienumerator-interfaces.2.cs \
325 array-enumerator-ifaces.2.cs \
326 generic_type_definition_encoding.2.cs \
327 generic_type_definition.2.cs \
331 bug-322722_patch_bx.2.cs \
334 bug-322722_dyn_method_throw.2.cs \
340 nullable_boxing.2.cs \
341 valuetype-equals.cs \
342 custom-modifiers.2.cs \
344 test-inline-call-stack.cs \
353 bug-389886-sre-generic-interface-instances.cs \
360 generic-unloading.2.cs \
361 generic-unloading-sub.2.cs \
363 appdomain-unload-callback.cs \
369 appdomain-thread-abort.cs \
381 dynamic-method-resurrection.cs \
392 async-with-cb-throws.cs \
393 appdomain-unload-doesnot-raise-pending-events.cs \
395 assembly_append_ordering.cs \
398 allow-synchronous-major.cs \
399 unload-appdomain-on-shutdown.cs \
400 block_guard_restore_aligment_on_exit.cs \
401 finally_block_ending_in_dead_bb.cs \
402 thread_static_gc_layout.cs \
406 $(BASE_TEST_CS_SRC) \
407 async-exc-compilation.cs \
412 runtime-invoke.gen.cs \
413 imt_big_iface_test.cs
416 TEST_CS_SRC = $(BASE_TEST_CS_SRC) $(TEST_CS_SRC_GEN) async-exc-compilation.cs finally_guard.cs
418 PLATFORM_DISABLED_TESTS = finally_guard.exe
421 TEST_CS_SRC = $(BASE_TEST_CS_SRC) $(TEST_CS_SRC_GEN) async-exc-compilation.cs finally_guard.cs
423 TEST_CS_SRC = $(BASE_TEST_CS_SRC) $(TEST_CS_SRC_GEN)
428 TEST_CS_SRC+=async-exc-compilation.cs filter-stack.cs
430 PLATFORM_DISABLED_TESTS=exception17.exe
431 PLATFORM_DISABLED_TESTS+=winx64structs.exe
437 PLATFORM_DISABLED_TESTS=async-exc-compilation.exe finally_guard.exe
444 PLATFORM_DISABLED_TESTS=finalizer-abort.exe finalizer-exception.exe finalizer-exit.exe
448 PLATFORM_DISABLED_TESTS=filter-stack.exe
452 # monitor.exe is racy
453 PLATFORM_DISABLED_TESTS=filter-stack.exe monitor.exe
457 PLATFORM_DISABLED_TESTS=dynamic-method-resurrection.exe
458 #PLATFORM_DISABLED_TESTS=dynamic-method-resurrection.exe exception17.exe
462 # Tests that use Thread.Abort()
463 PLATFORM_DISABLED_TESTS= abort-stress-1.exe \
466 appdomain-thread-abort.exe \
467 async-exc-compilation.exe \
470 finalizer-abort.exe \
472 main-returns-abort-resetabort.exe \
473 main-returns-background-abort-resetabort.exe \
475 threadpool-exceptions5.exe \
476 threadpool-exceptions6.exe
478 # Tests that rely on AppDomain.Unload
479 PLATFORM_DISABLED_TESTS+= appdomain-async-invoke.exe \
481 appdomain-unload-callback.exe \
482 appdomain-unload.exe \
484 generic-unloading.2.exe \
487 threadpool-exceptions7.exe \
490 # pinvoke2 attaches a thread to the runtime, but
491 # doesn't 'unattach' it and it hangs in GC on exit
492 PLATFORM_DISABLED_TESTS+= pinvoke2.exe
494 # Tests that currently hang waiting for non-main threads
495 # to exit in NaCl, need to investigate. Most are AppDomain
496 # creation and Delegate tests.
497 PLATFORM_DISABLED_TESTS+= appdomain1.exe \
499 marshal-valuetypes.exe \
501 stackframes-async.2.exe \
502 generic-marshalbyref.2.exe \
503 generic-xdomain.2.exe \
506 # Tests that fail trying to write files (appdomain create mostly)
507 PLATFORM_DISABLED_TESTS+= bug-335131.2.exe \
512 # FIXME: don't know why delegate2.exe fails, it shouldn't
513 PLATFORM_DISABLED_TESTS+= delegate2.exe
515 # These tests newly fail with the latest revision. pinvoke3 fails because
516 # of a thread attach, the others have not been investigated. TODO revisit.
517 PLATFORM_DISABLED_TESTS+= pinvoke3.exe \
519 async-with-cb-throws.exe \
520 appdomain-unload-doesnot-raise-pending-events.exe \
521 gsharing-valuetype-layout.exe
524 # FIXME: There are problems with async callbacks and results on NaCl 32-bit
525 PLATFORM_DISABLED_TESTS+= delegate1.exe \
531 threadpool-exceptions3.exe \
536 # FIXME: These tests hang/fail for unknown reasons, deal with exiting
537 PLATFORM_DISABLED_TESTS+= main-returns-background-resetabort.exe \
538 main-returns-background.exe \
539 main-returns-background-change.exe
544 # The two finalizer tests only work under sgen
545 # gc-altstack.exe fails under boehm because it has no support for altstack
546 # bug-459094.exe creates an extremely deep directory tree
547 # delegate-invoke.exe depends on 929c6bc9b6d76a273f251e6f5dfacac36e9c38bd which was
550 delegate-async-exception.exe \
553 delegate-invoke.exe \
554 $(PLATFORM_DISABLED_TESTS) \
555 $(EXTRA_DISABLED_TESTS)
557 DISABLED_TESTS_WRENCH= \
559 $(PLATFORM_DISABLED_TESTS_WRENCH) \
560 main-returns-background-resetabort.exe \
561 main-returns-background-abort-resetabort.exe \
563 assemblyresolve_event3.exe \
568 AOT_DISABLED_TESTS=constraints-load.exe
570 # These only compile with MS CSC
589 static-fields-nonconst.il \
590 reload-at-bb-end.il \
591 test-enum-indstoreil.il \
598 call_missing_method.il \
599 call_missing_class.il \
600 ldfld_missing_field.il \
601 ldfld_missing_class.il \
608 ldtoken_with_byref_typespec.2.il \
609 resolve_method_bug.2.il \
610 resolve_field_bug.2.il \
611 resolve_type_bug.2.il \
612 generics-sharing-other-exc.2.il \
614 generic-mkrefany.2.il \
615 generic-refanyval.2.il \
616 generic-ldtoken.2.il \
617 generic-ldtoken-method.2.il \
618 generic-ldtoken-field.2.il \
619 generic-tailcall.2.il \
620 generic-tailcall2.2.il \
621 generic-array-exc.2.il \
622 generic-valuetype-newobj2.2.il \
623 generic-valuetype-newobj.2.il \
624 generic-constrained.2.il \
625 generic-type-load-exception.2.il \
632 constraints-load.il \
633 array_load_exception.il \
635 interface-with-static-method.il \
638 delegate-with-null-target.il \
640 gsharing-valuetype-layout.il \
641 invalid_generic_instantiation.il
644 # pre-requisite test sources: files that are not test themselves
645 # but that need to be compiled
646 PREREQ_IL_SRC=event-il.il module-cctor.il
648 PREREQ_IL_DLL_SRC=event-il.il module-cctor.il
651 PREREQSI_IL=$(PREREQ_IL_SRC:.il=.exe)
652 PREREQSI_CS=$(PREREQ_CS_SRC:.cs=.exe)
653 TESTSI_CS=$(TEST_CS_SRC:.cs=.exe)
654 TESTSI_IL=$(TEST_IL_SRC:.il=.exe)
655 TESTBS=$(BENCHSRC:.cs=.exe)
656 STRESS_TESTS=$(STRESS_TESTS_SRC:.cs=.exe)
658 EXTRA_DIST=test-driver $(TEST_CS_SRC_DIST) $(TEST_IL_SRC) \
659 $(BENCHSRC) $(STRESS_TESTS_SRC) stress-runner.pl $(PREREQ_IL_SRC) $(PREREQ_CS_SRC)
664 %.exe: %.cs TestDriver.dll
665 $(MCS) -r:TestDriver.dll -out:$@ $<
667 # mkbundle works on ppc, but the pkg-config POC doesn't when run with make test
671 # Can't use mkbundle on win32 since there is no static build there
672 # Can't run test-unhandled-exception on Windows because of all the debug popups...
676 # mkbundle uses the installed mono-2.pc so it won't work if there is no system mono
677 #test_platform: testbundle test-iomap-regression
678 test_platform: test-iomap-regression
685 test_platform: test-eglib-remap
689 # Target to precompile the test executables
690 tests: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS) $(GSHARED_TESTS)
693 # Test that no symbols are missed in eglib-remap.h
695 OK_G_SYMBOLS='g_list\|g_slist\|g_concat_dir_and_file'
700 @echo "Testing eglib remap..."
701 @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
705 # Tests that the internals in mono/io-layer/messages.c are ok by triggering the
706 # code that checks that the table is properly sorted
714 test-messages: w32message.exe
716 $(with_mono_path) $(JITTEST_PROG_RUN) w32message.exe >& w32message.allout && cmp test_messages.zero w32message.allout
721 test-sgen : sgen-tests
727 test-sgen : sgen-tests
731 test-sgen : sgen-tests
734 test-sgen : sgen-regular-tests
740 # Precompile the test assemblies in parallel
742 $(MAKE) -j4 $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
744 # Remove empty .stdout and .stderr files for wrench
746 @echo "Removing empty logs..."
747 @find . '(' -name "*.stdout" -o -name "*.stderr" ')' -empty -exec rm {} \;
749 assemblyresolve/test/asm.dll:
750 $(MAKE) -C assemblyresolve prereq
753 $(MCS) -target:library -out:$@ $(srcdir)/../mini/TestDriver.cs
755 test_cs: $(TEST_PROG) $(TESTSI_CS) libtest.la
758 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
759 if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
760 for i in $(TESTSI_CS); do \
761 if $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i "$${disabled_tests}" "$${dump_action}" $(RUNTIME_ARGS); \
763 passed=`expr $${passed} + 1`; \
765 if [ $$? = 2 ]; then break; fi; \
766 failed=`expr $${failed} + 1`; \
769 echo; echo ".cs: $${passed} test(s) passed. $${failed} test(s) did not pass."; echo
771 test_il: $(TEST_PROG) $(TESTSI_IL) libtest.la
774 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
775 if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
776 for i in $(TESTSI_IL); do \
777 if $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i "$${disabled_tests}" "$${dump_action}" $(RUNTIME_ARGS); \
779 passed=`expr $${passed} + 1`; \
781 if [ $$? = 2 ]; then break; fi; \
782 failed=`expr $${failed} + 1`; \
785 echo; echo ".il: $${passed} test(s) passed. $${failed} test(s) did not pass."; echo
787 testb: $(TEST_PROG) $(TESTBS)
788 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
789 if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
790 for i in $(TESTBS); do \
791 $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i "$${disabled_tests}" "$${dump_action}" $(RUNTIME_ARGS); \
794 runtest: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
798 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
799 if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
800 rm -f testlist testlist.sorted; \
801 for i in $(TESTSI_CS) $(TESTBS) $(TESTSI_IL); do echo $${i} >> testlist; sort testlist > testlist.sorted; done; \
802 for i in `cat testlist.sorted`; do \
804 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; \
805 if $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$i "$${disabled_tests}" "$${dump_action}" $(RUNTIME_ARGS); \
807 passed=`expr $${passed} + 1`; \
809 if [ $$? = 2 ]; then break; fi; \
810 failed=`expr $${failed} + 1`; \
811 failed_tests="$${failed_tests} $$i"; \
814 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
815 rm -f testlist testlist.sorted; \
816 if [ $${failed} != 0 ]; then \
817 echo -e "\nFailed tests:\n"; \
818 for i in $${failed_tests}; do \
820 if [ "x$$V" = "x1" ]; then \
828 runtest-managed: test-runner.exe $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
829 @if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
830 $(RUNTIME) ./test-runner.exe -j a --disabled "$${disabled_tests}" $(TESTSI_CS) $(TESTBS) $(TESTSI_IL)
833 @if test x$(M) != x; then $(MAKE) runtest-managed; else $(MAKE) runtest; fi
836 @$(MAKE) AOT=1 runtest
839 @$(MAKE) RUNTIME_ARGS="$${RUNTIME_ARGS} --trace" runtest
842 @$(MAKE) JITTEST_PROG_RUN="$(TEST_PROG_RUN)" runtest
844 testjitspeed: $(JITTEST_PROG) $(TESTBS)
845 for i in $(TESTBS); do \
847 time $(JITTEST_PROG) $$i; \
850 test-iomap-regression: exists.cs
851 @$(MCS) $(srcdir)/exists.cs -out:exists.exe
852 @echo "Testing exists.exe..."
853 @MONO_IOMAP=all $(RUNTIME) exists.exe
855 stresstest: $(STRESS_TESTS)
859 for i in $(STRESS_TESTS); do \
860 if $(srcdir)/stress-runner.pl $$i ../mini/mono $(RUNTIME_ARGS); \
862 passed=`expr $${passed} + 1`; \
864 if [ $$? = 2 ]; then break; fi; \
865 failed=`expr $${failed} + 1`; \
866 failed_tests="$${failed_tests} $$i"; \
869 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
870 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
871 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
873 testbundle: console.exe
874 @echo "Testing mkbundle..."
875 @$(MKBUNDLE) --static console.exe > mkbundle.stdout
876 @$(with_mono_path) MONO_CFG_DIR=$(mono_cfg_dir) MONO_SHARED_DIR=$(mono_build_root)/runtime ./a.out >> mkbundle.stdout
879 EXTRA_DIST += load-missing.il t-missing.cs load-exceptions.cs
880 test-type-load: TestDriver.dll
881 @$(ILASM) /dll /output:load-missing.dll $(srcdir)/load-missing.il > /dev/null
882 @$(MCS) -t:library -out:t.dll -d:FOUND $(srcdir)/t-missing.cs
883 @$(MCS) -r:TestDriver.dll -r:load-missing.dll -r:t.dll -out:load-exceptions.exe $(srcdir)/load-exceptions.cs
884 @$(MCS) -t:library -out:t.dll $(srcdir)/t-missing.cs
885 @echo "Testing load-exception.exe..."
886 @$(RUNTIME) load-exceptions.exe > load-exceptions.exe.stdout 2> load-exceptions.exe.stderr
888 EXTRA_DIST += custom-attr-errors.cs custom-attr-errors-lib.cs
889 test-cattr-type-load: TestDriver.dll custom-attr-errors.cs custom-attr-errors-lib.cs
890 $(MCS) -D:WITH_MEMBERS /t:library $(srcdir)/custom-attr-errors-lib.cs
891 $(MCS) -r:TestDriver.dll -r:custom-attr-errors-lib.dll $(srcdir)/custom-attr-errors.cs
892 $(MCS) /t:library $(srcdir)/custom-attr-errors-lib.cs
893 @echo "Testing custom-attribute-load-exceptions.exe..."
894 @$(RUNTIME) custom-attr-errors.exe > custom-attr-errors.exe.stdout 2> custom-attr-errors.exe.stderr
896 EXTRA_DIST += reflection-load-with-context-lib.cs reflection-load-with-context-second-lib.cs reflection-load-with-context.cs
897 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
898 rm -rf reflection-load-dir
899 mkdir reflection-load-dir
900 $(MCS) /t:library $(srcdir)/reflection-load-with-context-second-lib.cs -out:reflection-load-dir/reflection-load-with-context-second-lib.dll
901 $(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
902 $(MCS) reflection-load-with-context.cs
903 @echo "Testing reflection-load-with-context.cs.exe..."
904 @$(RUNTIME) reflection-load-with-context.exe > reflection-load-with-context.exe.stdout 2> reflection-load-with-context.exe.stderr
907 EXTRA_DIST += debug-casts.cs
908 # This depends on TLS, so its not ran by default
910 @$(MCS) -r:TestDriver.dll $(srcdir)/debug-casts.cs
911 @$(RUNTIME) --debug=casts debug-casts.exe
913 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
916 #those are actually configurations, eg plain_sgen-descriptors.exe
917 #DISABLE_SGEN_TESTS =
921 critical-finalizers.exe \
922 sgen-descriptors.exe \
923 sgen-gshared-vtype.exe \
924 sgen-domain-unload.exe \
925 sgen-weakref-stress.exe \
926 sgen-cementing-stress.exe \
927 sgen-case-23400.exe \
928 sgen-new-threads-dont-join-stw.exe \
931 SGEN_CONFIGURATIONS = \
933 "major=marksweep-par|ms-par" \
934 "major=marksweep-conc|ms-conc" \
935 "major=marksweep-conc,minor=split|ms-conc-split" \
936 "minor=split|ms-split" \
937 "minor=split,alloc-ratio=95|ms-split-95" \
938 "|plain-clear-at-gc|clear-at-gc" \
939 "major=marksweep-par|ms-par-clear-at-gc|clear-at-gc" \
940 "major=marksweep-conc|ms-conc-clear-at-gc|clear-at-gc" \
941 "minor=split|ms-split-clear-at-gc|clear-at-gc"
944 #FIXME We should move to use SGEN_CONFIGURATIONS once sgen supports trailling commas or its argument list.
945 SGEN_BRIDGE_CONFIGURATIONS = \
947 ",major=marksweep-conc|ms-conc" \
948 ",minor=split|ms-split" \
949 ",bridge-implementation=new|plain-new-bridge" \
950 ",bridge-implementation=new,major=marksweep-conc|ms-conc-new-bridge" \
951 ",bridge-implementation=new,minor=split|ms-split-new-bridge"
953 sgen-regular-tests: $(SGEN_TESTS)
957 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
960 for conf in $(SGEN_CONFIGURATIONS); do \
961 name=`echo $$conf | cut -d\| -f 2`; \
962 params=`echo $$conf | cut -d\| -f 1`; \
963 debug_opt=`echo $$conf | cut -d\| -f 3`; \
964 test_name="$${test}|$${name}"; \
965 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); \
967 passed=`expr $${passed} + 1`; \
969 if [ $$? = 2 ]; then break; fi; \
970 failed=`expr $${failed} + 1`; \
971 failed_tests="$${failed_tests} $$test_name"; \
975 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
976 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
977 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
979 sgen-bridge-tests1: sgen-bridge.exe sgen-bridge-major-fragmentation.exe
983 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
986 for conf in $(SGEN_BRIDGE_CONFIGURATIONS); do \
987 name=`echo $$conf | cut -d\| -f 2`; \
988 params=`echo $$conf | cut -d\| -f 1`; \
989 test_name="$${test}|$${name}"; \
990 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); \
992 passed=`expr $${passed} + 1`; \
994 if [ $$? = 2 ]; then break; fi; \
995 failed=`expr $${failed} + 1`; \
996 failed_tests="$${failed_tests} $$test_name"; \
1000 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1001 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1002 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1004 sgen-bridge-tests2: sgen-bridge-xref.exe
1008 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
1009 for test in $+; do \
1011 for conf in $(SGEN_BRIDGE_CONFIGURATIONS); do \
1012 name=`echo $$conf | cut -d\| -f 2`; \
1013 params=`echo $$conf | cut -d\| -f 1`; \
1014 test_name="$${test}|$${name}"; \
1015 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); \
1017 passed=`expr $${passed} + 1`; \
1019 if [ $$? = 2 ]; then break; fi; \
1020 failed=`expr $${failed} + 1`; \
1021 failed_tests="$${failed_tests} $$test_name"; \
1025 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1026 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1027 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1029 sgen-toggleref-tests: sgen-toggleref.exe
1033 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
1034 for test in $+; do \
1036 for conf in $(SGEN_CONFIGURATIONS); do \
1037 name=`echo $$conf | cut -d\| -f 2`; \
1038 params=`echo $$conf | cut -d\| -f 1`; \
1039 test_name="$${test}|$${name}"; \
1040 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); \
1042 passed=`expr $${passed} + 1`; \
1044 if [ $$? = 2 ]; then break; fi; \
1045 failed=`expr $${failed} + 1`; \
1046 failed_tests="$${failed_tests} $$test_name"; \
1050 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1051 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1052 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1054 sgen-bridge-tests: sgen-bridge-tests1 sgen-bridge-tests2
1056 sgen-tests: sgen-regular-tests sgen-bridge-tests sgen-toggleref-tests
1058 AOT_CONFIGURATIONS= \
1062 #LLVM crashes, got to fix it first.
1064 # "--llvm --gc=boehm|llvm+boehm"
1072 tmpfile=`mktemp -t mono_aot_output` || exit 1; \
1073 rm -f test-aot-$${name}.stdout test-aot-$${name}.stderr; \
1074 for assembly in $(mcs_topdir)/class/lib/$$profile/*.dll ; do \
1075 asm_name=`basename $$assembly`; \
1076 echo "... $$asm_name"; \
1077 for conf in $(AOT_CONFIGURATIONS); do \
1078 name=`echo $$conf | cut -d\| -f 2`; \
1079 params=`echo $$conf | cut -d\| -f 1`; \
1080 test_name="$${asm_name}|$${name}"; \
1081 echo " $$test_name"; \
1082 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; \
1084 passed=`expr $${passed} + 1`; \
1086 failed=`expr $${failed} + 1`; \
1087 failed_tests="$${failed_tests} $$test_name"; \
1092 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1093 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1094 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1097 # Generated tests for runtime invoke
1098 EXTRA_DIST += gen-runtime-invoke.cs
1099 runtime-invoke.gen.exe: TestDriver.dll gen-runtime-invoke.exe
1100 $(RUNTIME) gen-runtime-invoke.exe > runtime-invoke.gen.cs
1101 $(MCS) -out:runtime-invoke.gen.exe -r:TestDriver.dll runtime-invoke.gen.cs
1103 EXTRA_DIST += make-imt-test.cs
1104 imt_big_iface_test.exe: TestDriver.dll make-imt-test.exe
1105 $(RUNTIME) make-imt-test.exe > imt_big_iface_test.cs
1106 $(MCS) -out:imt_big_iface_test.exe -r:TestDriver.dll imt_big_iface_test.cs
1108 EXTRA_DIST += test-inline-call-stack-library.cs test-inline-call-stack.cs
1109 test-inline-call-stack-library.dll: TestDriver.dll $(srcdir)/test-inline-call-stack-library.cs
1110 $(MCS) -t:library -out:test-inline-call-stack-library.dll $(srcdir)/test-inline-call-stack-library.cs
1111 test-inline-call-stack.exe: TestDriver.dll test-inline-call-stack-library.dll $(srcdir)/test-inline-call-stack.cs
1112 $(MCS) -r:TestDriver.dll -r:test-inline-call-stack-library.dll -out:test-inline-call-stack.exe $(srcdir)/test-inline-call-stack.cs
1114 EXTRA_DIST += unhandled-exception-base-configuration.config
1115 EXTRA_DIST += unhandled-exception-legacy-configuration.config
1116 EXTRA_DIST += appdomain-unload.exe.config
1117 EXTRA_DIST += unhandled-exception-test-case.2.cs
1118 EXTRA_DIST += unhandled-exception-test-runner.2.cs
1119 unhandled-exception-test-case.1.cs: unhandled-exception-test-case.2.cs
1120 cp unhandled-exception-test-case.2.cs unhandled-exception-test-case.1.cs
1121 unhandled-exception-test-case-legacy.1.cs: unhandled-exception-test-case.1.cs
1122 cp unhandled-exception-test-case.1.cs unhandled-exception-test-case-legacy.1.cs
1123 unhandled-exception-test-case-legacy.2.cs: unhandled-exception-test-case.2.cs
1124 cp unhandled-exception-test-case.2.cs unhandled-exception-test-case-legacy.2.cs
1125 unhandled-exception-config_files: unhandled-exception-base-configuration.config unhandled-exception-legacy-configuration.config
1126 cp unhandled-exception-base-configuration.config unhandled-exception-test-case.1.exe.config
1127 cp unhandled-exception-base-configuration.config unhandled-exception-test-case.2.exe.config
1128 cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.1.exe.config
1129 cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.2.exe.config
1130 unhandled-exception-test-case.1.exe: unhandled-exception-test-case.1.cs
1131 $(MCS) /debug unhandled-exception-test-case.1.cs
1132 unhandled-exception-test-case-legacy.1.exe: unhandled-exception-test-case-legacy.1.cs
1133 $(MCS) /debug unhandled-exception-test-case-legacy.1.cs
1134 unhandled-exception-test-case.2.exe: unhandled-exception-test-case.2.cs
1135 $(MCS) /debug unhandled-exception-test-case.2.cs
1136 unhandled-exception-test-case-legacy.2.exe: unhandled-exception-test-case-legacy.2.cs
1137 $(MCS) /debug unhandled-exception-test-case-legacy.2.cs
1138 unhandled-exception-test-runner.2.exe: unhandled-exception-test-runner.2.cs
1139 $(MCS) /debug unhandled-exception-test-runner.2.cs
1141 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
1142 $(RUNTIME) unhandled-exception-test-runner.2.exe RUNTIME:../mini/mono,GTC:F
1144 # We use 'test-support-files' to handle an ordering issue between the 'mono/' and 'runtime/' directories
1145 bug-80307.exe: $(srcdir)/bug-80307.cs
1146 $(MCS) -r:System.Web -out:$@ $(srcdir)/bug-80307.cs
1147 cd $(top_builddir)/runtime && $(MAKE) test-support-files
1149 EXTRA_DIST += bug-81673-interface.cs
1150 bug-81673.exe bug-81673-interface.dll: $(srcdir)/bug-81673.cs $(srcdir)/bug-81673-interface.cs
1151 $(MCS) -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
1152 $(MCS) -out:bug-81673.exe -r:bug-81673-interface.dll $(srcdir)/bug-81673.cs
1153 $(MCS) -define:WITH_STOP -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
1155 EXTRA_DIST += bug-81691-a.cs bug-81691-b.cs
1156 bug-81691.exe bug-81691-b.dll: $(srcdir)/bug-81691.cs $(srcdir)/bug-81691-a.cs $(srcdir)/bug-81691-b.cs
1157 $(MCS) -target:library -out:bug-81691-a.dll $(srcdir)/bug-81691-a.cs
1158 $(MCS) -target:library -out:bug-81691-b.dll -r:bug-81691-a.dll $(srcdir)/bug-81691-b.cs
1159 $(MCS) -r:bug-81691-b.dll -out:bug-81691.exe $(srcdir)/bug-81691.cs
1160 rm -f bug-81691-a.dll
1161 bug-81691.exe: bug-81691-b.dll
1163 EXTRA_DIST += bug-81466-lib.il
1164 bug-81466-lib.dll: bug-81466-lib.il
1165 $(ILASM) /dll /output:bug-81466-lib.dll $(srcdir)/bug-81466-lib.il
1166 bug-81466.exe: bug-81466.il bug-81466-lib.dll
1167 $(ILASM) /exe /output:bug-81466.exe $(srcdir)/bug-81466.il
1169 EXTRA_DIST += bug-324535-il.il
1170 bug-324535-il.dll : bug-324535-il.il
1171 $(ILASM) /dll /output:bug-324535-il.dll $(srcdir)/bug-324535-il.il
1172 bug-324535.exe : bug-324535.cs bug-324535-il.dll
1173 $(MCS) -r:bug-324535-il.dll -out:bug-324535.exe $(srcdir)/bug-324535.cs
1175 EXTRA_DIST += custom-modifiers.2.cs custom-modifiers-lib.il
1176 custom-modifiers-lib.dll: custom-modifiers-lib.il
1177 $(ILASM) /dll /output:custom-modifiers-lib.dll $(srcdir)/custom-modifiers-lib.il
1178 custom-modifiers.2.exe: custom-modifiers.2.cs custom-modifiers-lib.dll
1179 $(MCS) -r:custom-modifiers-lib.dll -out:custom-modifiers.2.exe $(srcdir)/custom-modifiers.2.cs
1181 EXTRA_DIST += bug-382986-lib.cs
1182 bug-382986-lib.dll: bug-382986-lib.cs
1183 $(MCS) -target:library -out:$@ $(srcdir)/bug-382986-lib.cs
1184 bug-382986.exe: bug-382986.cs bug-382986-lib.dll
1185 $(MCS) -out:$@ -r:bug-382986-lib.dll $(srcdir)/bug-382986.cs
1187 EXTRA_DIST += coreclr-security.cs
1189 coreclr-security.exe : coreclr-security.cs
1190 $(SMCS) -out:coreclr-security.exe $(srcdir)/coreclr-security.cs
1192 test-coreclr-security : coreclr-security.exe
1193 @echo "Testing coreclr-security.exe..."
1194 @$(RUNTIME_MOONLIGHT) --security=core-clr-test coreclr-security.exe
1196 EXTRA_DIST += generic-unboxing.2.il
1197 generic-unboxing.2.dll : generic-unboxing.2.il
1198 $(ILASM) /dll /output:generic-unboxing.2.dll $(srcdir)/generic-unboxing.2.il
1200 EXTRA_DIST += generic-boxing.2.il
1201 generic-boxing.2.dll : generic-boxing.2.il generic-unboxing.2.dll
1202 $(ILASM) /dll /output:generic-boxing.2.dll $(srcdir)/generic-boxing.2.il
1204 EXTRA_DIST += generic-unbox.2.cs
1205 generic-unbox.2.exe : generic-unbox.2.cs generic-unboxing.2.dll
1206 $(MCS) -r:generic-unboxing.2.dll -out:$@ $(srcdir)/generic-unbox.2.cs
1208 EXTRA_DIST += generic-box.2.cs
1209 generic-box.2.exe : generic-box.2.cs generic-unboxing.2.dll generic-boxing.2.dll
1210 $(MCS) -r:generic-unboxing.2.dll,generic-boxing.2.dll -out:$@ $(srcdir)/generic-box.2.cs
1212 EXTRA_DIST += generic-delegate2.2.cs generic-delegate2-lib.2.il
1213 generic-delegate2-lib.2.dll : generic-delegate2-lib.2.il
1214 $(ILASM) /dll /output:$@ $(srcdir)/generic-delegate2-lib.2.il
1215 generic-delegate2.2.exe : generic-delegate2.2.cs generic-delegate2-lib.2.dll
1216 $(MCS) -r:generic-delegate2-lib.2.dll -out:$@ $(srcdir)/generic-delegate2.2.cs
1218 bug-3903.exe: bug-3903.cs
1219 $(MCS) -sdk:2 $(srcdir)/bug-3903.cs -out:$@
1221 gshared: test-generic-sharing
1224 @$(MAKE) AOT=1 gshared
1227 generics-sharing.2.exe shared-generic-methods.2.exe \
1228 shared-generic-synchronized.2.exe generic-initobj.2.exe \
1229 generics-sharing-other-exc.2.exe generic-box.2.exe \
1230 generic-unbox.2.exe generic-delegate.2.exe generic-sizeof.2.exe \
1231 generic-ldobj.2.exe generic-mkrefany.2.exe \
1232 generic-refanyval.2.exe generic-ldtoken.2.exe \
1233 generic-ldtoken-method.2.exe generic-ldtoken-field.2.exe \
1234 generic-virtual.2.exe generic-tailcall.2.exe \
1235 generic-interface-methods.2.exe generic-array-type.2.exe \
1236 generic-method-patching.2.exe generic-static-methods.2.exe \
1237 generic-null-call.2.exe generic-tailcall2.2.exe \
1238 generic-array-exc.2.exe generic-special.2.exe \
1239 generic-exceptions.2.exe generic-delegate2.2.exe \
1240 generic-virtual2.2.exe generic-valuetype-interface.2.exe \
1241 generic-valuetype-newobj.2.exe generic-valuetype-newobj2.2.exe \
1242 generic-getgenericarguments.2.exe generic-type-builder.2.exe \
1243 generic-synchronized.2.exe generic-delegate-ctor.2.exe \
1244 generic-constrained.2.exe bug-431413.2.exe \
1245 generic-virtual-invoke.2.exe generic-typedef.2.exe \
1246 generic-marshalbyref.2.exe bug-459285.2.exe bug-461198.2.exe \
1247 generic-sealed-virtual.2.exe generic-system-arrays.2.exe \
1248 generic-stack-traces.2.exe generic-stack-traces2.2.exe \
1249 bug-472600.2.exe bug-473482.2.exe bug-473999.2.exe \
1250 bug-479763.2.exe generic-xdomain.2.exe \
1251 generic-type-load-exception.2.exe bug-616463.exe \
1254 test-generic-sharing-normal: $(GSHARED_TESTS)
1255 @for fn in $+ ; do \
1256 echo "Testing $$fn ..."; \
1257 MONO_GENERIC_SHARING=all $(RUNTIME) -O=gshared $$fn > $$fn.stdout || exit 1; \
1258 MONO_GENERIC_SHARING=all $(RUNTIME) -O=gshared,shared $$fn > $$fn.stdout || exit 1; \
1259 MONO_GENERIC_SHARING=all $(RUNTIME) -O=gshared,-inline $$fn > $$fn.stdout || exit 1; \
1260 MONO_GENERIC_SHARING=all $(RUNTIME) -O=gshared,-inline,shared $$fn > $fn.stdout || exit 1; \
1261 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; \
1264 test-generic-sharing-managed: test-runner.exe $(GSHARED_TESTS)
1265 @$(RUNTIME) ./test-runner.exe -j a --opt-sets "gshared gshared,shared gshared,-inline gshared,-inline,shared" $(GSHARED_TESTS)
1268 test-generic-sharing:
1270 test-generic-sharing:
1271 @if test x$(M) != x; then $(MAKE) test-generic-sharing-managed; else $(MAKE) test-generic-sharing-normal; fi
1274 EXTRA_DIST += async-exceptions.cs
1275 async-exceptions.exe : async-exceptions.cs
1276 $(MCS) -out:async-exceptions.exe $(srcdir)/async-exceptions.cs
1277 test-async-exceptions : async-exceptions.exe
1278 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
1279 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
1281 EXTRA_DIST += modules.cs modules-m1.cs
1282 modules-m1.netmodule: modules-m1.cs
1283 $(MCS) -out:$@ /target:module $(srcdir)/modules-m1.cs
1284 modules.exe: modules.cs modules-m1.netmodule TestDriver.dll
1285 $(MCS) -out:$@ /addmodule:modules-m1.netmodule -r:TestDriver.dll $(srcdir)/modules.cs
1287 # Useful if mono is compiled with --enable-shared=no
1289 cp "../../libtool" .
1290 sed -e 's,build_libtool_libs=no,build_libtool_libs=yes,g' libtool > 2; mv 2 libtool
1291 sed -e 's,LIBTOOL =,LIBTOOL2 =,g' Makefile > 2 && echo "LIBTOOL = bash ./libtool" > 1 && cat 1 2 > Makefile
1298 EXTRA_DIST += bug-438454.cs bug-438454.exe.stdout.expected threadpool-in-processexit.cs threadpool-in-processexit.exe.stdout.expected
1300 @$(MCS) $(srcdir)/bug-438454.cs -out:bug-438454.exe
1301 @echo "Testing bug-438454.exe..."
1302 @$(RUNTIME) bug-438454.exe > bug-438454.exe.stdout
1303 @diff -w bug-438454.exe.stdout $(srcdir)/bug-438454.exe.stdout.expected
1304 @$(MCS) $(srcdir)/threadpool-in-processexit.cs -out:threadpool-in-processexit.exe
1305 @echo "Testing threadpool-in-processexit.exe..."
1306 @$(RUNTIME) threadpool-in-processexit.exe > threadpool-in-processexit.exe.stdout
1307 @diff -w threadpool-in-processexit.exe.stdout $(srcdir)/threadpool-in-processexit.exe.stdout.expected
1311 gc-oom-handling.exe \
1312 gc-oom-handling2.exe
1315 test-oom: $(OOM_TESTS)
1316 @for fn in $+ ; do \
1317 echo "Testing $$fn ..."; \
1318 MONO_GC_PARAMS=max-heap-size=16m,major=marksweep-par MONO_ENV_OPTIONS="--gc=sgen" $(RUNTIME) $$fn > $$fn.stdout || exit 1; \
1319 MONO_GC_PARAMS=max-heap-size=16m MONO_ENV_OPTIONS="--gc=sgen" $(RUNTIME) $$fn > $$fn.stdout || exit 1; \
1320 MONO_GC_PARAMS=max-heap-size=16m $(RUNTIME) $$fn > $$fn.stdout || exit 1; \
1324 noinst_LTLIBRARIES = libtest.la
1326 AM_CPPFLAGS = $(GLIB_CFLAGS) $(GMODULE_CFLAGS)
1329 # gcc-3.4.4 emits incorrect code when making indirect calls to stdcall functions using a tail call
1330 # This shows up when compiling mono_test_marshal_delegate ()
1331 libtest_la_CFLAGS=-fno-optimize-sibling-calls
1332 # the exported names created by gcc for stdcall functions are missing the leading _, so MS.NET
1333 # can't find them. So we use --kill-at to remove the @ suffix as well.
1334 libtest_la_LDFLAGS=-no-undefined -rpath `pwd` -Wl,--kill-at
1336 libtest_la_LDFLAGS = -rpath `pwd`
1338 libtest_la_SOURCES = libtest.c
1339 libtest_la_LIBADD = $(GLIB_LIBS) $(LIBICONV)
1341 CLEANFILES = $(TESTSI_CS) $(TESTSI_IL) $(STRESS_TESTS) *.dll *.stdout *.aotlog *.exe stest.dat