aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2016-01-14 09:11:14 +0100
committerMichael Albinus2016-01-14 09:11:14 +0100
commit058f8a8d55a6b20c68ee9728c537bb8ce50dfe81 (patch)
treea469f4c5415ee5beec723ef521d188c0285cb71d
parenta70b0642829576e5fba9a1369db99517cf055600 (diff)
downloademacs-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.in34
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!
90SELECTOR_DEFAULT=(quote (not (tag :expensive-test))) 90SELECTOR_DEFAULT = (quote (not (tag :expensive-test)))
91SELECTOR_EXPENSIVE=nil 91SELECTOR_EXPENSIVE = nil
92SELECTOR= 92SELECTOR =
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.
125check: 125check: 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
130check-expensive: 130check-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
135check-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
141check-maybe: ${LOGFILES} 135check-maybe:
136 @${MAKE} check-doit SELECTOR="${SELECTOR_DEFAULT}"
137
138## Run the tests.
139.PHONY: check-doit
140check-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
146clean mostlyclean: 145mostlyclean:
146 -@for f in *.log; do test ! -f $$f || mv $$f $$f~; done
147
148clean:
147 -rm -f *.log *.log~ 149 -rm -f *.log *.log~
148 150
149bootstrap-clean: clean 151bootstrap-clean: clean