From: Ivan Maidanski Date: Sat, 18 Feb 2017 07:23:33 +0000 (+0300) Subject: Add Makefile target to run all tests without test-driver X-Git-Tag: v7.6.0~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ecd43ca862f70f60ff6e33ccad9b46d0dc302d67;p=libatomic_ops Add Makefile target to run all tests without test-driver This could be used to catch errors reported by MemorySanitizer (the traditional "make check" shows the tests with MSan errors as skipped, so it does not lead to a non-zero exit code of make itself). * tests/Makefile.am (check-without-test-driver): New phony target (to compile, link and execute all tests not using test-driver). --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 94c317c..418839f 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -43,6 +43,16 @@ test_malloc_LDADD = $(THREADDLLIBS) \ $(top_builddir)/src/libatomic_ops_gpl.la \ $(top_builddir)/src/libatomic_ops.la +# Run the tests directly (without test-driver): +.PHONY: check-without-test-driver +check-without-test-driver: $(TESTS) + @echo "The following will print some 'Missing ...' messages" + ./test_atomic + ./test_atomic_generalized + ./test_stack + ./test_malloc + test ! -f test_atomic_pthreads || ./test_atomic_pthreads + test_atomic_include.h: test_atomic_include.template mkdir -p `dirname $@` sed -e s:XX::g $? > $@