aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReuben Thomas2017-08-22 01:39:10 +0100
committerReuben Thomas2017-08-22 01:41:45 +0100
commitba0bb332dd841274208f71e0739e0c5e5d231d7a (patch)
treeaac3bd09d9ff9066e10955d1ac097e3ab6fc8bbc
parent891bc9822bdd9893ddf2d4fd65fd53a5da001beb (diff)
downloademacs-ba0bb332dd841274208f71e0739e0c5e5d231d7a.tar.gz
emacs-ba0bb332dd841274208f71e0739e0c5e5d231d7a.zip
Treat tests in lib-src like tests in src
* test/Makefile.in (test_template): Depend on a .c source file for a test under lib-src, as for src. (Thanks, Glenn Morris for pointing me in the right direction.)
-rw-r--r--test/Makefile.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Makefile.in b/test/Makefile.in
index ba823ec7e32..34d74d41cbb 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -178,12 +178,12 @@ TESTS := $(LOGFILES:.log=)
178define test_template 178define test_template
179 ## A test FOO-tests depends on the source file with the similar 179 ## A test FOO-tests depends on the source file with the similar
180 ## name, unless FOO itself contains the string '-tests/'. 180 ## name, unless FOO itself contains the string '-tests/'.
181 ## The similar name is FOO.c if FOO begins with 'src/', FOO.el 181 ## The similar name is FOO.c if FOO begins with '{lib-,}src/', FOO.el
182 ## otherwise. Although this heuristic does not identify all the 182 ## otherwise. Although this heuristic does not identify all the
183 ## dependencies, it is better than nothing. 183 ## dependencies, it is better than nothing.
184 ifeq (,$(patsubst %-tests,,$(1))$(findstring -tests/,$(1))) 184 ifeq (,$(patsubst %-tests,,$(1))$(findstring -tests/,$(1)))
185 $(1).log: $(patsubst %-tests,$(srcdir)/../%,$(1))$(if \ 185 $(1).log: $(patsubst %-tests,$(srcdir)/../%,$(1))$(if \
186 $(patsubst src/%,,$(1)),.el,.c) 186 $(patsubst src/%,,$(patsubst lib-src/%,,$(1))),.el,.c)
187 endif 187 endif
188 188
189 ## Short aliases that always re-run the tests, with no logging. 189 ## Short aliases that always re-run the tests, with no logging.