gnu: emacs-macrostep: Honor #:tests? flag.

* gnu/packages/emacs-xyz.scm (emacs-macrostep)[arguments]<#:tests?>: Activate
tests.
<#:phases>: Honor #:tests? flag.
This commit is contained in:
Nicolas Goaziou 2022-03-02 15:15:34 +01:00
parent 3aaec33770
commit 9aa53a004f
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -19099,7 +19099,8 @@ (define-public emacs-macrostep
"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 @@ (define-public emacs-macrostep
(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