diff options
| author | Glenn Morris | 2018-12-10 20:40:16 -0500 |
|---|---|---|
| committer | Glenn Morris | 2018-12-10 20:40:16 -0500 |
| commit | 7f95e1aec3014f32366129bcbf61675ab858f053 (patch) | |
| tree | f1fde39a0ee7fcddab180517a7ab25477a209109 | |
| parent | 3729a3f88fd7ce1d8a1a7f2ea61e8c4d05e954ab (diff) | |
| download | emacs-7f95e1aec3014f32366129bcbf61675ab858f053.tar.gz emacs-7f95e1aec3014f32366129bcbf61675ab858f053.zip | |
Add test/Makefile machinery to exclude test .el files
* test/Makefile.in (EXCLUDE_TESTS): New variable.
(ELFILES): Filter out any specified exclude files.
| -rw-r--r-- | test/Makefile.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Makefile.in b/test/Makefile.in index adb316c3d9c..4548323f26a 100644 --- a/test/Makefile.in +++ b/test/Makefile.in | |||
| @@ -190,6 +190,12 @@ else | |||
| 190 | maybe_exclude_module_tests := -name emacs-module-tests.el -prune -o | 190 | maybe_exclude_module_tests := -name emacs-module-tests.el -prune -o |
| 191 | endif | 191 | endif |
| 192 | 192 | ||
| 193 | ## Optional list of .el files to exclude from testing. | ||
| 194 | ## Intended for use in automated testing where one or more files | ||
| 195 | ## has some problem and needs to be excluded. | ||
| 196 | ## To avoid writing full name, can use eg %foo-tests.el. | ||
| 197 | EXCLUDE_TESTS = | ||
| 198 | |||
| 193 | ## To speed up parallel builds, put these slow test files (which can | 199 | ## To speed up parallel builds, put these slow test files (which can |
| 194 | ## take longer than all the rest combined) at the start of the list. | 200 | ## take longer than all the rest combined) at the start of the list. |
| 195 | SLOW_TESTS = ${srcdir}/lisp/net/tramp-tests.el | 201 | SLOW_TESTS = ${srcdir}/lisp/net/tramp-tests.el |
| @@ -202,6 +208,8 @@ ELFILES := $(sort $(shell find ${srcdir} -path "${srcdir}/manual" -prune -o \ | |||
| 202 | 208 | ||
| 203 | $(foreach slow,${SLOW_TESTS},$(eval ELFILES:= ${slow} $(filter-out ${slow},${ELFILES}))) | 209 | $(foreach slow,${SLOW_TESTS},$(eval ELFILES:= ${slow} $(filter-out ${slow},${ELFILES}))) |
| 204 | 210 | ||
| 211 | $(foreach exclude,${EXCLUDE_TESTS},$(eval ELFILES:= $(filter-out ${exclude},${ELFILES}))) | ||
| 212 | |||
| 205 | ## .log files may be in a different directory for out of source builds | 213 | ## .log files may be in a different directory for out of source builds |
| 206 | LOGFILES := $(patsubst %.el,%.log, \ | 214 | LOGFILES := $(patsubst %.el,%.log, \ |
| 207 | $(patsubst $(srcdir)/%,%,$(ELFILES))) | 215 | $(patsubst $(srcdir)/%,%,$(ELFILES))) |