emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 1efb208: Run tests from non-byte compiled files


From: Phillip Lord
Subject: [Emacs-diffs] master 1efb208: Run tests from non-byte compiled files
Date: Thu, 7 Jul 2016 08:44:26 +0000 (UTC)

branch: master
commit 1efb208032164d21d2feb8c62b445878d3f5141c
Author: Phillip Lord <address@hidden>
Commit: Phillip Lord <address@hidden>

    Run tests from non-byte compiled files
    
    * test/Makefile.in: Eval non-byte-compiled files for tests.
---
 test/Makefile.in |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/test/Makefile.in b/test/Makefile.in
index 7ebc0de..33e625f 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 $@) ; \



reply via email to

[Prev in Thread] Current Thread [Next in Thread]