Skip to content
Snippets Groups Projects
Commit dba6f901 authored by Ralf Jung's avatar Ralf Jung
Browse files

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

parent 981ce89e
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment