summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhillip Lord <phillip.lord@russet.org.uk>2016-06-27 21:36:44 +0100
committerPhillip Lord <phillip.lord@russet.org.uk>2016-07-07 09:35:11 +0100
commit1efb208032164d21d2feb8c62b445878d3f5141c (patch)
tree5d916185469b60bbf886c27405b083cb7bf469d4 /test
parent5811404f0b86c9fa92c3e0b22505a9bb05f04145 (diff)
Run tests from non-byte compiled files
* test/Makefile.in: Eval non-byte-compiled files for tests.
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.in13
1 files changed, 8 insertions, 5 deletions
diff --git a/test/Makefile.in b/test/Makefile.in
index 7ebc0ded4e..33e625fc99 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -106,14 +106,17 @@ else
SELECTOR_ACTUAL=$(SELECTOR_EXPENSIVE)
endif
+## Byte-compile all test files to test for errors (unless explicitly
+## told not to), but then evaluate the un-byte-compiled files, because
+## they give cleaner stacktraces.
+## Beware: it approximates 'no-byte-compile', so watch out for false-positives!
%.log: %.el
- @if grep '^;.*no-byte-compile: t' $< > /dev/null; then \
- loadfile=$<; \
- else \
- loadfile=$<c; \
- ${MAKE} $$loadfile; \
+ elc=$<c; \
+ if ! grep '^;.*no-byte-compile: t' $< > /dev/null; then \
+ ${MAKE} $$elc; \
fi; \
+ loadfile=$<; \
echo Testing $$loadfile; \
stat=OK ; \
${MKDIR_P} $(dir $@) ; \