Add a more functional (i.e. fewer-stubs) implementation of System.Data.Linq.
[mono.git] / mono / tests / cas / threads / Makefile.am
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
3
4 RUNTIME = $(with_mono_path) $(top_builddir)/runtime/mono-wrapper --debug
5 RUNTIME2 = $(with_mono_path2) $(top_builddir)/runtime/mono-wrapper --debug
6
7 CAS_RUNTIME = $(RUNTIME) --security
8 CAS_RUNTIME2 = $(RUNTIME2) --security
9
10 CSCOMPILE = $(RUNTIME) $(mcs_topdir)/class/lib/net_1_1/mcs.exe -debug
11 PROFILE = net_1_1
12
13 EXTRA_DIST = thread1.cs thread2.cs thread3.cs \
14         tpool1.cs tpool2.cs \
15         timer1.cs timer2.cs swf-timer3.cs swf-timer4.cs \
16         delegate1.cs delegate2.cs \
17         swf-control1.cs
18
19 tests:  thread1.exe thread2.exe thread3.exe \
20         tpool1.exe tpool2.exe delegate1.exe delegate2.exe \
21         timer1.exe timer2.exe
22 #       swf-timer3.exe swf-timer4.exe swf-control1.exe
23
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 \
28         swf-control1.exe.so
29
30 FULLTRUST_TEST_FILES = thread1 thread2 thread3 \
31         tpool1 tpool2 \
32         timer1 timer2 \
33         delegate1 delegate2
34
35 UNHANDLED_TEST_FILES = 
36
37 run: tests
38         @for i in $(FULLTRUST_TEST_FILES); do   \
39                 $(CAS_RUNTIME) $$i.exe x;       \
40         done;
41         @for i in $(INTERNET_TEST_FILES); do    \
42                 MONO_CAS_ZONE=Internet $(CAS_RUNTIME) $$i.exe;  \
43         done;
44
45 test: tests
46         @failed=0; \
47         passed=0; \
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`; \
53                 else    \
54                         echo -e "fulltrust-$$i\tFAIL ($$?)";    \
55                         failed=`expr $${failed} + 1`; \
56                         failed_tests="$${failed_tests} fulltrust-$$i"; \
57                 fi;     \
58         done;   \
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"; \
65                 else    \
66                         echo -e "unhandled-$$i\tpass";  \
67                         passed=`expr $${passed} + 1`; \
68                 fi;     \
69         done;   \
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}";   \
75                 done;   \
76                 exit 1; \
77         fi
78
79 clean:
80         rm -f *.exe* *.dll* *.snk
81
82 swf-%.exe: swf-%.cs
83         $(CSCOMPILE) $^ /out:$@ /r:System.Windows.Forms.dll /r:System.Drawing.dll
84
85 %.exe: %.cs
86         $(CSCOMPILE) $^ /out:$@
87
88 %.exe.so: %.exe
89         $(RUNTIME) --aot $^