diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2018-03-16 16:19:10 +0100 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2018-03-16 16:19:10 +0100 |
commit | 2d0853f62ac65f974f25887f69506bfe923bf14b (patch) | |
tree | b80912e37a773b3e530f852e087b958e0fae24b2 /lisp/emacs-lisp/ert.el | |
parent | a402d9aacbecf4bf0b9afde592a3b90c71f96832 (diff) | |
download | emacs-2d0853f62ac65f974f25887f69506bfe923bf14b.tar.gz |
Optimize "make check" and "make check-maybe"
* lisp/emacs-lisp/ert.el (ert-run-tests-batch): Print summary duration.
* test/Makefile.in (TEST_LOAD_EL): Set default to "no" for
targets all, check, and check-maybe. (Bug#30807)
* test/README: Reflect recent changes in Makefile.
* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test99-libarchive-tests): Tag it :unstable.
Diffstat (limited to 'lisp/emacs-lisp/ert.el')
-rw-r--r-- | lisp/emacs-lisp/ert.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el index 3beb8a070fc..a15450734ec 100644 --- a/lisp/emacs-lisp/ert.el +++ b/lisp/emacs-lisp/ert.el @@ -1383,7 +1383,15 @@ Returns the stats object." (if (zerop skipped) "" (format ", %s skipped" skipped)) - (ert--format-time-iso8601 (ert--stats-end-time stats)) + (if ert-batch-print-duration + (format + "%s, %f sec" + (ert--format-time-iso8601 (ert--stats-end-time stats)) + (float-time + (time-subtract + (ert--stats-end-time stats) + (ert--stats-start-time stats)))) + (ert--format-time-iso8601 (ert--stats-end-time stats))) (if (zerop expected-failures) "" (format "\n%s expected failures" expected-failures))) |