[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/07: gnu: hypre: Honor the #:tests? flag.
From: |
guix-commits |
Subject: |
05/07: gnu: hypre: Honor the #:tests? flag. |
Date: |
Tue, 12 Mar 2024 07:51:47 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit f7e6a84e989295d86e8c776988f65c36df117095
Author: Lars Bilke <lars.bilke@ufz.de>
AuthorDate: Fri Mar 8 12:08:11 2024 +0100
gnu: hypre: Honor the #:tests? flag.
* gnu/packages/maths.scm (hypre)[arguments]: Adjust 'check phase to
honor the #:tests? flag.
Change-Id: I475fabd7d9f73ed320b97a4767830d82190c2b15
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
gnu/packages/maths.scm | 25 +++++++++++++++----------
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index bb2d7a3504..52ab4d66a0 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -7136,16 +7136,21 @@ set.")
(lambda _
(invoke "make" "-C" "docs")))
(replace 'check
- (lambda _
- (setenv "LD_LIBRARY_PATH" (string-append (getcwd) "/hypre/lib"))
- (setenv "PATH" (string-append "." ":" (getenv "PATH")))
- (invoke "make" "check" "CHECKRUN=")
- (for-each (lambda (filename)
- (let ((size (stat:size (stat filename))))
- (when (positive? size)
- (error (format #f "~a size ~d; error indication~%"
- filename size)))))
- (find-files "test" ".*\\.err$"))))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (setenv "LD_LIBRARY_PATH"
+ (string-append (getcwd) "/hypre/lib"))
+ (setenv "PATH"
+ (string-append "." ":"
+ (getenv "PATH")))
+ (invoke "make" "check" "CHECKRUN=")
+ (for-each (lambda (filename)
+ (let ((size (stat:size (stat filename))))
+ (when (positive? size)
+ (error (format #f
+ "~a size ~d; error indication~%"
+ filename size)))))
+ (find-files "test" ".*\\.err$")))))
(add-after 'install 'install-docs
(lambda* (#:key outputs #:allow-other-keys)
;; Custom install because docs/Makefile doesn't honor ${docdir}.
- branch master updated (a52701a4d3 -> fc1762fe38), guix-commits, 2024/03/12
- 02/07: gnu: rust-bindgen-cli: Add shell completions., guix-commits, 2024/03/12
- 06/07: gnu: ssh-to-age: Update to 1.1.7., guix-commits, 2024/03/12
- 03/07: gnu: syncthing: Mark as tunable., guix-commits, 2024/03/12
- 05/07: gnu: hypre: Honor the #:tests? flag.,
guix-commits <=
- 01/07: gnu: Add rust-bindgen-cli-0.69., guix-commits, 2024/03/12
- 04/07: gnu: petsc: Add tunable property., guix-commits, 2024/03/12
- 07/07: gnu: ruby-x25519: Fix build on non x86_64., guix-commits, 2024/03/12