]> git.eshelyaron.com Git - emacs.git/commitdiff
Run tests from non-byte compiled files
authorPhillip Lord <phillip.lord@russet.org.uk>
Mon, 27 Jun 2016 20:36:44 +0000 (21:36 +0100)
committerPhillip Lord <phillip.lord@russet.org.uk>
Thu, 7 Jul 2016 08:35:11 +0000 (09:35 +0100)
* test/Makefile.in: Eval non-byte-compiled files for tests.

test/Makefile.in

index 7ebc0ded4e78ed4937ebe2965ddb189d5c7cc2ed..33e625fc996c81611abc516e1f312da1311244eb 100644 (file)
@@ -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 $@) ; \