X-Git-Url: https://git.llucax.com/software/posixx.git/blobdiff_plain/7b35c34eaa3ee421eb5effc63801aeff69a9ffe8..b6102addd5203e385780c059185b5fddc7477afa:/test/Makefile diff --git a/test/Makefile b/test/Makefile index 94e3b2c..ea44f74 100644 --- a/test/Makefile +++ b/test/Makefile @@ -10,7 +10,7 @@ TESTCMD = ./$(TESTPRG) --detect_memory_leak=1 --report_level=short \ VALGRIND = valgrind --tool=memcheck --leak-check=yes --db-attach=no \ --num-callers=24 --leak-resolution=high --track-fds=yes \ - --suppressions=valgrind.suppressions + --suppressions=valgrind.suppressions --error-exitcode=1 SOURCES = $(shell find -name '*.cpp') @@ -36,9 +36,9 @@ endif ifneq ($(V), 1) NICE_CXX = @echo " CXX $@"; $(CXX) NICE_LINK = @echo " LINK $@"; $(CXX) -NICE_TEST = @echo " TEST"; $(TESTCMD) > /dev/null 2>&1 +NICE_TEST = @echo " TEST"; $(TESTCMD) > test_suite.log 2>&1 NICE_MEMTEST = @echo " MEMTEST"; $(VALGRIND) --log-file=valgrind.log \ - $(TESTCMD) > /dev/null 2>&1 + $(TESTCMD) > valgrind.test_suite.log 2>&1 NICE_CLEAN = @echo " CLEAN"; $(RM) else NICE_CXX = $(CXX) @@ -69,7 +69,8 @@ all: test_suite @mkdir -p $(dir $@) @set -e; rm -f $@; \ $(CC) -MM -MG -MP $(CPPFLAGS) $(ALL_CFLAGS) $< -MF $@.$$$$; \ - sed 's,\($(notdir $*)\)\.o[ :]*,$(dir $<)\1.o $@ : ,g' < $@.$$$$ > $@; \ + sed 's,\($(notdir $*)\)\.o[ :]*,$(dir $<)\1.o $@ : ,g' \ + < $@.$$$$ > $@; \ rm -f $@.$$$$ ifneq ($(MAKECMDGOALS),clean)