summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2022-03-02 15:15:34 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2022-03-02 15:15:34 +0100
commit9aa53a004fdc0ef7bca4de67d9d0807ed8936cb4 (patch)
treea261b52f6af8b0ed8ac18c4844850ec785c34e5a
parent3aaec337706338ddc64852b2537ddadc9faa0a69 (diff)
downloadguix-9aa53a004fdc0ef7bca4de67d9d0807ed8936cb4.tar.gz
gnu: emacs-macrostep: Honor #:tests? flag.
* gnu/packages/emacs-xyz.scm (emacs-macrostep)[arguments]<#:tests?>: Activate
tests.
<#:phases>: Honor #:tests? flag.
-rw-r--r--gnu/packages/emacs-xyz.scm14
1 files changed, 8 insertions, 6 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index a6699f2abf..1f5952fdf4 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -19099,7 +19099,8 @@ without disturbing alignment.")
                   "1fm40mxdn289cyzgw992223dgrjmwxn4q8svyyxfaxjrpb38jhjz"))))
       (build-system emacs-build-system)
       (arguments
-       '(#:phases
+       '(#:tests? #t
+         #:phases
          (modify-phases %standard-phases
            (add-before 'check 'remove-test
              ;; Fails because of requirement ‘/bin/sh’.
@@ -19113,11 +19114,12 @@ without disturbing alignment.")
                                   (beginning-of-line)
                                   (kill-sexp))
                            (basic-save-buffer))))))
-           (add-before 'install 'check
-             (lambda _
-               (invoke "emacs" "--batch" "-L" "."
-                       "-l" "macrostep-test.el"
-                       "-f" "ert-run-tests-batch-and-exit"))))))
+           (replace 'check
+             (lambda* (#:key tests? #:allow-other-keys)
+               (when tests?
+                 (invoke "emacs" "--batch" "-L" "."
+                         "-l" "macrostep-test.el"
+                         "-f" "ert-run-tests-batch-and-exit")))))))
       (home-page "https://github.com/joddie/macrostep")
       (synopsis "Interactive macro-expander for Emacs")
       (description "@code{macrostep} is an Emacs minor mode for interactively