mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: emacs-window-purpose: Fix tests.
* gnu/packages/emacs-xyz.scm (emacs-window-purpose)[native-inputs]: Add emacs-ert-runner. [arguments]: Add #:test-command and #:phases.
This commit is contained in:
parent
352e0673e0
commit
9c45340fc2
1 changed files with 13 additions and 2 deletions
|
@ -15334,8 +15334,10 @@ possible, and falls back to moving the left or top border otherwise.")
|
||||||
(build-system emacs-build-system)
|
(build-system emacs-build-system)
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list emacs-let-alist emacs-imenu-list))
|
(list emacs-let-alist emacs-imenu-list))
|
||||||
|
(native-inputs (list emacs-ert-runner))
|
||||||
(arguments
|
(arguments
|
||||||
'(#:include
|
'(#:test-command (list "sh" "-c" "ert-runner < test/user-input.txt")
|
||||||
|
#:include
|
||||||
'("^[^/]+.el$"
|
'("^[^/]+.el$"
|
||||||
"^[^/]+.el.in$"
|
"^[^/]+.el.in$"
|
||||||
"^dir$"
|
"^dir$"
|
||||||
|
@ -15352,7 +15354,16 @@ possible, and falls back to moving the left or top border otherwise.")
|
||||||
"^test.el$"
|
"^test.el$"
|
||||||
"^tests.el$"
|
"^tests.el$"
|
||||||
"^[^/]+-test.el$"
|
"^[^/]+-test.el$"
|
||||||
"^[^/]+-tests.el$")))
|
"^[^/]+-tests.el$")
|
||||||
|
#:phases (modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'number-tests
|
||||||
|
(lambda _
|
||||||
|
(ert-number-tests "test/switch-test.el"
|
||||||
|
"purpose-test-temp-actions-1")))
|
||||||
|
(add-after 'unpack 'create-test-file
|
||||||
|
(lambda _
|
||||||
|
(call-with-output-file "test/user-input.txt"
|
||||||
|
(const #t)))))))
|
||||||
(home-page "https://github.com/bmag/emacs-purpose")
|
(home-page "https://github.com/bmag/emacs-purpose")
|
||||||
(synopsis "Purpose-based window management for Emacs")
|
(synopsis "Purpose-based window management for Emacs")
|
||||||
(description "Purpose is a package that introduces the concept of a
|
(description "Purpose is a package that introduces the concept of a
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue