2010-06-17 Geoff Norton <gnorton@novell.com>
[mono.git] / mono / tests / cas / Makefile.am
blob8c610b76917a7604c039750d7dde71d5abddc900
1 with_mono_path = MONO_PATH=$(mcs_topdir)/class/lib/net_2_0
3 RUNTIME = $(with_mono_path) $(top_builddir)/runtime/mono-wrapper --debug --security
5 CSCOMPILE = gmcs -debug
6 PROFILE = net_2_0
8 SUBDIRS = assembly linkdemand inheritance demand threads
10 # Uncomment this for these tests to be for for 'make check'
11 #check-local: test
13 test:
14         @failed=0;      \
15         passed=0;       \
16         for i in $(SUBDIRS); do \
17                 cd $$i; \
18                 $(MAKE) test;   \
19                 if [ "$$?" != "0" ]; then       \
20                         failed=`expr $${failed} + 1`; \
21                         failed_tests="$${failed_tests} $$i"; \
22                 fi;     \
23                 cd ..;  \
24         done;   \
25         if [ "$${failed}" == "0" ]; then        \
26                 echo -e "Perfect score :-)";    \
27         else    \
28                 echo -e "Failure(s) in category:";      \
29                 for i in $${failed_tests};      \
30                         do echo -e "\t$${i}";   \
31                 done;   \
32                 exit 1; \
33         fi