Commit dba6f901 authored by Ralf Jung's avatar Ralf Jung

clean up test tmpfile; remove .vo if test failed so it gets re-run

parent 981ce89e
......@@ -12,7 +12,8 @@ $(TESTFILES:.v=.vo): %.vo: %.v $(VFILES:.v=.vo)
$(HIDE)TEST="$$(basename -s .v $<)" && \
TMPFILE="$$(tempfile -p test- -s "-$$TEST")" && \
$(TIMER) $(COQC) $(COQDEBUG) $(TIMING_ARG) $(COQFLAGS) $(COQLIBS) $< $(TIMING_EXTRA) > "$$TMPFILE" && \
diff --color=auto -u "tests/$$TEST.ref" "$$TMPFILE"
(diff --color=auto -u "tests/$$TEST.ref" "$$TMPFILE" || (rm "tests/$$TEST.vo" "$$TMPFILE" && exit 1)) && \
rm "$$TMPFILE"
# a target, for convenience sake, to create the .ref file with the current output
ref: $(TESTFILES:.v=.ref)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment