(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / tests / harness.mk
blob124103c2192749c8630c2a844f82a2542e199d45
1 thisdir = @thisdir@
2 SUBDIRS =
3 include ../../build/rules.make
5 ifeq (default, $(PROFILE))
6 # force this, we don't case if CSC is broken. This also
7 # means we can use --options, yay.
9 MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MCS)
10 endif
12 all-local $(STD_TARGETS:=-local):
14 %.res:
15 @f=../$*.cs; options=`sed -n 's,^// Compiler options:,,p' $$f`; \
16 case $$options in *-t:library*) ext=dll ;; *-t:module*) ext=netmodule ;; *) ext=exe ;; esac; \
17 testlogfile="$*.log" ; \
18 echo "*** $(CSCOMPILE) $$options -out:$*.$$ext $$f" > $$testlogfile ; \
19 if $(CSCOMPILE) $$options -out:$*.$$ext $$f >> $$testlogfile 2>&1 ; then \
20 if test -f $*.exe; then \
21 echo "*** $(TEST_RUNTIME) ./$*.exe" >> $$testlogfile ; \
22 if $(TEST_RUNTIME) -O=-all ./$*.exe >> $$testlogfile 2>&1 ; then \
23 echo "PASS: $*" > $@ ; \
24 rm -f $$testlogfile ; \
25 else \
26 echo "Exit code: $$?" >> $$testlogfile ; \
27 echo "FAIL: $*" > $@ ; \
28 fi ; \
29 else \
30 echo "PASS: $*: compilation" > $@ ; \
31 rm -f $$testlogfile ; \
32 fi ; \
33 else \
34 echo "Exit code: $$?" >> $$testlogfile ; \
35 echo "FAIL: $*: compilation" > $@ ; \
36 fi ; \
37 cat $@; \
38 if test ! -f $$testlogfile ; then :; else cat $$testlogfile; fi
40 # test ordering
41 mtest-1-exe.res: mtest-1-dll.res
42 prog-1.res: dll-1.res
43 prog-2.res: dll-2.res
44 conv-main.res: conv-lib.res
45 vararg-exe.res: vararg-lib.res
46 module-2.res: module-1.res
47 module-3.res: module-1.res module-2.res
48 ns.res: ns0.res
49 gen-13-exe.res: gen-13-dll.res
50 gen-17-exe.res: gen-17-dll.res
51 gen-47-exe.res: gen-47-dll.res