diff options
| author | Michael Albinus | 2018-03-19 12:58:45 +0100 |
|---|---|---|
| committer | Michael Albinus | 2018-03-19 12:58:45 +0100 |
| commit | 1979bce57d1887d89de6d728bb34dcd0f6478b2f (patch) | |
| tree | f6e40f7101700c9fdca215c2cf5a6cff96d11da7 /test | |
| parent | 415ff1a0e141b74a53df1d8411113b1cd0c9ce90 (diff) | |
| download | emacs-1979bce57d1887d89de6d728bb34dcd0f6478b2f.tar.gz emacs-1979bce57d1887d89de6d728bb34dcd0f6478b2f.zip | |
Print top time consuming tests if advised
* lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit):
New argument HIGH. Print top-running tests.
* test/Makefile.in (check-doit): Use ${SUMMARIZE_TESTS}.
* test/README: Explain SUMMARIZE_TESTS.
Diffstat (limited to 'test')
| -rw-r--r-- | test/Makefile.in | 3 | ||||
| -rw-r--r-- | test/README | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/Makefile.in b/test/Makefile.in index 20e90c6ce50..bf1f9f39b71 100644 --- a/test/Makefile.in +++ b/test/Makefile.in | |||
| @@ -277,7 +277,8 @@ check-maybe: check-no-automated-subdir | |||
| 277 | ## summarizing step from running when there is an error. | 277 | ## summarizing step from running when there is an error. |
| 278 | check-doit: | 278 | check-doit: |
| 279 | -@${MAKE} -k ${LOGFILES} | 279 | -@${MAKE} -k ${LOGFILES} |
| 280 | @$(emacs) -l ert -f ert-summarize-tests-batch-and-exit ${LOGFILES} | 280 | @$(emacs) -l ert --eval \ |
| 281 | "(ert-summarize-tests-batch-and-exit ${SUMMARIZE_TESTS})" ${LOGFILES} | ||
| 281 | 282 | ||
| 282 | .PHONY: mostlyclean clean bootstrap-clean distclean maintainer-clean | 283 | .PHONY: mostlyclean clean bootstrap-clean distclean maintainer-clean |
| 283 | 284 | ||
diff --git a/test/README b/test/README index 36307e3b6c1..b9f6f65c450 100644 --- a/test/README +++ b/test/README | |||
| @@ -65,6 +65,11 @@ compiled version of a test use | |||
| 65 | 65 | ||
| 66 | make TEST_LOAD_EL=no ... | 66 | make TEST_LOAD_EL=no ... |
| 67 | 67 | ||
| 68 | Some tests might take long time to run. In order to summarize the | ||
| 69 | <nn> tests with the longest duration, call | ||
| 70 | |||
| 71 | make SUMMARIZE_TESTS=<nn> ... | ||
| 72 | |||
| 68 | 73 | ||
| 69 | (Also, see etc/compilation.txt for compilation mode font lock tests.) | 74 | (Also, see etc/compilation.txt for compilation mode font lock tests.) |
| 70 | 75 | ||