* roottypes.cs: Rename from tree.cs.
[mono.git] / mono / tests / cas / Makefile.am
1 with_mono_path = MONO_PATH=$(mcs_topdir)/class/lib/default
2 with_mono_path2 = MONO_PATH=$(mcs_topdir)/class/lib/net_2_0
3
4 RUNTIME = $(with_mono_path) $(top_builddir)/runtime/mono-wrapper --debug --security
5 RUNTIME2 = $(with_mono_path2) $(top_builddir)/runtime/mono-wrapper --debug --security
6
7 CSCOMPILE = mcs -debug
8 PROFILE = net_1_1
9
10 SUBDIRS = assembly linkdemand inheritance demand threads
11
12 # Uncomment this for these tests to be for for 'make check'
13 #check-local: test
14
15 test:
16         @failed=0;      \
17         passed=0;       \
18         for i in $(SUBDIRS); do \
19                 cd $$i; \
20                 $(MAKE) test;   \
21                 if [ "$$?" != "0" ]; then       \
22                         failed=`expr $${failed} + 1`; \
23                         failed_tests="$${failed_tests} $$i"; \
24                 fi;     \
25                 cd ..;  \
26         done;   \
27         if [ "$${failed}" == "0" ]; then        \
28                 echo -e "Perfect score :-)";    \
29         else    \
30                 echo -e "Failure(s) in category:";      \
31                 for i in $${failed_tests};      \
32                         do echo -e "\t$${i}";   \
33                 done;   \
34                 exit 1; \
35         fi