2004-05-03 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mono / benchmark / Makefile.am
1 TEST_PROG=../mini/mono
2 RUNTIME_ARGS="-O=all"
3
4 CSC=mcs
5
6
7 TESTSRC=                        \
8         fib.cs                  \
9         life.cs                 \
10         castclass.cs            \
11         commute.cs              \
12         isinst.cs               \
13         sbperf1.cs              \
14         sbperf2.cs              \
15         iconst-byte.cs          \
16         inline1.cs              \
17         inline2.cs              \
18         inline3.cs              \
19         inline4.cs              \
20         inline5.cs              \
21         inline6.cs              \
22         inline-readonly.cs      \
23         muldiv.cs               \
24         loops.cs                \
25         initlocals.cs           \
26         logic.cs                \
27         switch.cs               \
28         ctor-bench.cs           \
29         readonly.cs             \
30         readonly-byte-array.cs  \
31         readonly-inst.cs        \
32         readonly-vt.cs          \
33         bulkcpy.il              \
34         math.cs                 \
35         boxtest.cs              \
36         valuetype-hash-equals.cs \
37         vt2.cs
38
39 TESTSI_TMP=$(TESTSRC:.cs=.exe)
40 TESTSI=$(TESTSI_TMP:.il=.exe)
41
42 EXTRA_DIST=test-driver $(TESTSRC)
43
44 %.exe: %.il
45         ilasm $< /OUTPUT=$@
46
47 %.exe: %.cs
48         $(CSC) $<
49
50 test: $(TEST_PROG) $(TESTSI)
51         @failed=0; \
52         passed=0; \
53         for i in $(TESTSI); do  \
54                 if ./test-driver $(TEST_PROG) $$i $(RUNTIME_ARGS); \
55                 then \
56                         passed=`expr $${passed} + 1`; \
57                 else \
58                         failed=`expr $${failed} + 1`; \
59                 fi \
60         done; \
61         echo "$${passed} test(s) passed. $${failed} test(s) failed."
62
63 check:
64         @echo no check yet