1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-17 04:20:44 +02: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:
Liliana Marie Prikler 2025-03-21 20:28:47 +01:00
parent 352e0673e0
commit 9c45340fc2
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -15334,8 +15334,10 @@ possible, and falls back to moving the left or top border otherwise.")
(build-system emacs-build-system)
(propagated-inputs
(list emacs-let-alist emacs-imenu-list))
(native-inputs (list emacs-ert-runner))
(arguments
'(#:include
'(#:test-command (list "sh" "-c" "ert-runner < test/user-input.txt")
#:include
'("^[^/]+.el$"
"^[^/]+.el.in$"
"^dir$"
@ -15352,7 +15354,16 @@ possible, and falls back to moving the left or top border otherwise.")
"^test.el$"
"^tests.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")
(synopsis "Purpose-based window management for Emacs")
(description "Purpose is a package that introduces the concept of a