emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 058f8a8: check-maybe shall run only default tests


From: Michael Albinus
Subject: [Emacs-diffs] emacs-25 058f8a8: check-maybe shall run only default tests
Date: Thu, 14 Jan 2016 08:11:27 +0000

branch: emacs-25
commit 058f8a8d55a6b20c68ee9728c537bb8ce50dfe81
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>

    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.
---
 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 48920ef..152e601 100644
--- a/test/automated/Makefile.in
+++ b/test/automated/Makefile.in
@@ -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:
-       address@hidden 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:
+       address@hidden f in *.log; do test ! -f $$f || mv $$f $$f~; done
+
+clean:
        -rm -f *.log *.log~
 
 bootstrap-clean: clean



reply via email to

[Prev in Thread] Current Thread [Next in Thread]