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) --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
49 assemblyresolve_event.cs \
50 assemblyresolve_event3.cs \
82 typeload-unaligned.cs \
84 valuetype-gettype.cs \
86 static-constructor.cs \
96 invoke-string-ctors.cs \
104 assignable-tests.cs \
106 array-subtype-attr.cs \
112 newobj-valuetype.cs \
126 reflection-const-field.cs \
156 appdomain-client.cs \
157 appdomain-unload.cs \
192 marshal-valuetypes.cs \
193 test-byval-in-struct.cs \
198 thread-static-init.cs \
226 delegate-async-exit.cs \
227 delegate-delegate-exit.cs \
230 finalizer-exception.cs \
233 main-returns-abort-resetabort.cs \
234 main-returns-background-abort-resetabort.cs \
235 main-returns-background-resetabort.cs \
236 main-returns-background.cs \
237 main-returns-background-change.cs \
244 transparentproxy.cs \
245 imt_big_iface_test.cs \
248 soft-float-tests.cs \
250 assemblyresolve_event2.2.cs \
255 catch-generics.2.cs \
258 stackframes-async.2.cs \
259 module-cctor-loader.2.cs \
260 generics-invoke-byref.2.cs \
261 generic-signature-compare.2.cs \
262 generics-sharing.2.cs \
263 shared-generic-methods.2.cs \
264 shared-generic-synchronized.2.cs \
265 generic-inlining.2.cs \
266 generic-initobj.2.cs \
267 generic-delegate.2.cs \
268 generic-sizeof.2.cs \
269 generic-virtual.2.cs \
270 generic-interface-methods.2.cs \
271 generic-array-type.2.cs \
272 recursive-generics.2.cs \
274 dynamic-method-access.2.cs \
277 ienumerator-interfaces.2.cs \
278 array-enumerator-ifaces.2.cs \
279 generic_type_definition_encoding.2.cs \
280 generic_type_definition.2.cs \
284 bug-322722_patch_bx.2.cs \
287 bug-322722_dyn_method_throw.2.cs \
291 TEST_CS_SRC = $(BASE_TEST_CS_SRC) async-exc-compilation.cs
294 TEST_CS_SRC = $(BASE_TEST_CS_SRC) async-exc-compilation.cs
296 TEST_CS_SRC = $(BASE_TEST_CS_SRC)
301 TEST_CS_SRC+=async-exc-compilation.cs
306 PLATFORM_DISABLED_TESTS=finalizer-abort.exe finalizer-exception.exe finalizer-exit.exe
311 PLATFORM_DISABLED_TESTS=finalizer-abort.exe finalizer-exception.exe finalizer-exit.exe
315 delegate-async-exception.exe \
316 delegate-delegate-exception.exe \
317 appdomain-unload.exe \
319 $(PLATFORM_DISABLED_TESTS)
321 # These only compile with MS CSC
336 long-shift-regalloc.il \
342 static-fields-nonconst.il \
343 reload-at-bb-end.il \
344 test-enum-indstoreil.il \
351 call_missing_method.il \
352 call_missing_class.il \
353 ldfld_missing_field.il \
354 ldfld_missing_class.il \
359 ldtoken_with_byref_typespec.2.il \
360 resolve_method_bug.2.il \
361 resolve_field_bug.2.il \
362 resolve_type_bug.2.il \
363 generics-sharing-other-exc.2.il \
365 generic-mkrefany.2.il \
366 generic-ldtoken.2.il \
367 generic-ldtoken-method.2.il \
368 generic-ldtoken-field.2.il \
369 generic-tailcall.2.il
373 # pre-requisite test sources: files that are not test themselves
374 # but that need to be compiled
375 PREREQ_IL_SRC=event-il.il module-cctor.il
377 PREREQ_IL_DLL_SRC=event-il.il module-cctor.il
380 PREREQSI_IL=$(PREREQ_IL_SRC:.il=.exe)
381 PREREQSI_CS=$(PREREQ_CS_SRC:.cs=.exe)
382 TESTSI_CS=$(TEST_CS_SRC:.cs=.exe)
383 TESTSI_IL=$(TEST_IL_SRC:.il=.exe)
384 TESTBS=$(BENCHSRC:.cs=.exe)
385 STRESS_TESTS=$(STRESS_TESTS_SRC:.cs=.exe)
387 EXTRA_DIST=test-driver $(TEST_CS_SRC) $(TEST_IL_SRC) \
388 $(BENCHSRC) $(STRESS_TESTS_SRC) stress-runner.pl $(PREREQ_IL_SRC) $(PREREQ_CS_SRC)
393 %.exe: %.cs TestDriver.dll
394 $(MCS) -r:TestDriver.dll -out:$@ $<
396 # mkbundle works on ppc, but the pkg-config POC doesn't when run with make test
398 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
400 # Can't use mkbundle on win32 since there is no static build there
401 # Can't run test-unhandled-exception on Windows because of all the debug popups...
403 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
405 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
410 test : test-coreclr-security
413 assemblyresolve/test/asm.dll:
414 $(MAKE) -C assemblyresolve prereq
417 $(MCS) -target:library -out:$@ $(srcdir)/../mini/TestDriver.cs
419 test_cs: $(TEST_PROG) $(TESTSI_CS) libtest.la
422 export LD_LIBRARY_PATH="`pwd`/.libs:$${LD_LIBRARY_PATH}"; \
423 for i in $(TESTSI_CS); do \
424 if $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i '$(DISABLED_TESTS)' $(RUNTIME_ARGS); \
426 passed=`expr $${passed} + 1`; \
428 if [ $$? = 2 ]; then break; fi; \
429 failed=`expr $${failed} + 1`; \
432 echo; echo ".cs: $${passed} test(s) passed. $${failed} test(s) did not pass."; echo
434 test_il: $(TEST_PROG) $(TESTSI_IL) libtest.la
437 export LD_LIBRARY_PATH="`pwd`/.libs:$${LD_LIBRARY_PATH}"; \
438 for i in $(TESTSI_IL); do \
439 if $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i "$(DISABLED_TESTS)" $(RUNTIME_ARGS); \
441 passed=`expr $${passed} + 1`; \
443 if [ $$? = 2 ]; then break; fi; \
444 failed=`expr $${failed} + 1`; \
447 echo; echo ".il: $${passed} test(s) passed. $${failed} test(s) did not pass."; echo
449 testb: $(TEST_PROG) $(TESTBS)
450 for i in $(TESTBS); do \
451 $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i '$(DISABLED_TESTS)' $(RUNTIME_ARGS); \
454 testjit: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la $(PREREQSI_IL) $(PREREQSI_CS)
458 for i in $(TESTSI_CS) $(TESTBS) $(TESTSI_IL); do \
460 if $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$i '$(DISABLED_TESTS)' $(RUNTIME_ARGS); \
462 passed=`expr $${passed} + 1`; \
464 if [ $$? = 2 ]; then break; fi; \
465 failed=`expr $${failed} + 1`; \
466 failed_tests="$${failed_tests} $$i"; \
469 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
470 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
471 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
473 testaot: $(TESTSI_CS) $(TESTSI_IL) $(TESTBS) libtest.la
477 export LD_LIBRARY_PATH="`pwd`/.libs:$${LD_LIBRARY_PATH}"; \
478 for i in $(TESTSI_CS) $(TESTSI_IL) $(TESTBS); do \
480 $(JITTEST_PROG_RUN) --aot $${i} > /dev/null; \
481 if $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$i "$(DISABLED_TESTS)" $(RUNTIME_ARGS); \
483 passed=`expr $${passed} + 1`; \
485 if [ $$? = 2 ]; then break; fi; \
486 failed=`expr $${failed} + 1`; \
487 failed_tests="$${failed_tests} $$i"; \
490 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
491 if [ $$failed != 0 ]; then echo -e "\nFailed tests:\n"; \
492 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
495 $(MAKE) RUNTIME_ARGS="$${RUNTIME_ARGS} --trace" testjit
497 testinterp: $(TESTSI_CS) $(TESTSI_IL) libtest.la
501 export LD_LIBRARY_PATH="`pwd`/.libs:$${LD_LIBRARY_PATH}"; \
502 for i in $(TESTSI_CS) $(TESTSI_IL); do \
503 if $(srcdir)/test-driver '$(with_mono_path) $(TEST_PROG_RUN)' $$i "$(DISABLED_TESTS)" $(RUNTIME_ARGS); \
505 passed=`expr $${passed} + 1`; \
507 if [ $$? = 2 ]; then break; fi; \
508 failed=`expr $${failed} + 1`; \
509 failed_tests="$${failed_tests} $$i"; \
512 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
513 if [ $$failed != 0 ]; then echo -e "\nFailed tests:\n"; \
514 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
516 testjitspeed: $(JITTEST_PROG) $(TESTBS)
517 for i in $(TESTBS); do \
519 time $(JITTEST_PROG) $$i; \
522 test-iomap-regression: exists.cs
523 $(MCS) $(srcdir)/exists.cs -out:exists.exe
524 MONO_IOMAP=all $(RUNTIME) exists.exe
526 stresstest: $(STRESS_TESTS)
530 for i in $(STRESS_TESTS); do \
531 if $(srcdir)/stress-runner.pl $$i ../mini/mono $(RUNTIME_ARGS); \
533 passed=`expr $${passed} + 1`; \
535 if [ $$? = 2 ]; then break; fi; \
536 failed=`expr $${failed} + 1`; \
537 failed_tests="$${failed_tests} $$i"; \
540 echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
541 if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
542 for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
544 testbundle: console.exe
545 $(MKBUNDLE) --static console.exe
546 $(with_mono_path) MONO_CFG_DIR=$(mono_cfg_dir) MONO_SHARED_DIR=$(mono_build_root)/runtime ./a.out
549 EXTRA_DIST += load-missing.il t-missing.cs load-exceptions.cs
550 test-type-load: TestDriver.dll
551 $(ILASM) /dll /output:load-missing.dll $(srcdir)/load-missing.il
552 $(MCS) -t:library -out:t.dll -d:FOUND $(srcdir)/t-missing.cs
553 $(MCS) -r:TestDriver.dll -r:load-missing.dll -r:t.dll -out:load-exceptions.exe $(srcdir)/load-exceptions.cs
554 $(MCS) -t:library -out:t.dll $(srcdir)/t-missing.cs
555 $(RUNTIME) load-exceptions.exe
557 EXTRA_DIST += test-inline-call-stack-library.cs test-inline-call-stack.cs
558 test-inline-call-stack-library.dll: TestDriver.dll $(srcdir)/test-inline-call-stack-library.cs
559 $(MCS) -t:library -out:test-inline-call-stack-library.dll $(srcdir)/test-inline-call-stack-library.cs
560 test-inline-call-stack.exe: TestDriver.dll test-inline-call-stack-library.dll $(srcdir)/test-inline-call-stack.cs
561 $(MCS) -r:TestDriver.dll -r:test-inline-call-stack-library.dll -out:test-inline-call-stack.exe $(srcdir)/test-inline-call-stack.cs
562 test-inline-call-stack: TestDriver.dll test-inline-call-stack-library.dll test-inline-call-stack.exe
563 $(RUNTIME) test-inline-call-stack.exe
566 EXTRA_DIST += unhandled-exception-base-configuration.config
567 EXTRA_DIST += unhandled-exception-legacy-configuration.config
568 EXTRA_DIST += unhandled-exception-test-case.2.cs
569 EXTRA_DIST += unhandled-exception-test-runner.2.cs
570 unhandled-exception-test-case.1.cs: unhandled-exception-test-case.2.cs
571 cp unhandled-exception-test-case.2.cs unhandled-exception-test-case.1.cs
572 unhandled-exception-test-case-legacy.1.cs: unhandled-exception-test-case.1.cs
573 cp unhandled-exception-test-case.1.cs unhandled-exception-test-case-legacy.1.cs
574 unhandled-exception-test-case-legacy.2.cs: unhandled-exception-test-case.2.cs
575 cp unhandled-exception-test-case.2.cs unhandled-exception-test-case-legacy.2.cs
576 unhandled-exception-config_files: unhandled-exception-base-configuration.config unhandled-exception-legacy-configuration.config
577 cp unhandled-exception-base-configuration.config unhandled-exception-test-case.1.exe.config
578 cp unhandled-exception-base-configuration.config unhandled-exception-test-case.2.exe.config
579 cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.1.exe.config
580 cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.2.exe.config
581 unhandled-exception-test-case.1.exe: unhandled-exception-test-case.1.cs
582 $(MCS) /debug unhandled-exception-test-case.1.cs
583 unhandled-exception-test-case-legacy.1.exe: unhandled-exception-test-case-legacy.1.cs
584 $(MCS) /debug unhandled-exception-test-case-legacy.1.cs
585 unhandled-exception-test-case.2.exe: unhandled-exception-test-case.2.cs
586 $(MCS) /debug unhandled-exception-test-case.2.cs
587 unhandled-exception-test-case-legacy.2.exe: unhandled-exception-test-case-legacy.2.cs
588 $(MCS) /debug unhandled-exception-test-case-legacy.2.cs
589 unhandled-exception-test-runner.2.exe: unhandled-exception-test-runner.2.cs
590 $(MCS) /debug unhandled-exception-test-runner.2.cs
592 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
593 $(RUNTIME) unhandled-exception-test-runner.2.exe RUNTIME:../mini/mono,GTC:F
595 EXTRA_DIST += bug-80307.cs
596 bug-80307.exe: $(srcdir)/bug-80307.cs
597 $(MCS) -r:System.Web -out:$@ $(srcdir)/bug-80307.cs
599 # We use 'test-support-files' to handle an ordering issue between the 'mono/' and 'runtime/' directories
600 test-bug-80307: bug-80307.exe
601 cd $(top_builddir)/runtime && $(MAKE) test-support-files
602 $(RUNTIME) bug-80307.exe
604 EXTRA_DIST += bug-81673.cs bug-81673-interface.cs
605 bug-81673.exe bug-81673-interface.dll: $(srcdir)/bug-81673.cs $(srcdir)/bug-81673-interface.cs
606 $(MCS) -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
607 $(MCS) -out:bug-81673.exe -r:bug-81673-interface.dll $(srcdir)/bug-81673.cs
608 $(MCS) -define:WITH_STOP -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
610 test-bug-81673 : bug-81673.exe bug-81673-interface.dll
611 $(RUNTIME) bug-81673.exe
613 EXTRA_DIST += bug-81691.cs bug-81691-a.cs bug-81691-b.cs
614 bug-81691.exe bug-81691-b.dll: $(srcdir)/bug-81691.cs $(srcdir)/bug-81691-a.cs $(srcdir)/bug-81691-b.cs
615 $(MCS) -target:library -out:bug-81691-a.dll $(srcdir)/bug-81691-a.cs
616 $(MCS) -target:library -out:bug-81691-b.dll -r:bug-81691-a.dll $(srcdir)/bug-81691-b.cs
617 $(MCS) -r:bug-81691-b.dll -out:bug-81691.exe $(srcdir)/bug-81691.cs
618 rm -f bug-81691-a.dll
620 test-bug-81691 : bug-81691.exe bug-81691-b.dll
621 $(RUNTIME) bug-81691.exe
623 EXTRA_DIST += bug-81466.il bug-81466-lib.il
624 bug-81466-lib.dll: bug-81466-lib.il
625 $(ILASM) /dll /output:bug-81466-lib.dll $(srcdir)/bug-81466-lib.il
626 bug-81466.exe: bug-81466.il bug-81466-lib.dll
627 $(ILASM) /exe /output:bug-81466.exe $(srcdir)/bug-81466.il
628 test-bug-81466: bug-81466.exe bug-81466-lib.dll
629 $(RUNTIME) bug-81466.exe
631 EXTRA_DIST += bug-324535-il.il bug-324535.cs
632 bug-324535-il.dll : bug-324535-il.il
633 $(ILASM) /dll /output:bug-324535-il.dll $(srcdir)/bug-324535-il.il
634 bug-324535.exe : bug-324535.cs bug-324535-il.dll
635 $(MCS) -r:bug-324535-il.dll -out:bug-324535.exe $(srcdir)/bug-324535.cs
636 test-bug-324535 : bug-324535.exe bug-324535-il.dll
637 $(RUNTIME) bug-324535.exe
639 EXTRA_DIST += make_imt_test.sh
640 imt_big_iface_test.cs: $(srcdir)/make_imt_test.sh
641 $(srcdir)/make_imt_test.sh > imt_big_iface_test.cs
643 EXTRA_DIST += custom-modifiers.2.cs custom-modifiers-lib.il
644 custom-modifiers-lib.dll: custom-modifiers-lib.il
645 $(ILASM) /dll /output:custom-modifiers-lib.dll $(srcdir)/custom-modifiers-lib.il
646 custom-modifiers.exe: custom-modifiers.2.cs custom-modifiers-lib.dll
647 $(MCS) -r:custom-modifiers-lib.dll -out:custom-modifiers.exe $(srcdir)/custom-modifiers.2.cs
648 custom-modifiers: custom-modifiers.exe
649 $(RUNTIME) custom-modifiers.exe
651 EXTRA_DIST += bug-382986.cs bug-382986-lib.cs
652 bug-382986-lib.dll: bug-382986-lib.cs
653 $(MCS) -target:library -out:bug-382986-lib.dll bug-382986-lib.cs
654 bug-382986.exe: bug-382986.cs bug-382986-lib.dll
655 $(MCS) -out:bug-382986.exe -r:bug-382986-lib.dll bug-382986.cs
656 test-bug-382986: bug-382986.exe
657 $(RUNTIME) bug-382986.exe
659 EXTRA_DIST += coreclr-security.cs
662 coreclr-security.exe : coreclr-security.cs
663 $(SMCS) -out:coreclr-security.exe $(srcdir)/coreclr-security.cs
665 test-coreclr-security : coreclr-security.exe
666 $(RUNTIME21) --security=core-clr-test coreclr-security.exe
669 EXTRA_DIST += generic-unboxing.2.il
670 generic-unboxing.2.dll : generic-unboxing.2.il
671 $(ILASM) /dll /output:generic-unboxing.2.dll $(srcdir)/generic-unboxing.2.il
673 EXTRA_DIST += generic-boxing.2.il
674 generic-boxing.2.dll : generic-boxing.2.il generic-unboxing.2.dll
675 $(ILASM) /dll /output:generic-boxing.2.dll $(srcdir)/generic-boxing.2.il
677 EXTRA_DIST += generic-unbox.2.cs
678 generic-unbox.2.exe : generic-unbox.2.cs generic-unboxing.2.dll
679 $(MCS) -r:generic-unboxing.2.dll -out:$@ $(srcdir)/generic-unbox.2.cs
681 EXTRA_DIST += generic-box.2.cs
682 generic-box.2.exe : generic-box.2.cs generic-unboxing.2.dll generic-boxing.2.dll
683 $(MCS) -r:generic-unboxing.2.dll,generic-boxing.2.dll -out:$@ $(srcdir)/generic-box.2.cs
685 test-generic-sharing : generics-sharing.2.exe shared-generic-methods.2.exe \
686 shared-generic-synchronized.2.exe generic-initobj.2.exe \
687 generics-sharing-other-exc.2.exe generic-box.2.exe \
688 generic-unbox.2.exe generic-delegate.2.exe generic-sizeof.2.exe \
689 generic-ldobj.2.exe generic-mkrefany.2.exe \
690 generic-ldtoken.2.exe \
691 generic-ldtoken-method.2.exe generic-ldtoken-field.2.exe \
692 generic-virtual.2.exe generic-tailcall.2.exe \
693 generic-interface-methods.2.exe generic-array-type.2.exe
694 $(RUNTIME) -O=gshared,-inline generics-sharing.2.exe
695 $(RUNTIME) -O=gshared,-inline shared-generic-methods.2.exe
696 $(RUNTIME) -O=gshared,-inline shared-generic-synchronized.2.exe
697 $(RUNTIME) -O=gshared,-inline generic-initobj.2.exe
698 $(RUNTIME) -O=gshared,-inline generic-box.2.exe
699 $(RUNTIME) -O=gshared,-inline generics-sharing-other-exc.2.exe
700 $(RUNTIME) -O=gshared,-inline generic-unbox.2.exe
701 $(RUNTIME) -O=gshared,-inline generic-delegate.2.exe
702 $(RUNTIME) -O=gshared,-inline generic-sizeof.2.exe
703 $(RUNTIME) -O=gshared,-inline generic-ldobj.2.exe
704 $(RUNTIME) -O=gshared,-inline generic-mkrefany.2.exe
705 $(RUNTIME) -O=gshared,-inline generic-ldtoken.2.exe
706 $(RUNTIME) -O=gshared,-inline generic-ldtoken-method.2.exe
707 $(RUNTIME) -O=gshared,-inline generic-ldtoken-field.2.exe
708 $(RUNTIME) -O=gshared,-inline generic-virtual.2.exe
709 $(RUNTIME) -O=gshared,-inline generic-tailcall.2.exe
710 $(RUNTIME) -O=gshared,-inline generic-interface-methods.2.exe
711 $(RUNTIME) -O=gshared,-inline generic-array-type.2.exe
713 EXTRA_DIST += async-exceptions.cs
714 async-exceptions.exe : async-exceptions.cs
715 $(MCS) -out:async-exceptions.exe $(srcdir)/async-exceptions.cs
716 test-async-exceptions : async-exceptions.exe
717 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
718 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
720 # Useful if mono is compiled with --enable-shared=no
723 sed -e 's,build_libtool_libs=no,build_libtool_libs=yes,g' libtool > 2; mv 2 libtool
724 sed -e 's,LIBTOOL =,LIBTOOL2 =,g' Makefile > 2 && echo "LIBTOOL = bash ./libtool" > 1 && cat 1 2 > Makefile
727 noinst_LTLIBRARIES = libtest.la
729 INCLUDES = $(GLIB_CFLAGS) $(GMODULE_CFLAGS)
732 # gcc-3.4.4 emits incorrect code when making indirect calls to stdcall functions using a tail call
733 # This shows up when compiling mono_test_marshal_delegate ()
734 libtest_la_CFLAGS=-fno-optimize-sibling-calls
735 # the exported names created by gcc for stdcall functions are missing the leading _, so MS.NET
736 # can't find them. So we use --kill-at to remove the @ suffix as well.
737 libtest_la_LDFLAGS=-no-undefined -rpath `pwd` -Wl,--kill-at
739 libtest_la_LDFLAGS = -rpath `pwd`
741 libtest_la_SOURCES = libtest.c
742 libtest_la_LIBADD = $(glib_libs)
744 CLEANFILES = $(TESTSI_CS) $(TESTSI_IL) $(STRESS_TESTS) *.dll *.stdout *.exe stest.dat