3 include ../build/rules.make
5 DISTFILES = README.tests $(wildcard *.cs)
7 # We don't want debugging info :-)
12 # If you add any tests here, please do also add them to README.Tests !
16 test-1 test-2 test-3 test-4 test-5 test-6 test-7 test-8 test-9 test-10 \
17 test-11 test-12 test-13 test-14 test-15 test-16 test-17 test-18 test-19 test-20 \
18 test-21 test-22 test-23 test-24 test-25 test-26 test-27 test-28 test-29 test-30 \
19 test-31 test-32 test-33 test-34 test-35 test-36 test-37 test-38 test-39 test-40 \
20 test-41 test-42 test-43 test-44 test-46 test-47 test-48 test-49 \
21 test-51 test-52 test-54 test-55 test-56 test-57 test-59 test-60 \
22 test-61 test-62 test-63 test-64 test-65 test-66 test-68 test-69 test-70 \
23 test-71 test-72 test-73 test-74 test-75 test-76 test-77 test-78 test-79 test-80 \
24 test-81 test-82 test-83 test-84 test-85 test-86 test-87 test-88 test-89 test-90 \
25 test-92 test-93 test-94 test-95 test-96 test-97 test-98 test-99 test-100\
26 test-101 test-102 test-103 test-104 test-105 test-108 test-109 test-110\
27 test-111 test-112 test-113 test-114 test-115 test-116 test-117 test-118 test-119 \
28 test-121 test-123 test-125 test-126 test-127 test-128 test-129 test-130 \
29 test-131 test-134 test-135 test-136 test-137 test-138 test-139 test-140 \
30 test-141 test-142 test-143 test-144 test-145 test-146 test-147 test-148 test-149 test-150 \
31 test-153 test-154 test-155 test-156 test-157 test-158 test-159 test-160 \
32 test-161 test-162 test-163 test-164 test-165 test-166 test-167 test-168 test-169 test-170 \
33 test-172 test-173 test-174 test-175 test-176 test-177 test-179 test-180 \
34 test-181 test-182 test-183 test-184 test-185 test-186 test-187 test-188 test-190 \
35 test-191 test-192 test-193 test-194 test-195 test-197 test-198 test-199 test-200 \
36 test-201 test-202 test-203 test-204
40 # NOTE: Slot test-178 is free, turns out it was an unsafe test.
44 unsafe-1 unsafe-2 unsafe-3 test-58 test-171 unsafe-5 unsafe-6
49 # A test is a 'no pass' if it fails on either windows or linux
50 # Test 120 does not pass because the MS.NET runtime is buggy.
53 test-45 test-53 test-91 test-106 test-107 test-120 test-122 test-132 test-133 test-66 test-177
55 all-local install-local:
59 bootstrap-cast.exe: gen-cast-test.cs
60 $(BOOT_COMPILE) /target:exe /out:$@ $<
62 casts.cs: bootstrap-cast.exe
65 casts-mcs.exe: casts.cs
66 $(CSCOMPILE) /target:exe /out:$@ $<
68 casts-boot.exe: casts.cs
69 $(BOOT_COMPILE) /target:exe /out:$@ $<
71 boot-casts.out: casts-boot.exe
74 mcs-casts.out: casts-mcs.exe
77 test-casts: boot-casts.out mcs-casts.out
80 # compilation is part of the testing too, so we don't actually
81 # do anything in test-local.
85 run-test-local: test-compiler test-unsafe test-jit test-casts
88 rm -f *.exe *.out casts.cs
90 dist-local: dist-default
94 for i in $(TEST_SOURCES) ; do \
95 echo -n "Trying to compile $$i.cs ... " ; \
96 if $(CSCOMPILE) $$i.cs >/dev/null ; then \
104 for i in $(UNSAFE_SOURCES) ; do \
105 echo -n "Trying to compile unsafe $$i.cs ... " ; \
106 if $(CSCOMPILE) /unsafe $$i.cs >/dev/null ; then \
115 @for i in $(TEST_SOURCES) $(UNSAFE_SOURCES) ; do \
116 echo -n "Running $$i.exe with \"$(TEST_RUNTIME)\" ... " ; \
117 if $(TEST_RUNTIME) ./$$i.exe >/dev/null ; then \
124 # I don't know what this is!
127 $(CSCOMPILE) /target:library dll-1.cs
128 $(CSCOMPILE) /r:dll-1.dll prog-1.cs /out:prog-1.exe
129 $(TEST_RUNTIME) prog-1.exe