diff options
| author | Glenn Morris | 2014-06-27 09:27:08 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-06-27 09:27:08 -0700 |
| commit | 31eac1d10e23485d9ed38875300eb6ea8f8e61eb (patch) | |
| tree | 88fe155f11eea424a9c41ed7c9b5299206910d29 /test | |
| parent | 4f1e55070b5f144e37a35ac82b2d88077c0290ea (diff) | |
| download | emacs-31eac1d10e23485d9ed38875300eb6ea8f8e61eb.tar.gz emacs-31eac1d10e23485d9ed38875300eb6ea8f8e61eb.zip | |
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/ChangeLog | 6 | ||||
| -rw-r--r-- | test/automated/Makefile.in | 11 |
2 files changed, 15 insertions, 2 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 7ad0e9a4b9d..ba10d90aab1 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2014-06-27 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * automated/Makefile.in (check-maybe): Rename from check. | ||
| 4 | (check): Re-run all the tests, every time. | ||
| 5 | (clean, mostlyclean): Also delete *.log~. | ||
| 6 | |||
| 1 | 2014-06-26 Glenn Morris <rgm@gnu.org> | 7 | 2014-06-26 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * automated/package-x-test.el: Do not mess with load-path. | 9 | * automated/package-x-test.el: Do not mess with load-path. |
diff --git a/test/automated/Makefile.in b/test/automated/Makefile.in index 2670aff5dc2..fd5d92cc571 100644 --- a/test/automated/Makefile.in +++ b/test/automated/Makefile.in | |||
| @@ -89,13 +89,20 @@ LOGFILES = $(patsubst %.el,%.log,$(notdir ${ELFILES})) | |||
| 89 | ## see what the problem was. | 89 | ## see what the problem was. |
| 90 | .PRECIOUS: %.log | 90 | .PRECIOUS: %.log |
| 91 | 91 | ||
| 92 | check: ${LOGFILES} | 92 | ## Re-run all the tests every time. |
| 93 | check: | ||
| 94 | -@for f in *.log; do test ! -f $$f || mv $$f $$f~; done | ||
| 95 | @${MAKE} check-maybe | ||
| 96 | |||
| 97 | ## Only re-run tests whose .log is older than the test. | ||
| 98 | .PHONY: check-maybe | ||
| 99 | check-maybe: ${LOGFILES} | ||
| 93 | $(emacs) -l ert -f ert-summarize-tests-batch-and-exit $^ | 100 | $(emacs) -l ert -f ert-summarize-tests-batch-and-exit $^ |
| 94 | 101 | ||
| 95 | .PHONY: mostlyclean clean bootstrap-clean distclean maintainer-clean | 102 | .PHONY: mostlyclean clean bootstrap-clean distclean maintainer-clean |
| 96 | 103 | ||
| 97 | clean mostlyclean: | 104 | clean mostlyclean: |
| 98 | -rm -f *.log | 105 | -rm -f *.log *.log~ |
| 99 | 106 | ||
| 100 | bootstrap-clean: clean | 107 | bootstrap-clean: clean |
| 101 | -rm -f ${srcdir}/*.elc | 108 | -rm -f ${srcdir}/*.elc |