1 SUBDIRS = cas assemblyresolve
3 # avoid including eglib twice since GLIB_LIBS == GMODULE_LIBS for eglib builds
5 glib_libs = $(GLIB_LIBS)
7 glib_libs = $(GLIB_LIBS) $(GMODULE_LIBS)
12 TEST_PROG = ../interpreter/mint
13 JITTEST_PROG = ../mini/mono
15 TEST_PROG_RUN = MONO_SHARED_DIR=$(mono_build_root)/runtime MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(TEST_PROG)
16 JITTEST_PROG_RUN = MONO_SHARED_DIR=$(mono_build_root)/runtime MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(JITTEST_PROG)
18 RUNTIME_ARGS=--config tests-config --optimize=all
20 with_mono_path = MONO_PATH=$(mcs_topdir)/class/lib/net_2_0
21 with_mono_path21 = MONO_PATH=$(mcs_topdir)/class/lib/net_2_1
23 RUNTIME = $(with_mono_path) $(top_builddir)/runtime/mono-wrapper
24 RUNTIME21 = $(with_mono_path21) $(top_builddir)/runtime/mono-wrapper
27 PKG_CONFIG_PATH=$(top_builddir):$(PKG_CONFIG_PATH) \
28 $(RUNTIME) $(mcs_topdir)/class/lib/net_2_0/mkbundle.exe
30 MCS = $(RUNTIME) $(mcs_topdir)/class/lib/net_2_0/gmcs.exe -unsafe -nowarn:0162 -nowarn:0168 -nowarn:0219
31 SMCS = $(RUNTIME21) --runtime=moonlight --security=temporary-smcs-hack $(mcs_topdir)/class/lib/net_2_1/smcs.exe -unsafe -nowarn:0162 -nowarn:0168 -nowarn:0219
32 ILASM = $(RUNTIME) $(mcs_topdir)/class/lib/net_2_0/ilasm.exe
34 BENCHSRC=fib.cs random.cs nested-loops.cs ackermann.cs tight-loop.cs sieve.cs
50 assemblyresolve_event.cs \
51 assemblyresolve_event3.cs \
83 typeload-unaligned.cs \
85 valuetype-gettype.cs \
87 static-constructor.cs \
97 invoke-string-ctors.cs \
105 assignable-tests.cs \
107 array-subtype-attr.cs \
113 newobj-valuetype.cs \
127 reflection-const-field.cs \
157 appdomain-client.cs \
158 appdomain-unload.cs \
193 marshal-valuetypes.cs \
194 test-byval-in-struct.cs \
199 thread-static-init.cs \
227 delegate-async-exit.cs \
228 delegate-delegate-exit.cs \
231 finalizer-exception.cs \
234 main-returns-abort-resetabort.cs \
235 main-returns-background-abort-resetabort.cs \
236 main-returns-background-resetabort.cs \
237 main-returns-background.cs \
238 main-returns-background-change.cs \
245 transparentproxy.cs \
246 imt_big_iface_test.cs \
249 soft-float-tests.cs \
251 assemblyresolve_event2.2.cs \
256 catch-generics.2.cs \
259 stackframes-async.2.cs \
260 module-cctor-loader.2.cs \
261 generics-invoke-byref.2.cs \
262 generic-signature-compare.2.cs \
263 generics-sharing.2.cs \
264 shared-generic-methods.2.cs \
265 shared-generic-synchronized.2.cs \
266 generic-inlining.2.cs \
267 generic-initobj.2.cs \
268 generic-delegate.2.cs \
269 generic-sizeof.2.cs \
270 generic-virtual.2.cs \
271 generic-interface-methods.2.cs \
272 generic-array-type.2.cs \
273 generic-method-patching.2.cs \
274 generic-null-call.2.cs \
275 recursive-generics.2.cs \
277 dynamic-method-access.2.cs \
280 ienumerator-interfaces.2.cs \
281 array-enumerator-ifaces.2.cs \
282 generic_type_definition_encoding.2.cs \
283 generic_type_definition.2.cs \
287 bug-322722_patch_bx.2.cs \
290 bug-322722_dyn_method_throw.2.cs \
296 TEST_CS_SRC = $(BASE_TEST_CS_SRC) async-exc-compilation.cs
299 TEST_CS_SRC = $(BASE_TEST_CS_SRC) async-exc-compilation.cs
301 TEST_CS_SRC = $(BASE_TEST_CS_SRC)
306 TEST_CS_SRC+=async-exc-compilation.cs
311 PLATFORM_DISABLED_TESTS=finalizer-abort.exe finalizer-exception.exe finalizer-exit.exe
316 PLATFORM_DISABLED_TESTS=finalizer-abort.exe finalizer-exception.exe finalizer-exit.exe
320 delegate-async-exception.exe \
321 delegate-delegate-exception.exe \
322 appdomain-unload.exe \
324 $(PLATFORM_DISABLED_TESTS)
326 # These only compile with MS CSC
346 static-fields-nonconst.il \
347 reload-at-bb-end.il \
348 test-enum-indstoreil.il \
355 call_missing_method.il \
356 call_missing_class.il \
357 ldfld_missing_field.il \
358 ldfld_missing_class.il \
364 ldtoken_with_byref_typespec.2.il \
365 resolve_method_bug.2.il \
366 resolve_field_bug.2.il \
367 resolve_type_bug.2.il \
368 generics-sharing-other-exc.2.il \
370 generic-mkrefany.2.il \
371 generic-refanyval.2.il \
372 generic-ldtoken.2.il \
373 generic-ldtoken-method.2.il \
374 generic-ldtoken-field.2.il \
375 generic-tailcall.2.il \
376 generic-tailcall2.2.il
380 # pre-requisite test sources: files that are not test themselves
381 # but that need to be compiled
382 PREREQ_IL_SRC=event-il.il module-cctor.il
384 PREREQ_IL_DLL_SRC=event-il.il module-cctor.il
387 PREREQSI_IL=$(PREREQ_IL_SRC:.il=.exe)
388 PREREQSI_CS=$(PREREQ_CS_SRC:.cs=.exe)
389 TESTSI_CS=$(TEST_CS_SRC:.cs=.exe)
390 TESTSI_IL=$(TEST_IL_SRC:.il=.exe)
391 TESTBS=$(BENCHSRC:.cs=.exe)
392 STRESS_TESTS=$(STRESS_TESTS_SRC:.cs=.exe)
394 EXTRA_DIST=test-driver $(TEST_CS_SRC) $(TEST_IL_SRC) \
395 $(BENCHSRC) $(STRESS_TESTS_SRC) stress-runner.pl $(PREREQ_IL_SRC) $(PREREQ_CS_SRC)
400 %.exe: %.cs TestDriver.dll
401 $(MCS) -r:TestDriver.dll -out:$@ $<
403 # mkbundle works on ppc, but the pkg-config POC doesn't when run with make test
405 test: assemblyresolve/test/asm.dll testjit test-type-load test-inline-call-stack test-bug-80307 test-bug-81673 test-bug-81691 test-bug-81466 test-bug-324535 test-generic-sharing test-bug-382986
407 # Can't use mkbundle on win32 since there is no static build there
408 # Can't run test-unhandled-exception on Windows because of all the debug popups...
410 test: assemblyresolve/test/asm.dll testjit test-type-load test-inline-call-stack test-bug-80307 test-bug-81673 test-bug-81691 test-bug-81466 test-bug-324535 test-generic-sharing test-bug-382986
412 test: assemblyresolve/test/asm.dll testjit testbundle test-type-load test-inline-call-stack test-iomap-regression test-bug-80307 test-bug-81673 test-bug-81691 test-bug-81466 test-bug-324535 custom-modifiers test-generic-sharing test-bug-382986
417 test : test-coreclr-security
420 assemblyresolve/test/asm.dll:
421 $(MAKE) -C assemblyresolve prereq
424 $(MCS) -target:library -out:$@ $(srcdir)/../mini/TestDriver.cs
426 test_cs: $(TEST_PROG) $(TESTSI_CS) libtest.la
429 export LD_LIBRARY_PATH="`pwd`/.libs:$${LD_LIBRARY_PATH}"; \
430 for i in $(TESTSI_CS); do \
431 if $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i '$(DISABLED_TESTS)' $(RUNTIME_ARGS); \
433 passed=`expr $${passed} + 1`; \
435 if [ $$? = 2 ]; then break; fi; \
436 failed=`expr $${failed} + 1`; \
439 echo; echo ".cs: $${passed} test(s) passed. $${failed} test(s) did not pass."; echo
441 test_il: $(TEST_PROG) $(TESTSI_IL) libtest.la
444 export LD_LIBRARY_PATH="`pwd`/.libs:$${LD_LIBRARY_PATH}"; \
445 for i in $(TESTSI_IL); do \
446 if $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i "$(DISABLED_TESTS)" $(RUNTIME_ARGS); \
448 passed=`expr $${passed} + 1`; \
450 if [ $$? = 2 ]; then break; fi; \
451 failed=`expr $${failed} + 1`; \
454 echo; echo ".il: $${passed} test(s) passed. $${failed} test(s) did not pass."; echo
456 testb: $(TEST_PROG) $(TESTBS)
457 for i in $(TESTBS); do \
458 $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i '$(DISABLED_TESTS)' $(RUNTIME_ARGS); \
461 testjit: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
465 for i in $(TESTSI_CS) $(TESTBS) $(TESTSI_IL); do \
467 if $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$i '$(DISABLED_TESTS)' $(RUNTIME_ARGS); \
469 passed=`expr $${passed} + 1`; \
471 if [ $$? = 2 ]; then break; fi; \
472 failed=`expr $${failed} + 1`; \
473 failed_tests="$${failed_tests} $$i"; \
476 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
477 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
478 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
480 testaot: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la
484 export LD_LIBRARY_PATH="`pwd`/.libs:$${LD_LIBRARY_PATH}"; \
485 for i in $(TESTSI_CS) $(TESTSI_IL) $(TESTBS); do \
487 $(JITTEST_PROG_RUN) --aot $${i} > /dev/null; \
488 if $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$i "$(DISABLED_TESTS)" $(RUNTIME_ARGS); \
490 passed=`expr $${passed} + 1`; \
492 if [ $$? = 2 ]; then break; fi; \
493 failed=`expr $${failed} + 1`; \
494 failed_tests="$${failed_tests} $$i"; \
497 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
498 if [ $$failed != 0 ]; then echo -e "\nFailed tests:\n"; \
499 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
502 $(MAKE) RUNTIME_ARGS="$${RUNTIME_ARGS} --trace" testjit
504 testinterp: $(TESTSI_CS) $(TESTSI_IL) libtest.la
508 export LD_LIBRARY_PATH="`pwd`/.libs:$${LD_LIBRARY_PATH}"; \
509 for i in $(TESTSI_CS) $(TESTSI_IL); do \
510 if $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i "$(DISABLED_TESTS)" $(RUNTIME_ARGS); \
512 passed=`expr $${passed} + 1`; \
514 if [ $$? = 2 ]; then break; fi; \
515 failed=`expr $${failed} + 1`; \
516 failed_tests="$${failed_tests} $$i"; \
519 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
520 if [ $$failed != 0 ]; then echo -e "\nFailed tests:\n"; \
521 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
523 testjitspeed: $(JITTEST_PROG) $(TESTBS)
524 for i in $(TESTBS); do \
526 time $(JITTEST_PROG) $$i; \
529 test-iomap-regression: exists.cs
530 $(MCS) $(srcdir)/exists.cs -out:exists.exe
531 MONO_IOMAP=all $(RUNTIME) exists.exe
533 stresstest: $(STRESS_TESTS)
537 for i in $(STRESS_TESTS); do \
538 if $(srcdir)/stress-runner.pl $$i ../mini/mono $(RUNTIME_ARGS); \
540 passed=`expr $${passed} + 1`; \
542 if [ $$? = 2 ]; then break; fi; \
543 failed=`expr $${failed} + 1`; \
544 failed_tests="$${failed_tests} $$i"; \
547 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
548 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
549 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
551 testbundle: console.exe
552 $(MKBUNDLE) --static console.exe
553 $(with_mono_path) MONO_CFG_DIR=$(mono_cfg_dir) MONO_SHARED_DIR=$(mono_build_root)/runtime ./a.out
556 EXTRA_DIST += load-missing.il t-missing.cs load-exceptions.cs
557 test-type-load: TestDriver.dll
558 $(ILASM) /dll /output:load-missing.dll $(srcdir)/load-missing.il
559 $(MCS) -t:library -out:t.dll -d:FOUND $(srcdir)/t-missing.cs
560 $(MCS) -r:TestDriver.dll -r:load-missing.dll -r:t.dll -out:load-exceptions.exe $(srcdir)/load-exceptions.cs
561 $(MCS) -t:library -out:t.dll $(srcdir)/t-missing.cs
562 $(RUNTIME) load-exceptions.exe
564 EXTRA_DIST += test-inline-call-stack-library.cs test-inline-call-stack.cs
565 test-inline-call-stack-library.dll: TestDriver.dll $(srcdir)/test-inline-call-stack-library.cs
566 $(MCS) -t:library -out:test-inline-call-stack-library.dll $(srcdir)/test-inline-call-stack-library.cs
567 test-inline-call-stack.exe: TestDriver.dll test-inline-call-stack-library.dll $(srcdir)/test-inline-call-stack.cs
568 $(MCS) -r:TestDriver.dll -r:test-inline-call-stack-library.dll -out:test-inline-call-stack.exe $(srcdir)/test-inline-call-stack.cs
569 test-inline-call-stack: TestDriver.dll test-inline-call-stack-library.dll test-inline-call-stack.exe
570 $(RUNTIME) test-inline-call-stack.exe
573 EXTRA_DIST += unhandled-exception-base-configuration.config
574 EXTRA_DIST += unhandled-exception-legacy-configuration.config
575 EXTRA_DIST += unhandled-exception-test-case.2.cs
576 EXTRA_DIST += unhandled-exception-test-runner.2.cs
577 unhandled-exception-test-case.1.cs: unhandled-exception-test-case.2.cs
578 cp unhandled-exception-test-case.2.cs unhandled-exception-test-case.1.cs
579 unhandled-exception-test-case-legacy.1.cs: unhandled-exception-test-case.1.cs
580 cp unhandled-exception-test-case.1.cs unhandled-exception-test-case-legacy.1.cs
581 unhandled-exception-test-case-legacy.2.cs: unhandled-exception-test-case.2.cs
582 cp unhandled-exception-test-case.2.cs unhandled-exception-test-case-legacy.2.cs
583 unhandled-exception-config_files: unhandled-exception-base-configuration.config unhandled-exception-legacy-configuration.config
584 cp unhandled-exception-base-configuration.config unhandled-exception-test-case.1.exe.config
585 cp unhandled-exception-base-configuration.config unhandled-exception-test-case.2.exe.config
586 cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.1.exe.config
587 cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.2.exe.config
588 unhandled-exception-test-case.1.exe: unhandled-exception-test-case.1.cs
589 $(MCS) /debug unhandled-exception-test-case.1.cs
590 unhandled-exception-test-case-legacy.1.exe: unhandled-exception-test-case-legacy.1.cs
591 $(MCS) /debug unhandled-exception-test-case-legacy.1.cs
592 unhandled-exception-test-case.2.exe: unhandled-exception-test-case.2.cs
593 $(MCS) /debug unhandled-exception-test-case.2.cs
594 unhandled-exception-test-case-legacy.2.exe: unhandled-exception-test-case-legacy.2.cs
595 $(MCS) /debug unhandled-exception-test-case-legacy.2.cs
596 unhandled-exception-test-runner.2.exe: unhandled-exception-test-runner.2.cs
597 $(MCS) /debug unhandled-exception-test-runner.2.cs
599 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
600 $(RUNTIME) unhandled-exception-test-runner.2.exe RUNTIME:../mini/mono,GTC:F
602 EXTRA_DIST += bug-80307.cs
603 bug-80307.exe: $(srcdir)/bug-80307.cs
604 $(MCS) -r:System.Web -out:$@ $(srcdir)/bug-80307.cs
606 # We use 'test-support-files' to handle an ordering issue between the 'mono/' and 'runtime/' directories
607 test-bug-80307: bug-80307.exe
608 cd $(top_builddir)/runtime && $(MAKE) test-support-files
609 $(RUNTIME) bug-80307.exe
611 EXTRA_DIST += bug-81673.cs bug-81673-interface.cs
612 bug-81673.exe bug-81673-interface.dll: $(srcdir)/bug-81673.cs $(srcdir)/bug-81673-interface.cs
613 $(MCS) -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
614 $(MCS) -out:bug-81673.exe -r:bug-81673-interface.dll $(srcdir)/bug-81673.cs
615 $(MCS) -define:WITH_STOP -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
617 test-bug-81673 : bug-81673.exe bug-81673-interface.dll
618 $(RUNTIME) bug-81673.exe
620 EXTRA_DIST += bug-81691.cs bug-81691-a.cs bug-81691-b.cs
621 bug-81691.exe bug-81691-b.dll: $(srcdir)/bug-81691.cs $(srcdir)/bug-81691-a.cs $(srcdir)/bug-81691-b.cs
622 $(MCS) -target:library -out:bug-81691-a.dll $(srcdir)/bug-81691-a.cs
623 $(MCS) -target:library -out:bug-81691-b.dll -r:bug-81691-a.dll $(srcdir)/bug-81691-b.cs
624 $(MCS) -r:bug-81691-b.dll -out:bug-81691.exe $(srcdir)/bug-81691.cs
625 rm -f bug-81691-a.dll
627 test-bug-81691 : bug-81691.exe bug-81691-b.dll
628 $(RUNTIME) bug-81691.exe
630 EXTRA_DIST += bug-81466.il bug-81466-lib.il
631 bug-81466-lib.dll: bug-81466-lib.il
632 $(ILASM) /dll /output:bug-81466-lib.dll $(srcdir)/bug-81466-lib.il
633 bug-81466.exe: bug-81466.il bug-81466-lib.dll
634 $(ILASM) /exe /output:bug-81466.exe $(srcdir)/bug-81466.il
635 test-bug-81466: bug-81466.exe bug-81466-lib.dll
636 $(RUNTIME) bug-81466.exe
638 EXTRA_DIST += bug-324535-il.il bug-324535.cs
639 bug-324535-il.dll : bug-324535-il.il
640 $(ILASM) /dll /output:bug-324535-il.dll $(srcdir)/bug-324535-il.il
641 bug-324535.exe : bug-324535.cs bug-324535-il.dll
642 $(MCS) -r:bug-324535-il.dll -out:bug-324535.exe $(srcdir)/bug-324535.cs
643 test-bug-324535 : bug-324535.exe bug-324535-il.dll
644 $(RUNTIME) bug-324535.exe
646 EXTRA_DIST += make_imt_test.sh
647 imt_big_iface_test.cs: $(srcdir)/make_imt_test.sh
648 $(srcdir)/make_imt_test.sh > imt_big_iface_test.cs
650 EXTRA_DIST += custom-modifiers.2.cs custom-modifiers-lib.il
651 custom-modifiers-lib.dll: custom-modifiers-lib.il
652 $(ILASM) /dll /output:custom-modifiers-lib.dll $(srcdir)/custom-modifiers-lib.il
653 custom-modifiers.exe: custom-modifiers.2.cs custom-modifiers-lib.dll
654 $(MCS) -r:custom-modifiers-lib.dll -out:custom-modifiers.exe $(srcdir)/custom-modifiers.2.cs
655 custom-modifiers: custom-modifiers.exe
656 $(RUNTIME) custom-modifiers.exe
658 EXTRA_DIST += bug-382986.cs bug-382986-lib.cs
659 bug-382986-lib.dll: bug-382986-lib.cs
660 $(MCS) -target:library -out:$@ $(srcdir)/bug-382986-lib.cs
661 bug-382986.exe: bug-382986.cs bug-382986-lib.dll
662 $(MCS) -out:$@ -r:bug-382986-lib.dll $(srcdir)/bug-382986.cs
663 test-bug-382986: bug-382986.exe
664 $(RUNTIME) bug-382986.exe
666 EXTRA_DIST += coreclr-security.cs
669 coreclr-security.exe : coreclr-security.cs
670 $(SMCS) -out:coreclr-security.exe $(srcdir)/coreclr-security.cs
672 test-coreclr-security : coreclr-security.exe
673 $(RUNTIME21) --security=core-clr-test coreclr-security.exe
676 EXTRA_DIST += generic-unboxing.2.il
677 generic-unboxing.2.dll : generic-unboxing.2.il
678 $(ILASM) /dll /output:generic-unboxing.2.dll $(srcdir)/generic-unboxing.2.il
680 EXTRA_DIST += generic-boxing.2.il
681 generic-boxing.2.dll : generic-boxing.2.il generic-unboxing.2.dll
682 $(ILASM) /dll /output:generic-boxing.2.dll $(srcdir)/generic-boxing.2.il
684 EXTRA_DIST += generic-unbox.2.cs
685 generic-unbox.2.exe : generic-unbox.2.cs generic-unboxing.2.dll
686 $(MCS) -r:generic-unboxing.2.dll -out:$@ $(srcdir)/generic-unbox.2.cs
688 EXTRA_DIST += generic-box.2.cs
689 generic-box.2.exe : generic-box.2.cs generic-unboxing.2.dll generic-boxing.2.dll
690 $(MCS) -r:generic-unboxing.2.dll,generic-boxing.2.dll -out:$@ $(srcdir)/generic-box.2.cs
692 test-generic-sharing : generics-sharing.2.exe shared-generic-methods.2.exe \
693 shared-generic-synchronized.2.exe generic-initobj.2.exe \
694 generics-sharing-other-exc.2.exe generic-box.2.exe \
695 generic-unbox.2.exe generic-delegate.2.exe generic-sizeof.2.exe \
696 generic-ldobj.2.exe generic-mkrefany.2.exe \
697 generic-refanyval.2.exe generic-ldtoken.2.exe \
698 generic-ldtoken-method.2.exe generic-ldtoken-field.2.exe \
699 generic-virtual.2.exe generic-tailcall.2.exe \
700 generic-interface-methods.2.exe generic-array-type.2.exe \
701 generic-method-patching.2.exe \
702 generic-null-call.2.exe generic-tailcall2.2.exe
704 echo "Testing $$fn ..."; \
705 MONO_GENERIC_SHARING=all $(RUNTIME) -O=gshared,-inline $$fn || exit 1; \
706 MONO_GENERIC_SHARING=all $(RUNTIME) -O=gshared,-inline,shared $$fn || exit 1; \
709 EXTRA_DIST += async-exceptions.cs
710 async-exceptions.exe : async-exceptions.cs
711 $(MCS) -out:async-exceptions.exe $(srcdir)/async-exceptions.cs
712 test-async-exceptions : async-exceptions.exe
713 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
714 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
716 # Useful if mono is compiled with --enable-shared=no
719 sed -e 's,build_libtool_libs=no,build_libtool_libs=yes,g' libtool > 2; mv 2 libtool
720 sed -e 's,LIBTOOL =,LIBTOOL2 =,g' Makefile > 2 && echo "LIBTOOL = bash ./libtool" > 1 && cat 1 2 > Makefile
723 noinst_LTLIBRARIES = libtest.la
725 INCLUDES = $(GLIB_CFLAGS) $(GMODULE_CFLAGS)
728 # gcc-3.4.4 emits incorrect code when making indirect calls to stdcall functions using a tail call
729 # This shows up when compiling mono_test_marshal_delegate ()
730 libtest_la_CFLAGS=-fno-optimize-sibling-calls
731 # the exported names created by gcc for stdcall functions are missing the leading _, so MS.NET
732 # can't find them. So we use --kill-at to remove the @ suffix as well.
733 libtest_la_LDFLAGS=-no-undefined -rpath `pwd` -Wl,--kill-at
735 libtest_la_LDFLAGS = -rpath `pwd`
737 libtest_la_SOURCES = libtest.c
738 libtest_la_LIBADD = $(glib_libs)
740 CLEANFILES = $(TESTSI_CS) $(TESTSI_IL) $(STRESS_TESTS) *.dll *.stdout *.exe stest.dat