[Top][All Lists]

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

branch master updated: gnu: emacs-go-mode: Activate tests.

From: guix-commits
Subject: branch master updated: gnu: emacs-go-mode: Activate tests.
Date: Sun, 06 Mar 2022 16:46:04 -0500

This is an automated email from the git hooks/post-receive script.

ngz pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new f75becbb36 gnu: emacs-go-mode: Activate tests.
f75becbb36 is described below

commit f75becbb36605da75a6b0d235f565943279fdbae
Author: Nicolas Goaziou <>
AuthorDate: Sun Mar 6 22:44:51 2022 +0100

    gnu: emacs-go-mode: Activate tests.
    * gnu/packages/emacs-xyz.scm (emacs-go-mode)[arguments]: Activate tests.
 gnu/packages/emacs-xyz.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index bd222d9cc9..a7a711edb4 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -3253,7 +3253,23 @@ current match, total matches and exit status.
+      (arguments
+       (list
+        #:tests? #t
+        #:test-command #~(list "ert-runner")
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-before 'check 'fix-tests
+              ;; Two tests fail because they (wrongly) assume we run them from
+              ;; the "test" sub-directory.  Fix their expectations.
+              (lambda _
+                (let ((test-file "test/go-indentation-test.el"))
+                  (make-file-writable test-file)
+                  (substitute* test-file
+                    (("testdata/indentation_tests/" all)
+                     (string-append "test/" all)))))))))
       (build-system emacs-build-system)
+      (native-inputs (list emacs-ert-runner))
       (home-page "";)
       (synopsis "Go mode for Emacs")

reply via email to

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