diff options
| author | Michael Albinus | 2016-01-14 09:11:14 +0100 |
|---|---|---|
| committer | Michael Albinus | 2016-01-14 09:11:14 +0100 |
| commit | 058f8a8d55a6b20c68ee9728c537bb8ce50dfe81 (patch) | |
| tree | a469f4c5415ee5beec723ef521d188c0285cb71d | |
| parent | a70b0642829576e5fba9a1369db99517cf055600 (diff) | |
| download | emacs-058f8a8d55a6b20c68ee9728c537bb8ce50dfe81.tar.gz emacs-058f8a8d55a6b20c68ee9728c537bb8ce50dfe81.zip | |
check-maybe shall run only default tests
* test/automated/Makefile.in (check, check-expensive): Depend on
mostlyclean.
(check-maybe): Re-run only default tests.
(check-doit): Use code of check-maybe.
(mostlyclean): Move *.log files away.
| -rw-r--r-- | test/automated/Makefile.in | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/test/automated/Makefile.in b/test/automated/Makefile.in index 48920efe12e..152e601270e 100644 --- a/test/automated/Makefile.in +++ b/test/automated/Makefile.in | |||
| @@ -87,9 +87,9 @@ WRITE_LOG = > $@ 2>&1 || { stat=ERROR; cat $@; }; echo $$stat: $@ | |||
| 87 | ## to change this; bug#17848 - if that gets done, this can be simplified). | 87 | ## to change this; bug#17848 - if that gets done, this can be simplified). |
| 88 | ## | 88 | ## |
| 89 | ## Beware: it approximates 'no-byte-compile', so watch out for false-positives! | 89 | ## Beware: it approximates 'no-byte-compile', so watch out for false-positives! |
| 90 | SELECTOR_DEFAULT=(quote (not (tag :expensive-test))) | 90 | SELECTOR_DEFAULT = (quote (not (tag :expensive-test))) |
| 91 | SELECTOR_EXPENSIVE=nil | 91 | SELECTOR_EXPENSIVE = nil |
| 92 | SELECTOR= | 92 | SELECTOR = |
| 93 | %.log: ${srcdir}/%.el | 93 | %.log: ${srcdir}/%.el |
| 94 | @if grep '^;.*no-byte-compile: t' $< > /dev/null; then \ | 94 | @if grep '^;.*no-byte-compile: t' $< > /dev/null; then \ |
| 95 | loadfile=$<; \ | 95 | loadfile=$<; \ |
| @@ -121,29 +121,31 @@ endef | |||
| 121 | 121 | ||
| 122 | $(foreach test,${TESTS},$(eval $(call test_template,${test}))) | 122 | $(foreach test,${TESTS},$(eval $(call test_template,${test}))) |
| 123 | 123 | ||
| 124 | ## Rerun default tests. | 124 | ## Rerun all default tests. |
| 125 | check: | 125 | check: mostlyclean |
| 126 | @${MAKE} check-doit SELECTOR="${SELECTOR_DEFAULT}" | 126 | @${MAKE} check-doit SELECTOR="${SELECTOR_DEFAULT}" |
| 127 | 127 | ||
| 128 | ## Rerun also expensive tests. | 128 | ## Rerun all default and expensive tests. |
| 129 | .PHONY: check-expensive | 129 | .PHONY: check-expensive |
| 130 | check-expensive: | 130 | check-expensive: mostlyclean |
| 131 | @${MAKE} check-doit SELECTOR="${SELECTOR_EXPENSIVE}" | 131 | @${MAKE} check-doit SELECTOR="${SELECTOR_EXPENSIVE}" |
| 132 | 132 | ||
| 133 | ## Re-run all the tests every time. | 133 | ## Only re-run default tests whose .log is older than the test. |
| 134 | .PHONY: check-doit | ||
| 135 | check-doit: | ||
| 136 | -@for f in *.log; do test ! -f $$f || mv $$f $$f~; done | ||
| 137 | @${MAKE} check-maybe | ||
| 138 | |||
| 139 | ## Only re-run tests whose .log is older than the test. | ||
| 140 | .PHONY: check-maybe | 134 | .PHONY: check-maybe |
| 141 | check-maybe: ${LOGFILES} | 135 | check-maybe: |
| 136 | @${MAKE} check-doit SELECTOR="${SELECTOR_DEFAULT}" | ||
| 137 | |||
| 138 | ## Run the tests. | ||
| 139 | .PHONY: check-doit | ||
| 140 | check-doit: ${LOGFILES} | ||
| 142 | $(emacs) -l ert -f ert-summarize-tests-batch-and-exit $^ | 141 | $(emacs) -l ert -f ert-summarize-tests-batch-and-exit $^ |
| 143 | 142 | ||
| 144 | .PHONY: mostlyclean clean bootstrap-clean distclean maintainer-clean | 143 | .PHONY: mostlyclean clean bootstrap-clean distclean maintainer-clean |
| 145 | 144 | ||
| 146 | clean mostlyclean: | 145 | mostlyclean: |
| 146 | -@for f in *.log; do test ! -f $$f || mv $$f $$f~; done | ||
| 147 | |||
| 148 | clean: | ||
| 147 | -rm -f *.log *.log~ | 149 | -rm -f *.log *.log~ |
| 148 | 150 | ||
| 149 | bootstrap-clean: clean | 151 | bootstrap-clean: clean |