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