summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Leung <leungbk@mailfence.com>2019-09-21 06:24:28 +0200
committerBrian Leung <leungbk@mailfence.com>2019-09-21 06:35:23 +0200
commit82b545711823f6afc882331a150f45f3df14360d (patch)
tree015a144fb944f95acd81e83373c3938db907a52a
parent38f549f28d73098dc31b879ff3dd73ecb5ab043f (diff)
gnu: emacs-lispyville: Enable tests.
* gnu/packages/emacs-xyz.scm (emacs-lispyville): Enable tests.
-rw-r--r--gnu/packages/emacs-xyz.scm19
1 files changed, 19 insertions, 0 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index ad53ebaea0..98b5347f71 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -5347,6 +5347,25 @@ S-expression.")
`(("emacs-evil" ,emacs-evil)
("emacs-lispy" ,emacs-lispy)))
(build-system emacs-build-system)
+ (arguments
+ `(#:phases
+ ;; XXX: mysterious whitespace issue with one test
+ (modify-phases %standard-phases
+ (add-before 'check 'make-test-writable
+ (lambda _
+ (make-file-writable "lispyville-test.el")
+ #t))
+ (add-after 'make-test-writable 'remove-test
+ (lambda _
+ (emacs-batch-edit-file "lispyville-test.el"
+ `(progn (progn (goto-char (point-min))
+ (re-search-forward
+ "ert-deftest lispyville-comment-and-clone-dwim")
+ (beginning-of-line)
+ (kill-sexp))
+ (basic-save-buffer))))))
+ #:tests? #t
+ #:test-command '("make" "test")))
(synopsis "Minor mode for integrating Evil with lispy")
(description
"LispyVille's main purpose is to provide a Lisp editing environment