guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 50f998e04c18165e072a6c368c3435ecb07834b5
Author: Thanos Apollo <[email protected]>
AuthorDate: Sat Feb 28 15:49:25 2026 +0200

    gnu: emacs-rust-mode: Fix and enable tests.
    
    * gnu/packages/emacs-xyz.scm (emacs-rust-mode)
    [arguments]: Convert to list of G-Expressions.
    <#:tests?>: Enable.
    <#:phases>: Add ‘patch-makefile’.
    
    Merges guix/guix!6772
    
    Change-Id: I99557fb898055793acaf40020d7d75a5d244c8ef
    Signed-off-by: Cayetano Santos <[email protected]>
---
 gnu/packages/emacs-xyz.scm | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index dd2cb130e0..14bf59bfc7 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -34104,8 +34104,20 @@ docstring of the thing at point.")
         (base32 "14al12fh707flb9aqz8b70mbb3b7ah5anal4ch60q68m0zzas56i"))))
     (build-system emacs-build-system)
     (arguments
-     `(#:tests? #false                  ;FIXME: phase fail with status 127
-       #:test-command '("make test")))
+     (list
+      #:test-command #~(list "make" "test")
+      #:phases
+      #~(modify-phases %standard-phases
+          ;; The Makefile uses 'eask' (a Node.js CLI wrapper) to run
+          ;; ERT tests.  Replace with direct Emacs invocations to avoid
+          ;; the heavyweight dependency.
+          (add-after 'unpack 'patch-makefile
+            (lambda _
+              (substitute* "Makefile"
+                (("\\$\\(EASK\\) test ert ([^ \t\n]+)" all test-file)
+                 (string-append
+                  "emacs --batch -L . -l ert -l " test-file
+                  " -f ert-run-tests-batch-and-exit"))))))))
     (home-page "https://github.com/rust-lang/rust-mode";)
     (synopsis "Major Emacs mode for editing Rust source code")
     (description "This package provides a major Emacs mode for editing Rust

Reply via email to