1 with_mono_path = MONO_PATH=$(mcs_topdir)/class/lib/net_1_1
2 with_mono_path2 = MONO_PATH=$(mcs_topdir)/class/lib/net_2_0
4 RUNTIME = $(with_mono_path) $(top_builddir)/runtime/mono-wrapper --debug
5 RUNTIME2 = $(with_mono_path2) $(top_builddir)/runtime/mono-wrapper --debug
7 CAS_RUNTIME = $(RUNTIME) --security
8 CAS_RUNTIME2 = $(RUNTIME2) --security
10 CSCOMPILE = $(RUNTIME) $(mcs_topdir)/class/lib/net_1_1/mcs.exe -debug
13 EXTRA_DIST = thread1.cs thread2.cs thread3.cs \
15 timer1.cs timer2.cs swf-timer3.cs swf-timer4.cs \
16 delegate1.cs delegate2.cs \
19 tests: thread1.exe thread2.exe thread3.exe \
20 tpool1.exe tpool2.exe delegate1.exe delegate2.exe \
22 # swf-timer3.exe swf-timer4.exe swf-control1.exe
24 aot: thread1.exe.so thread2.exe.so thread3.exe.so \
25 tpool1.exe.so tpool2.exe.so \
26 timer1.exe.so timer2.exe.so swf-timer3.exe.so swf-timer4.exe.so \
27 delegate1.exe.so delegate2.exe.so \
30 FULLTRUST_TEST_FILES = thread1 thread2 thread3 \
35 UNHANDLED_TEST_FILES =
38 @for i in $(FULLTRUST_TEST_FILES); do \
39 $(CAS_RUNTIME) $$i.exe x; \
41 @for i in $(INTERNET_TEST_FILES); do \
42 MONO_CAS_ZONE=Internet $(CAS_RUNTIME) $$i.exe; \
48 for i in $(FULLTRUST_TEST_FILES); do \
49 $(CAS_RUNTIME) $$i.exe > /dev/null; \
50 if [ "$$?" = "0" ]; then \
51 echo -e "fulltrust-$$i\tpass"; \
52 passed=`expr $${passed} + 1`; \
54 echo -e "fulltrust-$$i\tFAIL ($$?)"; \
55 failed=`expr $${failed} + 1`; \
56 failed_tests="$${failed_tests} fulltrust-$$i"; \
59 for i in $(UNHANDLED_TEST_FILES); do \
60 $(CAS_RUNTIME) $$i.exe > /dev/null; \
61 if [ "$$?" = "0" ]; then \
62 echo -e "unhandled-$$i\tFAIL ($$?)"; \
63 failed=`expr $${failed} + 1`; \
64 failed_tests="$${failed_tests} unhandled-$$i"; \
66 echo -e "unhandled-$$i\tpass"; \
67 passed=`expr $${passed} + 1`; \
70 echo -e "\n$${passed} test(s) passed. $${failed} test(s) failed."; \
71 if [ "$${failed}" != "0" ]; then \
72 echo -e "Failed tests are:"; \
73 for i in $${failed_tests}; \
74 do echo -e "\t$${i}"; \
80 rm -f *.exe* *.dll* *.snk
83 $(CSCOMPILE) $^ /out:$@ /r:System.Windows.Forms.dll /r:System.Drawing.dll
86 $(CSCOMPILE) $^ /out:$@