aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGlenn Morris <[email protected]>2014-06-27 09:27:08 -0700
committerGlenn Morris <[email protected]>2014-06-27 09:27:08 -0700
commit31eac1d10e23485d9ed38875300eb6ea8f8e61eb (patch)
tree88fe155f11eea424a9c41ed7c9b5299206910d29 /test
parent4f1e55070b5f144e37a35ac82b2d88077c0290ea (diff)
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~.
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog6
-rw-r--r--test/automated/Makefile.in11
2 files changed, 15 insertions, 2 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 7ad0e9a4b9..ba10d90aab 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,9 @@
+2014-06-27 Glenn Morris <[email protected]>
+
+ * 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 <[email protected]>
* automated/package-x-test.el: Do not mess with load-path.
diff --git a/test/automated/Makefile.in b/test/automated/Makefile.in
index 2670aff5dc..fd5d92cc57 100644
--- a/test/automated/Makefile.in
+++ b/test/automated/Makefile.in
@@ -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