From ff9fad1d4ba8368bc9b5dccbfb442224a1d571a3 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 11 Jul 2016 21:31:41 +0100 Subject: Makefile: have leakcheck stop on first error... instead of going through all the formats and options and probably getting the same output. --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 039089e..a03d43d 100644 --- a/Makefile +++ b/Makefile @@ -131,14 +131,12 @@ $(ALLTESTS): $(SPEC) python3 test/spec_tests.py --spec $< --dump-tests | python3 -c 'import json; import sys; tests = json.loads(sys.stdin.read()); print("\n".join([test["markdown"] for test in tests]))' > $@ leakcheck: $(ALLTESTS) - rc=0; \ for format in html man xml latex commonmark; do \ for opts in "" "--smart" "--normalize"; do \ echo "cmark -t $$format $$opts" ; \ - cat $< | valgrind -q --leak-check=full --dsymutil=yes --error-exitcode=1 $(PROG) -t $$format $$opts >/dev/null || rc=1; \ + valgrind -q --leak-check=full --dsymutil=yes --error-exitcode=1 $(PROG) -t $$format $$opts $(ALLTESTS) >/dev/null || exit 1;\ done; \ - done; \ - exit $$rc + done; fuzztest: { for i in `seq 1 10`; do \ -- cgit v1.2.3