gnu: emacs-telega: Fix tests.

* gnu/packages/emacs-xyz.scm (emacs-telega)[arguments]: Add #:test-command.
<#:phases>: Move ‘check’ after ‘install’.
Add ‘set-home’ and ‘skip-ensure-dependencies’.
This commit is contained in:
Liliana Marie Prikler 2025-03-23 10:52:15 +01:00
parent e573ac3d17
commit 82b0fc907d
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -38832,6 +38832,7 @@ service, and connect it with Emacs via inter-process communication.")
emacs-minimal
;; Require wide-int support for 32-bit platform.
emacs-wide-int)
#:test-command #~(list "make" "test_el")
#:include #~(cons "^etc\\/" %default-include)
#:phases
#~(modify-phases %standard-phases
@ -38864,7 +38865,17 @@ service, and connect it with Emacs via inter-process communication.")
(substitute* "telega-core.el"
(("@TELEGA_SHARE@")
(string-append (elpa-directory (assoc-ref outputs "out"))
"/etc"))))))))
"/etc")))))
(delete 'check)
(add-after 'install 'check (assoc-ref %standard-phases 'check))
(add-before 'check 'set-home
(lambda _
(setenv "HOME" (getenv "TMPDIR"))))
(add-before 'check 'skip-ensure-dependencies
(lambda _
(substitute* "etc/telega-make.el"
(("\\(telega-ensure-dependencies\\)" all)
(string-append ";; " all))))))))
(inputs
(list emacs-telega-server ffmpeg tgs2png))
(native-inputs '())