* corlib.build: remove AppDomain.cs from the corlib_res.dll.
[mono.git] / mcs / tests / makefile
1 ROOT=/cygdrive/$(subst \,/,$(subst :\,/,$(SYSTEMROOT)))
2 CSC=$(ROOT)/microsoft.net/framework/v1.0.2914/csc.exe
3
4 MCS=../mcs/mcs.exe
5 VERIFY=../tools/verifier.exe
6
7 TEST_SOURCES = \
8         test-1 test-2 test-3 test-4 test-6 test-7 test-8 test-9 test-10 \
9         test-11 test-12 test-13 test-16 test-17 test-18 test-20 test-21 \
10         test-23 test-24 test-25 test-26 test-27 test-28 test-31 test-32 
11
12 TEST_NOPASS = \
13         test-5
14
15 test-compiler:
16         -rm *.exe
17         for i in $(TEST_SOURCES); do \
18                 if $(MCS) $$i.cs > /dev/null; then \
19                         if ./$$i.exe; then \
20                                 echo $$i: ok; \
21                         else \
22                                 echo failed; exit; \
23                         fi; \
24                 else \
25                         echo compiler failed on $$i;   exit; \
26                 fi \
27         done
28
29
30
31 verify:
32         for i in $(TEST_SOURCES); do \
33                 if $(MCS) -o mcs-gen-code.exe $$i.cs > /dev/null; then \
34                         if $(CSC) /out:csc-gen-code.exe $$i.cs > /dev/null; then \
35                                 if $(VERIFY) mcs-gen-code.exe csc-gen-code.exe > /dev/null; then \
36                                         echo $$i: identical assemblies; \
37                                 else \
38                                         echo $$i: unidentical assemblies; exit; \
39                                 fi; \
40                         fi \
41                 fi \
42         done
43
44
45 casts.cs: gen-cast-test.cs
46         $(CSC) /out:csc-cast.exe gen-cast-test.cs
47         ./csc-cast > casts.cs
48
49 casts-csc.exe: casts.cs
50         $(CSC) /out:casts-csc.exe casts.cs
51
52 casts.exe: casts.cs
53         $(MCS) casts.cs
54
55 csc-casts.out: casts-csc.exe
56         ./casts-csc.exe > csc-casts.out
57
58 msc-casts.out: casts.exe
59         ./casts.exe > msc-casts.out
60
61 test-casts: csc-casts.out msc-casts.out
62         cmp csc-casts.out msc-casts.out
63
64 clean:
65         rm *.exe
66         rm *.out
67         rm casts.cs
68