lilyp pushed a commit to branch emacs-team
in repository guix.

commit 4cb648a702846a9684ecb57b485e5376eb66c8a6
Author: Nicolas Graves <[email protected]>
AuthorDate: Thu Mar 20 11:08:50 2025 +0100

    gnu: emacs-cider: Fix tests.
    
    * gnu/packages/emacs-xyz.scm (emacs-cider)[arguments]: Improve style.
    {test-command}: Set it.
    {phases}: Add phase 'skip-failing-tests.
    
    Signed-off-by: Liliana Marie Prikler <[email protected]>
---
 gnu/packages/emacs-xyz.scm | 29 ++++++++++++++++++-----------
 1 file changed, 18 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 56c5ccf0e6..f66bb543ae 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -17416,17 +17416,24 @@ implementation.")
         (base32 "02lilk85a7h9wxxvxr6k69p12wslbl9xp3jkcbdn11078fwhif6j"))))
     (build-system emacs-build-system)
     (arguments
-     '(#:include (cons* "^lein\\.sh$" "^clojure\\.sh$" %default-include)
-       #:exclude                        ;don't exclude 'cider-test.el'
-       '("^\\.dir-locals\\.el$" "^test/")
-       #:phases
-       ;; XXX: file "test/cider-tests.el" contains a bogus "/bin/command"
-       ;; string, and `patch-el-files' phase chokes on it (even though the
-       ;; file is excluded from installation).  Remove the phase altogether
-       ;; since there is no "/bin/executable" to replace in the code base
-       ;; anyway.
-       (modify-phases %standard-phases
-         (delete 'patch-el-files))))
+     (list
+      #:include #~(cons* "^lein\\.sh$" "^clojure\\.sh$" %default-include)
+      #:exclude                        ;don't exclude 'cider-test.el'
+      #~(list "^\\.dir-locals\\.el$" "^test/")
+      #:test-command
+      #~(list "eldev" "--use-emacsloadpath" "-dtT" "-p" "test")
+      #:phases
+      ;; XXX: file "test/cider-tests.el" contains a bogus "/bin/command"
+      ;; string, and `patch-el-files' phase chokes on it (even though the
+      ;; file is excluded from installation).  Remove the phase altogether
+      ;; since there is no "/bin/executable" to replace in the code base
+      ;; anyway.
+      #~(modify-phases %standard-phases
+          (delete 'patch-el-files)
+          (add-before 'check 'skip-failing-tests
+            (lambda _ ;; Require network.
+              (delete-file "test/cider-jar-tests.el"))))))
+    (native-inputs (list emacs-buttercup emacs-eldev))
     (propagated-inputs
      (list emacs-clojure-mode
            emacs-parseedn

Reply via email to