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 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 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 \
60 assemblyresolve_event4.cs \
94 typeload-unaligned.cs \
96 valuetype-gettype.cs \
98 static-constructor.cs \
108 invoke-string-ctors.cs \
117 assignable-tests.cs \
119 array-subtype-attr.cs \
125 newobj-valuetype.cs \
139 reflection-const-field.cs \
168 appdomain-client.cs \
169 appdomain-unload.cs \
170 appdomain-async-invoke.cs \
209 marshal-valuetypes.cs \
210 test-byval-in-struct.cs \
215 thread-static-init.cs \
227 threadpool-exceptions1.cs \
228 threadpool-exceptions2.cs \
229 threadpool-exceptions3.cs \
230 threadpool-exceptions4.cs \
231 threadpool-exceptions5.cs \
232 threadpool-exceptions6.cs \
233 threadpool-exceptions7.cs \
247 bug-Xamarin-5278.cs \
251 delegate-async-exit.cs \
252 delegate-delegate-exit.cs \
255 finalizer-exception.cs \
257 finalizer-thread.cs \
259 main-returns-abort-resetabort.cs \
260 main-returns-background-abort-resetabort.cs \
261 main-returns-background-resetabort.cs \
262 main-returns-background.cs \
263 main-returns-background-change.cs \
270 transparentproxy.cs \
273 soft-float-tests.cs \
276 assemblyresolve_event2.2.cs \
281 catch-generics.2.cs \
284 stackframes-async.2.cs \
285 module-cctor-loader.2.cs \
286 generics-invoke-byref.2.cs \
287 generic-signature-compare.2.cs \
288 generics-sharing.2.cs \
289 shared-generic-methods.2.cs \
290 shared-generic-synchronized.2.cs \
291 generic-inlining.2.cs \
292 generic-initobj.2.cs \
293 generic-delegate.2.cs \
294 generic-sizeof.2.cs \
295 generic-virtual.2.cs \
296 generic-interface-methods.2.cs \
297 generic-array-type.2.cs \
298 generic-method-patching.2.cs \
299 generic-static-methods.2.cs \
300 generic-null-call.2.cs \
301 generic-special.2.cs \
302 generic-exceptions.2.cs \
303 generic-virtual2.2.cs \
304 generic-valuetype-interface.2.cs \
305 generic-getgenericarguments.2.cs \
306 generic-type-builder.2.cs \
307 generic-synchronized.2.cs \
308 generic-delegate-ctor.2.cs \
309 generic-array-iface-set.2.cs \
310 generic-typedef.2.cs \
311 generic-marshalbyref.2.cs \
312 generic-xdomain.2.cs \
313 dynamic-generic-size.cs \
316 generic-virtual-invoke.2.cs \
318 generic-sealed-virtual.2.cs \
319 generic-system-arrays.2.cs \
320 generic-stack-traces.2.cs \
321 generic-stack-traces2.2.cs \
323 recursive-generics.2.cs \
329 dynamic-method-access.2.cs \
330 dynamic-method-finalize.2.cs \
333 ienumerator-interfaces.2.cs \
334 array-enumerator-ifaces.2.cs \
335 generic_type_definition_encoding.2.cs \
336 generic_type_definition.2.cs \
340 bug-322722_patch_bx.2.cs \
343 bug-322722_dyn_method_throw.2.cs \
349 nullable_boxing.2.cs \
350 valuetype-equals.cs \
351 custom-modifiers.2.cs \
353 test-inline-call-stack.cs \
362 bug-389886-sre-generic-interface-instances.cs \
369 generic-unloading.2.cs \
370 generic-unloading-sub.2.cs \
372 appdomain-unload-callback.cs \
378 appdomain-thread-abort.cs \
390 monitor-resurrection.cs \
391 dynamic-method-resurrection.cs \
402 async-with-cb-throws.cs \
403 appdomain-unload-doesnot-raise-pending-events.cs \
405 assembly_append_ordering.cs \
408 allow-synchronous-major.cs \
409 unload-appdomain-on-shutdown.cs \
410 block_guard_restore_aligment_on_exit.cs \
411 thread_static_gc_layout.cs \
418 $(BASE_TEST_CS_SRC) \
419 async-exc-compilation.cs \
422 finally_block_ending_in_dead_bb.cs
425 runtime-invoke.gen.cs \
426 imt_big_iface_test.cs
429 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
431 PLATFORM_DISABLED_TESTS = finally_guard.exe
434 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
436 TEST_CS_SRC = $(BASE_TEST_CS_SRC) $(TEST_CS_SRC_GEN)
441 TEST_CS_SRC+=async-exc-compilation.cs filter-stack.cs
443 PLATFORM_DISABLED_TESTS=exception17.exe
444 PLATFORM_DISABLED_TESTS+=winx64structs.exe
450 PLATFORM_DISABLED_TESTS=async-exc-compilation.exe finally_guard.exe finally_block_ending_in_dead_bb.exe \
451 bug-18026.exe monitor.exe threadpool-exceptions5.exe
458 PLATFORM_DISABLED_TESTS=finalizer-abort.exe finalizer-exception.exe finalizer-exit.exe
462 PLATFORM_DISABLED_TESTS=filter-stack.exe
466 # monitor.exe is racy
467 PLATFORM_DISABLED_TESTS=filter-stack.exe monitor.exe
471 PLATFORM_DISABLED_TESTS=dynamic-method-resurrection.exe
472 #PLATFORM_DISABLED_TESTS=dynamic-method-resurrection.exe exception17.exe
476 # Tests that use Thread.Abort()
477 PLATFORM_DISABLED_TESTS= abort-stress-1.exe \
480 appdomain-thread-abort.exe \
481 async-exc-compilation.exe \
484 finalizer-abort.exe \
486 finally_block_ending_in_dead_bb.exe \
487 main-returns-abort-resetabort.exe \
488 main-returns-background-abort-resetabort.exe \
490 threadpool-exceptions5.exe \
491 threadpool-exceptions6.exe
493 # Tests that rely on AppDomain.Unload
494 PLATFORM_DISABLED_TESTS+= appdomain-async-invoke.exe \
496 appdomain-unload-callback.exe \
497 appdomain-unload.exe \
499 generic-unloading.2.exe \
502 threadpool-exceptions7.exe \
505 # pinvoke2 attaches a thread to the runtime, but
506 # doesn't 'unattach' it and it hangs in GC on exit
507 PLATFORM_DISABLED_TESTS+= pinvoke2.exe
509 # Tests that currently hang waiting for non-main threads
510 # to exit in NaCl, need to investigate. Most are AppDomain
511 # creation and Delegate tests.
512 PLATFORM_DISABLED_TESTS+= appdomain1.exe \
514 marshal-valuetypes.exe \
516 stackframes-async.2.exe \
517 generic-marshalbyref.2.exe \
518 generic-xdomain.2.exe \
521 # Tests that fail trying to write files (appdomain create mostly)
522 PLATFORM_DISABLED_TESTS+= bug-335131.2.exe \
527 # FIXME: don't know why delegate2.exe fails, it shouldn't
528 PLATFORM_DISABLED_TESTS+= delegate2.exe
530 # These tests newly fail with the latest revision. pinvoke3 fails because
531 # of a thread attach, the others have not been investigated. TODO revisit.
532 PLATFORM_DISABLED_TESTS+= pinvoke3.exe \
534 async-with-cb-throws.exe \
535 appdomain-unload-doesnot-raise-pending-events.exe \
536 gsharing-valuetype-layout.exe
539 # FIXME: There are problems with async callbacks and results on NaCl 32-bit
540 PLATFORM_DISABLED_TESTS+= delegate1.exe \
546 threadpool-exceptions3.exe \
551 # FIXME: These tests hang/fail for unknown reasons, deal with exiting
552 PLATFORM_DISABLED_TESTS+= main-returns-background-resetabort.exe \
553 main-returns-background.exe \
554 main-returns-background-change.exe
559 # The two finalizer tests only work under sgen
560 # gc-altstack.exe fails under boehm because it has no support for altstack
561 # bug-459094.exe creates an extremely deep directory tree
562 # delegate-invoke.exe depends on 929c6bc9b6d76a273f251e6f5dfacac36e9c38bd which was
564 # bug-Xamarin-5278.exe got broken by 5d26590e79da139a284459299aee95c25f4cd835
566 delegate-async-exception.exe \
569 delegate-invoke.exe \
570 bug-Xamarin-5278.exe \
571 $(PLATFORM_DISABLED_TESTS) \
572 $(EXTRA_DISABLED_TESTS)
574 DISABLED_TESTS_WRENCH= \
576 $(PLATFORM_DISABLED_TESTS_WRENCH) \
577 main-returns-background-resetabort.exe \
578 main-returns-background-abort-resetabort.exe \
580 assemblyresolve_event3.exe \
584 generic-xdomain.2.exe
586 AOT_DISABLED_TESTS=constraints-load.exe
588 # These only compile with MS CSC
607 static-fields-nonconst.il \
608 reload-at-bb-end.il \
609 test-enum-indstoreil.il \
616 call_missing_method.il \
617 call_missing_class.il \
618 ldfld_missing_field.il \
619 ldfld_missing_class.il \
626 ldtoken_with_byref_typespec.2.il \
627 resolve_method_bug.2.il \
628 resolve_field_bug.2.il \
629 resolve_type_bug.2.il \
630 generics-sharing-other-exc.2.il \
632 generic-mkrefany.2.il \
633 generic-refanyval.2.il \
634 generic-ldtoken.2.il \
635 generic-ldtoken-method.2.il \
636 generic-ldtoken-field.2.il \
637 generic-tailcall.2.il \
638 generic-tailcall2.2.il \
639 generic-array-exc.2.il \
640 generic-valuetype-newobj2.2.il \
641 generic-valuetype-newobj.2.il \
642 generic-constrained.2.il \
643 generic-type-load-exception.2.il \
650 constraints-load.il \
651 array_load_exception.il \
653 interface-with-static-method.il \
656 delegate-with-null-target.il \
658 gsharing-valuetype-layout.il \
659 invalid_generic_instantiation.il
662 # pre-requisite test sources: files that are not test themselves
663 # but that need to be compiled
664 PREREQ_IL_SRC=event-il.il module-cctor.il
666 PREREQ_IL_DLL_SRC=event-il.il module-cctor.il
669 PREREQSI_IL=$(PREREQ_IL_SRC:.il=.exe)
670 PREREQSI_CS=$(PREREQ_CS_SRC:.cs=.exe)
671 TESTSI_CS=$(TEST_CS_SRC:.cs=.exe)
672 TESTSI_IL=$(TEST_IL_SRC:.il=.exe)
673 TESTBS=$(BENCHSRC:.cs=.exe)
674 STRESS_TESTS=$(STRESS_TESTS_SRC:.cs=.exe)
676 EXTRA_DIST=test-driver test-runner.cs $(TEST_CS_SRC_DIST) $(TEST_IL_SRC) \
677 $(BENCHSRC) $(STRESS_TESTS_SRC) stress-runner.pl $(PREREQ_IL_SRC) $(PREREQ_CS_SRC)
682 %.exe: %.cs TestDriver.dll
683 $(MCS) -r:TestDriver.dll -out:$@ $<
685 # mkbundle works on ppc, but the pkg-config POC doesn't when run with make test
689 # Can't use mkbundle on win32 since there is no static build there
690 # Can't run test-unhandled-exception on Windows because of all the debug popups...
694 # mkbundle uses the installed mono-2.pc so it won't work if there is no system mono
695 #test_platform: testbundle test-iomap-regression
696 test_platform: test-iomap-regression
703 test_platform: test-eglib-remap
707 # Target to precompile the test executables
708 tests: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS) $(GSHARED_TESTS)
711 # Test that no symbols are missed in eglib-remap.h
713 OK_G_SYMBOLS='g_list\|g_slist\|g_concat_dir_and_file\|g_Ctoc\'
718 @echo "Testing eglib remap..."
719 @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
723 # Tests that the internals in mono/io-layer/messages.c are ok by triggering the
724 # code that checks that the table is properly sorted
732 test-messages: w32message.exe
734 $(with_mono_path) $(JITTEST_PROG_RUN) w32message.exe > w32message.allout 2>&1 && cmp test_messages.zero w32message.allout
739 test-sgen : sgen-tests
745 test-sgen : sgen-tests
749 test-sgen : sgen-tests
752 test-sgen : sgen-regular-tests
758 # Precompile the test assemblies in parallel
760 $(MAKE) -j4 $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
762 # Remove empty .stdout and .stderr files for wrench
764 @echo "Removing empty logs..."
765 @find . '(' -name "*.stdout" -o -name "*.stderr" ')' -empty -exec rm {} \;
767 assemblyresolve/test/asm.dll:
768 $(MAKE) -C assemblyresolve prereq
771 $(MCS) -target:library -out:$@ $(srcdir)/../mini/TestDriver.cs
773 test_cs: $(TEST_PROG) $(TESTSI_CS) libtest.la
776 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
777 if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
778 for i in $(TESTSI_CS); do \
779 if $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i "$${disabled_tests}" "$${dump_action}" $(RUNTIME_ARGS); \
781 passed=`expr $${passed} + 1`; \
783 if [ $$? = 2 ]; then break; fi; \
784 failed=`expr $${failed} + 1`; \
787 echo; echo ".cs: $${passed} test(s) passed. $${failed} test(s) did not pass."; echo
789 test_il: $(TEST_PROG) $(TESTSI_IL) libtest.la
792 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
793 if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
794 for i in $(TESTSI_IL); do \
795 if $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i "$${disabled_tests}" "$${dump_action}" $(RUNTIME_ARGS); \
797 passed=`expr $${passed} + 1`; \
799 if [ $$? = 2 ]; then break; fi; \
800 failed=`expr $${failed} + 1`; \
803 echo; echo ".il: $${passed} test(s) passed. $${failed} test(s) did not pass."; echo
805 testb: $(TEST_PROG) $(TESTBS)
806 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
807 if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
808 for i in $(TESTBS); do \
809 $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i "$${disabled_tests}" "$${dump_action}" $(RUNTIME_ARGS); \
812 runtest: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
816 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
817 if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
818 rm -f testlist testlist.sorted; \
819 for i in $(TESTSI_CS) $(TESTBS) $(TESTSI_IL); do echo $${i} >> testlist; sort testlist > testlist.sorted; done; \
820 for i in `cat testlist.sorted`; do \
822 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; \
823 if $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$i "$${disabled_tests}" "$${dump_action}" $(RUNTIME_ARGS); \
825 passed=`expr $${passed} + 1`; \
827 if [ $$? = 2 ]; then break; fi; \
828 failed=`expr $${failed} + 1`; \
829 failed_tests="$${failed_tests} $$i"; \
832 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
833 rm -f testlist testlist.sorted; \
834 if [ $${failed} != 0 ]; then \
835 echo -e "\nFailed tests:\n"; \
836 for i in $${failed_tests}; do \
838 if [ "x$$V" = "x1" ]; then \
846 runtest-managed: test-runner.exe $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
847 @if [ "x$$CI" = "x1" ]; then disabled_tests="$(DISABLED_TESTS_WRENCH)"; else disabled_tests="$(DISABLED_TESTS)"; fi; \
848 $(RUNTIME) ./test-runner.exe -j a --disabled "$${disabled_tests}" $(TESTSI_CS) $(TESTBS) $(TESTSI_IL)
851 @if test x$(M) != x0; then $(MAKE) runtest-managed; else $(MAKE) runtest; fi
854 @$(MAKE) AOT=1 runtest
857 @$(MAKE) RUNTIME_ARGS="$${RUNTIME_ARGS} --trace" runtest
860 @$(MAKE) JITTEST_PROG_RUN="$(TEST_PROG_RUN)" runtest
862 testjitspeed: $(JITTEST_PROG) $(TESTBS)
863 for i in $(TESTBS); do \
865 time $(JITTEST_PROG) $$i; \
868 test-iomap-regression: exists.cs
869 @$(MCS) $(srcdir)/exists.cs -out:exists.exe
870 @echo "Testing exists.exe..."
871 @MONO_IOMAP=all $(RUNTIME) exists.exe
873 stresstest: $(STRESS_TESTS)
877 for i in $(STRESS_TESTS); do \
878 if $(srcdir)/stress-runner.pl $$i ../mini/mono $(RUNTIME_ARGS); \
880 passed=`expr $${passed} + 1`; \
882 if [ $$? = 2 ]; then break; fi; \
883 failed=`expr $${failed} + 1`; \
884 failed_tests="$${failed_tests} $$i"; \
887 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
888 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
889 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
891 testbundle: console.exe
892 @echo "Testing mkbundle..."
893 @$(MKBUNDLE) --static console.exe > mkbundle.stdout
894 @$(with_mono_path) MONO_CFG_DIR=$(mono_cfg_dir) ./a.out >> mkbundle.stdout
897 EXTRA_DIST += load-missing.il t-missing.cs load-exceptions.cs
898 test-type-load: TestDriver.dll
899 @$(ILASM) /dll /output:load-missing.dll $(srcdir)/load-missing.il > /dev/null
900 @$(MCS) -t:library -out:t.dll -d:FOUND $(srcdir)/t-missing.cs
901 @$(MCS) -r:TestDriver.dll -r:load-missing.dll -r:t.dll -out:load-exceptions.exe $(srcdir)/load-exceptions.cs
902 @$(MCS) -t:library -out:t.dll $(srcdir)/t-missing.cs
903 @echo "Testing load-exception.exe..."
904 @$(RUNTIME) load-exceptions.exe > load-exceptions.exe.stdout 2> load-exceptions.exe.stderr
906 EXTRA_DIST += custom-attr-errors.cs custom-attr-errors-lib.cs
907 test-cattr-type-load: TestDriver.dll custom-attr-errors.cs custom-attr-errors-lib.cs
908 $(MCS) -D:WITH_MEMBERS /t:library $(srcdir)/custom-attr-errors-lib.cs
909 $(MCS) -r:TestDriver.dll -r:custom-attr-errors-lib.dll $(srcdir)/custom-attr-errors.cs
910 $(MCS) /t:library $(srcdir)/custom-attr-errors-lib.cs
911 @echo "Testing custom-attribute-load-exceptions.exe..."
912 @$(RUNTIME) custom-attr-errors.exe > custom-attr-errors.exe.stdout 2> custom-attr-errors.exe.stderr
914 EXTRA_DIST += reflection-load-with-context-lib.cs reflection-load-with-context-second-lib.cs reflection-load-with-context.cs
915 test-reflection-load-with-context: reflection-load-with-context-lib.cs reflection-load-with-context-second-lib.cs reflection-load-with-context.exe
916 rm -rf reflection-load-dir
917 mkdir reflection-load-dir
918 $(MCS) /t:library $(srcdir)/reflection-load-with-context-second-lib.cs -out:reflection-load-dir/reflection-load-with-context-second-lib.dll
919 $(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
920 @echo "Testing reflection-load-with-context.cs.exe..."
921 @$(RUNTIME) reflection-load-with-context.exe > reflection-load-with-context.exe.stdout 2> reflection-load-with-context.exe.stderr
924 EXTRA_DIST += debug-casts.cs
925 # This depends on TLS, so its not ran by default
927 @$(MCS) -r:TestDriver.dll $(srcdir)/debug-casts.cs
928 @$(RUNTIME) --debug=casts debug-casts.exe
930 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
933 #those are actually configurations, eg plain_sgen-descriptors.exe
934 #DISABLE_SGEN_TESTS =
938 critical-finalizers.exe \
939 sgen-descriptors.exe \
940 sgen-gshared-vtype.exe \
941 sgen-domain-unload.exe \
942 sgen-weakref-stress.exe \
943 sgen-cementing-stress.exe \
944 sgen-case-23400.exe \
945 sgen-new-threads-dont-join-stw.exe \
946 gc-graystack-stress.exe \
949 SGEN_CONFIGURATIONS = \
951 "major=marksweep-conc|ms-conc" \
952 "major=marksweep-conc,minor=split|ms-conc-split" \
953 "minor=split|ms-split" \
954 "minor=split,alloc-ratio=95|ms-split-95" \
955 "|plain-clear-at-gc|clear-at-gc" \
956 "major=marksweep-conc|ms-conc-clear-at-gc|clear-at-gc" \
957 "minor=split|ms-split-clear-at-gc|clear-at-gc"
960 #FIXME We should move to use SGEN_CONFIGURATIONS once sgen supports trailling commas or its argument list.
961 SGEN_BRIDGE_CONFIGURATIONS = \
963 ",major=marksweep-conc|ms-conc" \
964 "minor=split|ms-split" \
965 "bridge-implementation=new|plain-new-bridge" \
966 "bridge-implementation=new,major=marksweep-conc|ms-conc-new-bridge" \
967 "bridge-implementation=new,minor=split|ms-split-new-bridge" \
968 "bridge-implementation=tarjan|plain-tarjan-bridge" \
969 "bridge-implementation=tarjan,minor=split|ms-split-tarjan-bridge"
971 sgen-regular-tests: $(SGEN_TESTS)
975 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
978 for conf in $(SGEN_CONFIGURATIONS); do \
979 name=`echo $$conf | cut -d\| -f 2`; \
980 params=`echo $$conf | cut -d\| -f 1`; \
981 debug_opt=`echo $$conf | cut -d\| -f 3`; \
982 test_name="$${test}|$${name}"; \
983 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); \
985 passed=`expr $${passed} + 1`; \
987 if [ $$? = 2 ]; then break; fi; \
988 failed=`expr $${failed} + 1`; \
989 failed_tests="$${failed_tests} $$test_name"; \
993 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
994 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
995 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
997 sgen-bridge-tests1: sgen-bridge.exe sgen-bridge-major-fragmentation.exe
1001 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
1002 for test in $+; do \
1004 for conf in $(SGEN_BRIDGE_CONFIGURATIONS); do \
1005 name=`echo $$conf | cut -d\| -f 2`; \
1006 params=`echo $$conf | cut -d\| -f 1`; \
1007 test_name="$${test}|$${name}"; \
1008 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); \
1010 passed=`expr $${passed} + 1`; \
1012 if [ $$? = 2 ]; then break; fi; \
1013 failed=`expr $${failed} + 1`; \
1014 failed_tests="$${failed_tests} $$test_name"; \
1018 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1019 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1020 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1022 sgen-bridge-tests2: sgen-bridge-xref.exe
1026 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
1027 for test in $+; do \
1029 for conf in $(SGEN_BRIDGE_CONFIGURATIONS); do \
1030 name=`echo $$conf | cut -d\| -f 2`; \
1031 params=`echo $$conf | cut -d\| -f 1`; \
1032 test_name="$${test}|$${name}"; \
1033 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); \
1035 passed=`expr $${passed} + 1`; \
1037 if [ $$? = 2 ]; then break; fi; \
1038 failed=`expr $${failed} + 1`; \
1039 failed_tests="$${failed_tests} $$test_name"; \
1043 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1044 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1045 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1047 sgen-toggleref-tests: sgen-toggleref.exe
1051 if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
1052 for test in $+; do \
1054 for conf in $(SGEN_CONFIGURATIONS); do \
1055 name=`echo $$conf | cut -d\| -f 2`; \
1056 params=`echo $$conf | cut -d\| -f 1`; \
1057 test_name="$${test}|$${name}"; \
1058 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); \
1060 passed=`expr $${passed} + 1`; \
1062 if [ $$? = 2 ]; then break; fi; \
1063 failed=`expr $${failed} + 1`; \
1064 failed_tests="$${failed_tests} $$test_name"; \
1068 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1069 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1070 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1072 sgen-bridge-tests: sgen-bridge-tests1 sgen-bridge-tests2
1074 sgen-tests: sgen-regular-tests sgen-bridge-tests sgen-toggleref-tests
1076 AOT_CONFIGURATIONS= \
1080 #LLVM crashes, got to fix it first.
1082 # "--llvm --gc=boehm|llvm+boehm"
1090 tmpfile=`mktemp -t mono_aot_output` || exit 1; \
1091 rm -f test-aot-$${name}.stdout test-aot-$${name}.stderr; \
1092 for assembly in $(mcs_topdir)/class/lib/$$profile/*.dll ; do \
1093 asm_name=`basename $$assembly`; \
1094 echo "... $$asm_name"; \
1095 for conf in $(AOT_CONFIGURATIONS); do \
1096 name=`echo $$conf | cut -d\| -f 2`; \
1097 params=`echo $$conf | cut -d\| -f 1`; \
1098 test_name="$${asm_name}|$${name}"; \
1099 echo " $$test_name"; \
1100 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; \
1102 passed=`expr $${passed} + 1`; \
1104 failed=`expr $${failed} + 1`; \
1105 failed_tests="$${failed_tests} $$test_name"; \
1110 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1111 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
1112 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
1115 # Generated tests for runtime invoke
1116 EXTRA_DIST += gen-runtime-invoke.cs
1117 runtime-invoke.gen.exe: TestDriver.dll gen-runtime-invoke.exe
1118 $(RUNTIME) gen-runtime-invoke.exe > runtime-invoke.gen.cs
1119 $(MCS) -out:runtime-invoke.gen.exe -r:TestDriver.dll runtime-invoke.gen.cs
1121 EXTRA_DIST += make-imt-test.cs
1122 imt_big_iface_test.exe: TestDriver.dll make-imt-test.exe
1123 $(RUNTIME) make-imt-test.exe > imt_big_iface_test.cs
1124 $(MCS) -out:imt_big_iface_test.exe -r:TestDriver.dll imt_big_iface_test.cs
1126 EXTRA_DIST += test-inline-call-stack-library.cs test-inline-call-stack.cs
1127 test-inline-call-stack-library.dll: TestDriver.dll $(srcdir)/test-inline-call-stack-library.cs
1128 $(MCS) -t:library -out:test-inline-call-stack-library.dll $(srcdir)/test-inline-call-stack-library.cs
1129 test-inline-call-stack.exe: TestDriver.dll test-inline-call-stack-library.dll $(srcdir)/test-inline-call-stack.cs
1130 $(MCS) -r:TestDriver.dll -r:test-inline-call-stack-library.dll -out:test-inline-call-stack.exe $(srcdir)/test-inline-call-stack.cs
1132 EXTRA_DIST += unhandled-exception-base-configuration.config
1133 EXTRA_DIST += unhandled-exception-legacy-configuration.config
1134 EXTRA_DIST += appdomain-unload.exe.config
1135 EXTRA_DIST += unhandled-exception-test-case.2.cs
1136 EXTRA_DIST += unhandled-exception-test-runner.2.cs
1137 unhandled-exception-test-case.1.cs: unhandled-exception-test-case.2.cs
1138 cp unhandled-exception-test-case.2.cs unhandled-exception-test-case.1.cs
1139 unhandled-exception-test-case-legacy.1.cs: unhandled-exception-test-case.1.cs
1140 cp unhandled-exception-test-case.1.cs unhandled-exception-test-case-legacy.1.cs
1141 unhandled-exception-test-case-legacy.2.cs: unhandled-exception-test-case.2.cs
1142 cp unhandled-exception-test-case.2.cs unhandled-exception-test-case-legacy.2.cs
1143 unhandled-exception-config_files: unhandled-exception-base-configuration.config unhandled-exception-legacy-configuration.config
1144 cp unhandled-exception-base-configuration.config unhandled-exception-test-case.1.exe.config
1145 cp unhandled-exception-base-configuration.config unhandled-exception-test-case.2.exe.config
1146 cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.1.exe.config
1147 cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.2.exe.config
1148 unhandled-exception-test-case.1.exe: unhandled-exception-test-case.1.cs
1149 $(MCS) /debug unhandled-exception-test-case.1.cs
1150 unhandled-exception-test-case-legacy.1.exe: unhandled-exception-test-case-legacy.1.cs
1151 $(MCS) /debug unhandled-exception-test-case-legacy.1.cs
1152 unhandled-exception-test-case.2.exe: unhandled-exception-test-case.2.cs
1153 $(MCS) /debug unhandled-exception-test-case.2.cs
1154 unhandled-exception-test-case-legacy.2.exe: unhandled-exception-test-case-legacy.2.cs
1155 $(MCS) /debug unhandled-exception-test-case-legacy.2.cs
1156 unhandled-exception-test-runner.2.exe: unhandled-exception-test-runner.2.cs
1157 $(MCS) /debug unhandled-exception-test-runner.2.cs
1159 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
1160 $(RUNTIME) unhandled-exception-test-runner.2.exe RUNTIME:../mini/mono,GTC:F
1162 # We use 'test-support-files' to handle an ordering issue between the 'mono/' and 'runtime/' directories
1163 bug-80307.exe: $(srcdir)/bug-80307.cs
1164 $(MCS) -r:System.Web -out:$@ $(srcdir)/bug-80307.cs
1165 cd $(top_builddir)/runtime && $(MAKE) test-support-files
1167 EXTRA_DIST += bug-81673-interface.cs
1168 bug-81673.exe bug-81673-interface.dll: $(srcdir)/bug-81673.cs $(srcdir)/bug-81673-interface.cs
1169 $(MCS) -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
1170 $(MCS) -out:bug-81673.exe -r:bug-81673-interface.dll $(srcdir)/bug-81673.cs
1171 $(MCS) -define:WITH_STOP -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
1173 EXTRA_DIST += bug-81691-a.cs bug-81691-b.cs
1174 bug-81691.exe bug-81691-b.dll: $(srcdir)/bug-81691.cs $(srcdir)/bug-81691-a.cs $(srcdir)/bug-81691-b.cs
1175 $(MCS) -target:library -out:bug-81691-a.dll $(srcdir)/bug-81691-a.cs
1176 $(MCS) -target:library -out:bug-81691-b.dll -r:bug-81691-a.dll $(srcdir)/bug-81691-b.cs
1177 $(MCS) -r:bug-81691-b.dll -out:bug-81691.exe $(srcdir)/bug-81691.cs
1178 rm -f bug-81691-a.dll
1179 bug-81691.exe: bug-81691-b.dll
1181 EXTRA_DIST += bug-81466-lib.il
1182 bug-81466-lib.dll: bug-81466-lib.il
1183 $(ILASM) /dll /output:bug-81466-lib.dll $(srcdir)/bug-81466-lib.il
1184 bug-81466.exe: bug-81466.il bug-81466-lib.dll
1185 $(ILASM) /exe /output:bug-81466.exe $(srcdir)/bug-81466.il
1187 EXTRA_DIST += bug-324535-il.il
1188 bug-324535-il.dll : bug-324535-il.il
1189 $(ILASM) /dll /output:bug-324535-il.dll $(srcdir)/bug-324535-il.il
1190 bug-324535.exe : bug-324535.cs bug-324535-il.dll
1191 $(MCS) -r:bug-324535-il.dll -out:bug-324535.exe $(srcdir)/bug-324535.cs
1193 EXTRA_DIST += custom-modifiers.2.cs custom-modifiers-lib.il
1194 custom-modifiers-lib.dll: custom-modifiers-lib.il
1195 $(ILASM) /dll /output:custom-modifiers-lib.dll $(srcdir)/custom-modifiers-lib.il
1196 custom-modifiers.2.exe: custom-modifiers.2.cs custom-modifiers-lib.dll
1197 $(MCS) -r:custom-modifiers-lib.dll -out:custom-modifiers.2.exe $(srcdir)/custom-modifiers.2.cs
1199 EXTRA_DIST += bug-382986-lib.cs
1200 bug-382986-lib.dll: bug-382986-lib.cs
1201 $(MCS) -target:library -out:$@ $(srcdir)/bug-382986-lib.cs
1202 bug-382986.exe: bug-382986.cs bug-382986-lib.dll
1203 $(MCS) -out:$@ -r:bug-382986-lib.dll $(srcdir)/bug-382986.cs
1205 EXTRA_DIST += bug-17537-helper.cs
1206 bug-17537-helper.exe: bug-17537-helper.cs
1207 $(MCS) -out:$@ $(srcdir)/bug-17537-helper.cs
1210 bug-17537.exe: bug-17537.cs bug-17537-helper.exe
1211 $(MCS) -out:$@ $(srcdir)/bug-17537.cs
1213 EXTRA_DIST += coreclr-security.cs
1215 coreclr-security.exe : coreclr-security.cs
1216 $(SMCS) -out:coreclr-security.exe $(srcdir)/coreclr-security.cs
1218 test-coreclr-security : coreclr-security.exe
1219 @echo "Testing coreclr-security.exe..."
1220 @$(RUNTIME_MOONLIGHT) --security=core-clr-test coreclr-security.exe
1222 EXTRA_DIST += generic-unboxing.2.il
1223 generic-unboxing.2.dll : generic-unboxing.2.il
1224 $(ILASM) /dll /output:generic-unboxing.2.dll $(srcdir)/generic-unboxing.2.il
1226 EXTRA_DIST += generic-boxing.2.il
1227 generic-boxing.2.dll : generic-boxing.2.il generic-unboxing.2.dll
1228 $(ILASM) /dll /output:generic-boxing.2.dll $(srcdir)/generic-boxing.2.il
1230 EXTRA_DIST += generic-unbox.2.cs
1231 generic-unbox.2.exe : generic-unbox.2.cs generic-unboxing.2.dll
1232 $(MCS) -r:generic-unboxing.2.dll -out:$@ $(srcdir)/generic-unbox.2.cs
1234 EXTRA_DIST += generic-box.2.cs
1235 generic-box.2.exe : generic-box.2.cs generic-unboxing.2.dll generic-boxing.2.dll
1236 $(MCS) -r:generic-unboxing.2.dll,generic-boxing.2.dll -out:$@ $(srcdir)/generic-box.2.cs
1238 EXTRA_DIST += generic-delegate2.2.cs generic-delegate2-lib.2.il
1239 generic-delegate2-lib.2.dll : generic-delegate2-lib.2.il
1240 $(ILASM) /dll /output:$@ $(srcdir)/generic-delegate2-lib.2.il
1241 generic-delegate2.2.exe : generic-delegate2.2.cs generic-delegate2-lib.2.dll
1242 $(MCS) -r:generic-delegate2-lib.2.dll -out:$@ $(srcdir)/generic-delegate2.2.cs
1244 bug-3903.exe: bug-3903.cs
1245 $(MCS) -sdk:2 $(srcdir)/bug-3903.cs -out:$@
1247 gshared: test-generic-sharing
1250 @$(MAKE) AOT=1 gshared
1253 generics-sharing.2.exe shared-generic-methods.2.exe \
1254 shared-generic-synchronized.2.exe generic-initobj.2.exe \
1255 generics-sharing-other-exc.2.exe generic-box.2.exe \
1256 generic-unbox.2.exe generic-delegate.2.exe generic-sizeof.2.exe \
1257 generic-ldobj.2.exe generic-mkrefany.2.exe \
1258 generic-refanyval.2.exe generic-ldtoken.2.exe \
1259 generic-ldtoken-method.2.exe generic-ldtoken-field.2.exe \
1260 generic-virtual.2.exe generic-tailcall.2.exe \
1261 generic-interface-methods.2.exe generic-array-type.2.exe \
1262 generic-method-patching.2.exe generic-static-methods.2.exe \
1263 generic-null-call.2.exe generic-tailcall2.2.exe \
1264 generic-array-exc.2.exe generic-special.2.exe \
1265 generic-exceptions.2.exe generic-delegate2.2.exe \
1266 generic-virtual2.2.exe generic-valuetype-interface.2.exe \
1267 generic-valuetype-newobj.2.exe generic-valuetype-newobj2.2.exe \
1268 generic-getgenericarguments.2.exe generic-type-builder.2.exe \
1269 generic-synchronized.2.exe generic-delegate-ctor.2.exe \
1270 generic-constrained.2.exe bug-431413.2.exe \
1271 generic-virtual-invoke.2.exe generic-typedef.2.exe \
1272 generic-marshalbyref.2.exe bug-459285.2.exe bug-461198.2.exe \
1273 generic-sealed-virtual.2.exe generic-system-arrays.2.exe \
1274 generic-stack-traces.2.exe generic-stack-traces2.2.exe \
1275 bug-472600.2.exe bug-473482.2.exe bug-473999.2.exe \
1277 generic-type-load-exception.2.exe bug-616463.exe \
1280 test-generic-sharing-normal: $(GSHARED_TESTS)
1281 @for fn in $+ ; do \
1282 echo "Testing $$fn ..."; \
1283 MONO_GENERIC_SHARING=all $(RUNTIME) -O=gshared $$fn > $$fn.stdout || exit 1; \
1284 MONO_GENERIC_SHARING=all $(RUNTIME) -O=gshared,shared $$fn > $$fn.stdout || exit 1; \
1285 MONO_GENERIC_SHARING=all $(RUNTIME) -O=gshared,-inline $$fn > $$fn.stdout || exit 1; \
1286 MONO_GENERIC_SHARING=all $(RUNTIME) -O=gshared,-inline,shared $$fn > $fn.stdout || exit 1; \
1287 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; \
1290 test-generic-sharing-managed: test-runner.exe $(GSHARED_TESTS)
1291 @$(RUNTIME) ./test-runner.exe -j a --opt-sets "gshared gshared,shared gshared,-inline gshared,-inline,shared" $(GSHARED_TESTS)
1294 test-generic-sharing:
1296 test-generic-sharing:
1297 @if test x$(M) != x0; then $(MAKE) test-generic-sharing-managed; else $(MAKE) test-generic-sharing-normal; fi
1300 EXTRA_DIST += async-exceptions.cs
1301 async-exceptions.exe : async-exceptions.cs
1302 $(MCS) -out:async-exceptions.exe $(srcdir)/async-exceptions.cs
1303 test-async-exceptions : async-exceptions.exe
1304 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
1305 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
1307 EXTRA_DIST += modules.cs modules-m1.cs
1308 modules-m1.netmodule: modules-m1.cs
1309 $(MCS) -out:$@ /target:module $(srcdir)/modules-m1.cs
1310 modules.exe: modules.cs modules-m1.netmodule TestDriver.dll
1311 $(MCS) -out:$@ /addmodule:modules-m1.netmodule -r:TestDriver.dll $(srcdir)/modules.cs
1313 # Useful if mono is compiled with --enable-shared=no
1315 cp "../../libtool" .
1316 sed -e 's,build_libtool_libs=no,build_libtool_libs=yes,g' libtool > 2; mv 2 libtool
1317 sed -e 's,LIBTOOL =,LIBTOOL2 =,g' Makefile > 2 && echo "LIBTOOL = bash ./libtool" > 1 && cat 1 2 > Makefile
1324 EXTRA_DIST += threadpool-in-processexit.cs threadpool-in-processexit.exe.stdout.expected
1326 @$(MCS) $(srcdir)/threadpool-in-processexit.cs -out:threadpool-in-processexit.exe
1327 @echo "Testing threadpool-in-processexit.exe..."
1328 @$(RUNTIME) threadpool-in-processexit.exe > threadpool-in-processexit.exe.stdout
1329 @diff -w threadpool-in-processexit.exe.stdout $(srcdir)/threadpool-in-processexit.exe.stdout.expected
1333 gc-oom-handling.exe \
1334 gc-oom-handling2.exe
1337 test-oom: $(OOM_TESTS)
1338 @for fn in $+ ; do \
1339 echo "Testing $$fn ..."; \
1340 MONO_GC_PARAMS=max-heap-size=16m MONO_ENV_OPTIONS="--gc=sgen" $(RUNTIME) $$fn > $$fn.stdout || exit 1; \
1341 MONO_GC_PARAMS=max-heap-size=16m $(RUNTIME) $$fn > $$fn.stdout || exit 1; \
1345 noinst_LTLIBRARIES = libtest.la
1347 AM_CPPFLAGS = $(GLIB_CFLAGS) $(GMODULE_CFLAGS)
1350 # gcc-3.4.4 emits incorrect code when making indirect calls to stdcall functions using a tail call
1351 # This shows up when compiling mono_test_marshal_delegate ()
1352 libtest_la_CFLAGS=-fno-optimize-sibling-calls
1353 # the exported names created by gcc for stdcall functions are missing the leading _, so MS.NET
1354 # can't find them. So we use --kill-at to remove the @ suffix as well.
1355 libtest_la_LDFLAGS=-no-undefined -rpath `pwd` -Wl,--kill-at
1357 libtest_la_LDFLAGS = -rpath `pwd`
1359 libtest_la_SOURCES = libtest.c
1360 libtest_la_LIBADD = $(GLIB_LIBS) $(LIBICONV)
1362 CLEANFILES = $(TESTSI_CS) $(TESTSI_IL) $(STRESS_TESTS) *.dll *.stdout *.aotlog *.exe stest.dat