[bug#37298] Enable tests for some Emacs packages.
diff mbox series

Message ID CAAc=MExrK3ivazg15QJBe=Mn5+aesYsn4AoDHw=Eq0rdPhByww@mail.gmail.com
State New
Headers show
Series
  • [bug#37298] Enable tests for some Emacs packages.
Related show

Commit Message

Brian Leung Sept. 3, 2019, 9:41 p.m. UTC
See attached.

Comments

Oleg Pyhalov Sept. 6, 2019, 9:30 a.m. UTC | #1
Hi Brian,

Awesome work.  Thank you!

I modified commit messages little bit and pushed to master.

Oleg.

Patch
diff mbox series

From f3ad77c97cb267204f29f7ed204d1f29ce5ad4eb Mon Sep 17 00:00:00 2001
From: Brian Leung <bkleung89@gmail.com>
Date: Tue, 3 Sep 2019 22:55:54 +0200
Subject: [PATCH 8/8] gnu: Enable tests for emacs-evil-traces.

* gnu/packages/emacs-xyz.scm (emacs-evil-traces): Enable tests.
---
 gnu/packages/emacs-xyz.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 117474a0d2..387e2143ea 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -17594,6 +17594,17 @@  corresponding Evil keys.")
       (build-system emacs-build-system)
       (propagated-inputs
        `(("emacs-evil" ,emacs-evil)))
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'set-shell
+             ;; Setting the SHELL environment variable is required for the tests
+             ;; to find sh.
+             (lambda _
+               (setenv "SHELL" (which "sh"))
+               #t)))
+         #:tests? #t
+         #:test-command '("make" "test")))
       (home-page "https://github.com/mamapanda/evil-traces")
       (synopsis "Visual hints for @code{evil-ex}")
       (description "This package adds visual hints to certain @code{ex}
-- 
2.23.0