Commit 31eac1d1 authored by Glenn Morris's avatar Glenn Morris
Browse files

Have `make check' re-run all the tests, every time

* test/automated/Makefile.in (check-maybe): Rename from check.
(check): Re-run all the tests, every time.
(clean, mostlyclean): Also delete *.log~.
parent 4f1e5507
2014-06-27 Glenn Morris <rgm@gnu.org>
* automated/Makefile.in (check-maybe): Rename from check.
(check): Re-run all the tests, every time.
(clean, mostlyclean): Also delete *.log~.
2014-06-26 Glenn Morris <rgm@gnu.org>
* automated/package-x-test.el: Do not mess with load-path.
......
......@@ -89,13 +89,20 @@ LOGFILES = $(patsubst %.el,%.log,$(notdir ${ELFILES}))
## see what the problem was.
.PRECIOUS: %.log
check: ${LOGFILES}
## Re-run all the tests every time.
check:
-@for f in *.log; do test ! -f $$f || mv $$f $$f~; done
@${MAKE} check-maybe
## Only re-run tests whose .log is older than the test.
.PHONY: check-maybe
check-maybe: ${LOGFILES}
$(emacs) -l ert -f ert-summarize-tests-batch-and-exit $^
.PHONY: mostlyclean clean bootstrap-clean distclean maintainer-clean
clean mostlyclean:
-rm -f *.log
-rm -f *.log *.log~
bootstrap-clean: clean
-rm -f ${srcdir}/*.elc
......
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