guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#70031] [PATCH v2 15/65] gnu: fish: Fix tests.


From: Greg Hogan
Subject: [bug#70031] [PATCH v2 15/65] gnu: fish: Fix tests.
Date: Tue, 22 Oct 2024 18:09:05 +0000

* gnu/packages/shells.scm (fish)[arguments]: Replace 'check phase to
replace the old cmake-build-system test target.
---
 gnu/packages/shells.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
index 43a1fbb540..13f99bc728 100644
--- a/gnu/packages/shells.scm
+++ b/gnu/packages/shells.scm
@@ -255,6 +255,15 @@ (define-public fish
                 port)
                (close-port port))
              #t))
+         (replace 'check
+           (lambda* (#:key parallel-tests? tests? #:allow-other-keys)
+             (when tests?
+                (let ((job-count (if parallel-tests?
+                                     (number->string (parallel-job-count))
+                                     "1")))
+                  ;; Test artifacts and actions are built and run with the
+                  ;; 'test' target.
+                  (invoke "make" "-j" job-count "test")))))
          ;; Use fish-foreign-env to source /etc/profile.
          (add-before 'install 'source-etc-profile
            (lambda* (#:key inputs #:allow-other-keys)
-- 
2.46.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]