[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master ba0bb33: Treat tests in lib-src like tests in src
From: |
Reuben Thomas |
Subject: |
[Emacs-diffs] master ba0bb33: Treat tests in lib-src like tests in src |
Date: |
Mon, 21 Aug 2017 20:43:30 -0400 (EDT) |
branch: master
commit ba0bb332dd841274208f71e0739e0c5e5d231d7a
Author: Reuben Thomas <address@hidden>
Commit: Reuben Thomas <address@hidden>
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.)
---
test/Makefile.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/Makefile.in b/test/Makefile.in
index ba823ec..34d74d4 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -178,12 +178,12 @@ TESTS := $(LOGFILES:.log=)
define test_template
## A test FOO-tests depends on the source file with the similar
## name, unless FOO itself contains the string '-tests/'.
- ## The similar name is FOO.c if FOO begins with 'src/', FOO.el
+ ## The similar name is FOO.c if FOO begins with '{lib-,}src/', FOO.el
## otherwise. Although this heuristic does not identify all the
## dependencies, it is better than nothing.
ifeq (,$(patsubst %-tests,,$(1))$(findstring -tests/,$(1)))
$(1).log: $(patsubst %-tests,$(srcdir)/../%,$(1))$(if \
- $(patsubst src/%,,$(1)),.el,.c)
+ $(patsubst src/%,,$(patsubst
lib-src/%,,$(1))),.el,.c)
endif
## Short aliases that always re-run the tests, with no logging.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master ba0bb33: Treat tests in lib-src like tests in src,
Reuben Thomas <=