]> git.eshelyaron.com Git - emacs.git/commitdiff
check-maybe shall run only default tests
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 14 Jan 2016 08:11:14 +0000 (09:11 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 14 Jan 2016 08:11:14 +0000 (09:11 +0100)
* 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.

test/automated/Makefile.in

index 48920efe12e5a064b106df5757e9cc0ca08931bc..152e601270e7f6a9f9e2cba6c776b0da522c6e06 100644 (file)
@@ -87,9 +87,9 @@ WRITE_LOG = > $@ 2>&1 || { stat=ERROR; cat $@; }; echo $$stat: $@
 ## to change this; bug#17848 - if that gets done, this can be simplified).
 ##
 ## Beware: it approximates 'no-byte-compile', so watch out for false-positives!
-SELECTOR_DEFAULT=(quote (not (tag :expensive-test)))
-SELECTOR_EXPENSIVE=nil
-SELECTOR=
+SELECTOR_DEFAULT = (quote (not (tag :expensive-test)))
+SELECTOR_EXPENSIVE = nil
+SELECTOR =
 %.log: ${srcdir}/%.el
        @if grep '^;.*no-byte-compile: t' $< > /dev/null; then \
          loadfile=$<; \
@@ -121,29 +121,31 @@ endef
 
 $(foreach test,${TESTS},$(eval $(call test_template,${test})))
 
-## Rerun default tests.
-check:
+## Rerun all default tests.
+check: mostlyclean
        @${MAKE} check-doit SELECTOR="${SELECTOR_DEFAULT}"
 
-## Rerun also expensive tests.
+## Rerun all default and expensive tests.
 .PHONY: check-expensive
-check-expensive:
+check-expensive: mostlyclean
        @${MAKE} check-doit SELECTOR="${SELECTOR_EXPENSIVE}"
 
-## Re-run all the tests every time.
-.PHONY: check-doit
-check-doit:
-       -@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.
+## Only re-run default tests whose .log is older than the test.
 .PHONY: check-maybe
-check-maybe: ${LOGFILES}
+check-maybe:
+       @${MAKE} check-doit SELECTOR="${SELECTOR_DEFAULT}"
+
+## Run the tests.
+.PHONY: check-doit
+check-doit: ${LOGFILES}
        $(emacs) -l ert -f ert-summarize-tests-batch-and-exit $^
 
 .PHONY: mostlyclean clean bootstrap-clean distclean maintainer-clean
 
-clean mostlyclean:
+mostlyclean:
+       -@for f in *.log; do test ! -f $$f || mv $$f $$f~; done
+
+clean:
        -rm -f *.log *.log~
 
 bootstrap-clean: clean