1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-21 06:55:39 +00:00

Speed up parallel make check by testing slower files first

* test/Makefile.in (SLOW_TESTS): New variable.
(ELFILES): Move slow tests to the front.
This commit is contained in:
Glenn Morris 2018-02-21 20:49:40 -05:00
parent 5616125483
commit 3267763e6b

View File

@ -96,6 +96,7 @@ TEST_LOCALE = C
# Whether to run tests from .el files in preference to .elc, we do
# this by default since it gives nicer stacktraces.
# If you just want a pass/fail, setting this to no is much faster.
TEST_LOAD_EL ?= yes
# Maximum length of lines in ert backtraces; nil for no limit.
@ -174,11 +175,18 @@ else
maybe_exclude_module_tests := -name emacs-module-tests.el -prune -o
endif
## To speed up parallel builds, put these slow test files (which can
## take longer than all the rest combined) at the start of the list.
SLOW_TESTS = ${srcdir}/lisp/net/tramp-tests.el
ELFILES := $(sort $(shell find ${srcdir} -path "${srcdir}/manual" -prune -o \
-path "${srcdir}/data" -prune -o \
-name "*resources" -prune -o \
${maybe_exclude_module_tests} \
-name "*.el" ! -name ".*" -print))
$(foreach slow,${SLOW_TESTS},$(eval ELFILES:= ${slow} $(filter-out ${slow},${ELFILES})))
## .log files may be in a different directory for out of source builds
LOGFILES := $(patsubst %.el,%.log, \
$(patsubst $(srcdir)/%,%,$(ELFILES)))