Subject: [PATCH 12/28] gnu: emacs-parinfer-rust-mode: Fix tests.

From: Nicolas Graves <[email-masked]>
Date: Sun, 27 Apr 2025 16:52:46 +0200

* gnu/packages/emacs-xyz.scm (emacs-parinfer-rust-mode):
  [arguments]<test-command>: Set it.
  <phases>: Fix make test accessibility in phase 'configure.
  [native-inputs]: Add emacs-clojure-mode, emacs-ert-runner, emacs-paredit.
---
 gnu/packages/emacs-xyz.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index d815bc8534..1ea262f40d 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -28991,10 +28991,15 @@ (define-public emacs-parinfer-rust-mode
     (build-system emacs-build-system)
     (arguments
      (list
+      #:test-command #~(list "make" "test" "CASK=")
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'configure
             (lambda* (#:key inputs #:allow-other-keys)
+              ;; Skip all non-necessary targets.
+              (substitute* "Makefile"
+                (("^test:.*$")
+                 "test:\n"))
               (let ((parinfer-lib
                      (string-append
                       (dirname
@@ -29010,6 +29015,7 @@ (define-public emacs-parinfer-rust-mode
                   ("defcustom parinfer-rust-library-directory" parinfer-lib)
                   ("defconst parinfer-rust--lib-name"
                    "libparinfer_rust.so"))))))))
+    (native-inputs (list emacs-clojure-mode emacs-ert-runner emacs-paredit))
     (inputs (list parinfer-rust-emacs))
     (propagated-inputs (list emacs-track-changes))
     (home-page "https://github.com/justinbarclay/parinfer-rust-mode")
-- 
2.49.0