mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: emacs-noman: Fix tests.
* gnu/packages/emacs-xyz.scm (emacs-noman): Fix tests. [source]<snippet>: Remove unwanted files. [arguments]<test-command>: Set it. <phases>: Patch tests to find bash. [native-inputs]: Add bash, emacs-ert-runner, emacs-f, makem-minimal. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
parent
ca2c68e66d
commit
c97ad04fa1
1 changed files with 17 additions and 1 deletions
|
@ -6664,8 +6664,24 @@ Lisp developers who want to write macros with convenience.")
|
|||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "0rh1p9nlhkmhfqmp507rz8hwfgwrdvxx0zba41lxsd2admai90wv"))))
|
||||
(base32 "0rh1p9nlhkmhfqmp507rz8hwfgwrdvxx0zba41lxsd2admai90wv"))
|
||||
(snippet #~(begin
|
||||
(for-each delete-file
|
||||
'("makem.sh" "Makefile" "screencast.gif"))))))
|
||||
(build-system emacs-build-system)
|
||||
(arguments
|
||||
(list #:test-command
|
||||
#~(list #$(file-append (this-package-native-input "makem")
|
||||
"/bin/makem.sh") "test")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-test
|
||||
(lambda _
|
||||
(substitute* "tests/noman-tests.el"
|
||||
(("#!/bin/bash")
|
||||
(string-append "#!" (which "bash")))))))))
|
||||
(native-inputs
|
||||
(list bash emacs-ert-runner emacs-f makem-minimal))
|
||||
(synopsis "Emacs package for browsing CLI command docs without man pages")
|
||||
(description
|
||||
"Noman is an Emacs package that parses command line help from flags like
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue