diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-07-11 21:31:41 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-07-11 22:13:50 +0100 |
commit | ff9fad1d4ba8368bc9b5dccbfb442224a1d571a3 (patch) | |
tree | b44e6bddd2f2ab4a1964551713918e49169b451d /Makefile | |
parent | 7ae67bd161aa267aa540d30a6683a365f64bef3a (diff) |
Makefile: have leakcheck stop on first error...
instead of going through all the formats and options
and probably getting the same output.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 \ |