mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-17 12:17:10 -05:00
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:
parent
3aaec33770
commit
9aa53a004f
1 changed files with 8 additions and 6 deletions
|
@ -19099,7 +19099,8 @@ (define-public emacs-macrostep
|
||||||
"1fm40mxdn289cyzgw992223dgrjmwxn4q8svyyxfaxjrpb38jhjz"))))
|
"1fm40mxdn289cyzgw992223dgrjmwxn4q8svyyxfaxjrpb38jhjz"))))
|
||||||
(build-system emacs-build-system)
|
(build-system emacs-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
'(#:tests? #t
|
||||||
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-before 'check 'remove-test
|
(add-before 'check 'remove-test
|
||||||
;; Fails because of requirement ‘/bin/sh’.
|
;; Fails because of requirement ‘/bin/sh’.
|
||||||
|
@ -19113,11 +19114,12 @@ (define-public emacs-macrostep
|
||||||
(beginning-of-line)
|
(beginning-of-line)
|
||||||
(kill-sexp))
|
(kill-sexp))
|
||||||
(basic-save-buffer))))))
|
(basic-save-buffer))))))
|
||||||
(add-before 'install 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(invoke "emacs" "--batch" "-L" "."
|
(when tests?
|
||||||
"-l" "macrostep-test.el"
|
(invoke "emacs" "--batch" "-L" "."
|
||||||
"-f" "ert-run-tests-batch-and-exit"))))))
|
"-l" "macrostep-test.el"
|
||||||
|
"-f" "ert-run-tests-batch-and-exit")))))))
|
||||||
(home-page "https://github.com/joddie/macrostep")
|
(home-page "https://github.com/joddie/macrostep")
|
||||||
(synopsis "Interactive macro-expander for Emacs")
|
(synopsis "Interactive macro-expander for Emacs")
|
||||||
(description "@code{macrostep} is an Emacs minor mode for interactively
|
(description "@code{macrostep} is an Emacs minor mode for interactively
|
||||||
|
|
Loading…
Reference in a new issue