andreas pushed a commit to branch master
in repository guix.
commit 52ce48e754a77675da69e14d8f0dfa5fb76539ef
Author: Suhail Singh <[email protected]>
AuthorDate: Wed Apr 2 10:42:12 2025 -0400
gnu: emacs-ellama: Enable tests.
* gnu/packages/emacs-xyz.scm (emacs-ellama)[arguments]: Enable tests;
skip failing.
Change-Id: I1b468c7b30ad35ae553d354ef63da2d4d1c056a7
Signed-off-by: Andreas Enge <[email protected]>
---
gnu/packages/emacs-xyz.scm | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index c79e1e507e..0c49bb5d4d 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -5790,6 +5790,20 @@ that the binary uses instead of the actual binary
contents.")
(sha256 (base32
"1019vwrm95ck2gi29mvwd7sy753zgwa3addw2x0qbhvb3r53620v"))))
(build-system emacs-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-failing-tests
+ (lambda _
+ (substitute* (find-files "tests/" "\\.el$")
+ (("\\(ert-deftest
test-ellama-context-element-extract-info-node .*" all)
+ (string-append all "(skip-unless nil)\n"))))))
+ #:tests? #t
+ #:test-command #~(list "emacs" "-Q" "--batch"
+ "-l" "ellama.el"
+ "-l" "tests/test-ellama.el"
+ "-f" "ert-run-tests-batch-and-exit")))
(propagated-inputs (list emacs-compat emacs-llm emacs-plz emacs-transient))
(home-page "https://github.com/s-kostyaev/ellama")
(synopsis "Tool for interacting with LLMs")