emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/dash a06e66e 382/439: Add test for clean byte compilati


From: Phillip Lord
Subject: [elpa] externals/dash a06e66e 382/439: Add test for clean byte compilation
Date: Tue, 04 Aug 2015 20:30:56 +0000

branch: externals/dash
commit a06e66efb1a6a13ec06f49837e9cc77fcb2102fb
Author: Fredrik Bergroth <address@hidden>
Commit: Fredrik Bergroth <address@hidden>

    Add test for clean byte compilation
---
 dev/test-byte-compile.el |    8 ++++++++
 run-tests.sh             |    2 +-
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/dev/test-byte-compile.el b/dev/test-byte-compile.el
new file mode 100644
index 0000000..8d9905e
--- /dev/null
+++ b/dev/test-byte-compile.el
@@ -0,0 +1,8 @@
+(require 'ert)
+
+(ert-deftest dash-byte-compile ()
+  (let* ((cmd "emacs --quick --batch -f batch-byte-compile dash.el")
+         (res (shell-command-to-string cmd))
+         (elc (expand-file-name "dash.elc"))
+         (exp (format "Wrote %s\n" elc)))
+    (should (string= res exp))))
diff --git a/run-tests.sh b/run-tests.sh
index a72e077..50b45bb 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -4,4 +4,4 @@ if [ -z "$EMACS" ] ; then
     EMACS="emacs"
 fi
 
-$EMACS -batch -l dev/ert.el -l dash.el -l dash-functional.el -l 
dev/examples-to-tests.el -l dev/examples.el -f ert-run-tests-batch-and-exit
+$EMACS -batch -l dev/ert.el -l dash.el -l dash-functional.el -l 
dev/examples-to-tests.el -l dev/examples.el -l dev/test-byte-compile.el -f 
ert-run-tests-batch-and-exit



reply via email to

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