guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: emacs-company: Enable tests.


From: Arun Isaac
Subject: 01/01: gnu: emacs-company: Enable tests.
Date: Fri, 14 Apr 2017 08:46:47 -0400 (EDT)

arunisaac pushed a commit to branch master
in repository guix.

commit 4e644ab8a6b67d1e9db459c31d8f23ee14276140
Author: Arun Isaac <address@hidden>
Date:   Fri Apr 14 13:44:02 2017 +0530

    gnu: emacs-company: Enable tests.
    
    * gnu/packages/emacs.scm (emacs-company)[arguments]: Add a 'check' phase.
---
 gnu/packages/emacs.scm | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 7105813..976ea31 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -2088,6 +2088,18 @@ build jobs.")
         (base32
          "1fyrpchpdmvszssy1qmsw41aqpv6q5rybvs1bw00nv9xdhiaq4vh"))))
     (build-system emacs-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'install 'check
+           (lambda _
+             ;; The company-files-candidates-normal-root test looks
+             ;; for the /bin directory, but the build environment has
+             ;; no /bin directory. Modify the test to look for the
+             ;; /tmp directory.
+             (substitute* "test/files-tests.el"
+               (("/bin/") "/tmp/"))
+             (zero? (system* "make" "test-batch")))))))
     (home-page "http://company-mode.github.io/";)
     (synopsis "Modular text completion framework")
     (description



reply via email to

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