From ecd43ca862f70f60ff6e33ccad9b46d0dc302d67 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sat, 18 Feb 2017 10:23:33 +0300 Subject: [PATCH] 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). --- tests/Makefile.am | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 $? > $@ -- 2.50.1