emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex 474981f 05/95: Show summary of tests at the end


From: Tassilo Horn
Subject: [elpa] externals/auctex 474981f 05/95: Show summary of tests at the end of make check
Date: Sun, 16 Apr 2017 01:26:44 -0400 (EDT)

branch: externals/auctex
commit 474981fcdb21f7bf66e842b59f64c38047624521
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>

    Show summary of tests at the end of make check
    
    * tests/Makefile (check): Depend on `check-doit' and `mostlyclean' phony
      targets.
    (check-doit): New rule for showing summary of tests.
    (mostlyclean): Delete log files.
---
 tests/Makefile | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/tests/Makefile b/tests/Makefile
index 6f281bc..208ab72 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 2010-2014 Free Software Foundation, Inc.
+# Copyright (C) 2010-2014, 2017 Free Software Foundation, Inc.
 
 # This file is part of AUCTeX.
 
@@ -23,7 +23,7 @@
 ## filename.log: run tests from filename.el if .log file needs updating
 ## filename: re-run tests from filename.el, with no logging
 
-## Adapted from test/automated/Makefile.in of GNU Emacs.
+## Adapted from test/Makefile.in of GNU Emacs.
 
 ### Code:
 
@@ -77,11 +77,16 @@ endef
 $(foreach test,${TESTS},$(eval $(call test_template,${test})))
 
 ## Re-run all the tests every time.
-check:
-       address@hidden f in */*.log; do test ! -f $$f || mv $$f $$f~; done
-       @${MAKE} ${LOGFILES}
+check: mostlyclean check-doit
 
-.PHONY: clean
+.PHONY: check-doit
+check-doit: ${LOGFILES}
+       $(emacs) -l ert -f ert-summarize-tests-batch-and-exit $^
+
+.PHONY: mostlyclean clean
+
+mostlyclean:
+       address@hidden f in ${LOGFILES}; do test ! -f $$f || mv $$f $$f~; done
 
 clean:
        -rm -f */*.log */*.log~



reply via email to

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