X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Funit-tests%2FMakefile.am;h=9db0e0c98230823e073ea57b46454c647c01272f;hb=2ef81c56cd56491e6bb1396eca0f7bcf28751d0c;hp=2c2369589e143fde0125a2b1ca09046b99620031;hpb=aac7aed45e9a8933469371acb92e68154e7c0eb9;p=mono.git diff --git a/mono/unit-tests/Makefile.am b/mono/unit-tests/Makefile.am index 2c2369589e1..9db0e0c9823 100644 --- a/mono/unit-tests/Makefile.am +++ b/mono/unit-tests/Makefile.am @@ -7,7 +7,6 @@ if PLATFORM_DARWIN test_ldflags = -framework CoreFoundation -framework Foundation endif - if !CROSS_COMPILE if !HOST_WIN32 if SUPPORT_BOEHM @@ -36,9 +35,24 @@ test_conc_hashtable_CFLAGS = $(test_cflags) test_conc_hashtable_LDADD = $(test_ldadd) test_conc_hashtable_LDFLAGS = $(test_ldflags) -noinst_PROGRAMS = test-sgen-qsort test-memfuncs test-mono-linked-list-set test-conc-hashtable +test_mono_handle_SOURCES = test-mono-handle.c +test_mono_handle_CFLAGS = $(test_cflags) +test_mono_handle_LDADD = $(test_ldadd) +test_mono_handle_LDFLAGS = $(test_ldflags) + +noinst_PROGRAMS = test-sgen-qsort test-memfuncs test-mono-linked-list-set test-conc-hashtable test-mono-handle + +TESTS = test-sgen-qsort test-memfuncs test-mono-linked-list-set test-conc-hashtable test-mono-handle + +.NOTPARALLEL: -TESTS = test-sgen-qsort test-memfuncs test-mono-linked-list-set test-conc-hashtable +check-local: + if [ -e test-suite.log ]; then \ + if grep -q "# FAIL: 0\|tests passed" test-suite.log; then successbool=True && failures=0; else successbool=False && failures=1; fi; \ + echo "" > TestResult-unit-tests.xml; \ + if [ $$failures -ne 0 ]; then echo ""'> TestResult-unit-tests.xml && cat test-suite.log >> TestResult-unit-tests.xml && echo "]]>" >> TestResult-unit-tests.xml; fi; \ + echo "" >> TestResult-unit-tests.xml; \ + fi; endif SUPPORT_BOEHM endif !HOST_WIN32