aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorLars Bilke <lars.bilke@ufz.de>2024-03-08 12:08:11 +0100
committerEfraim Flashner <efraim@flashner.co.il>2024-03-12 13:48:32 +0200
commitf7e6a84e989295d86e8c776988f65c36df117095 (patch)
tree9db3dad1f51e42b16aac992b30ee82a2d73104c0 /gnu/packages
parent6cff29fb6e273e4a746dd518a07776d7c4c71b42 (diff)
downloadguix-f7e6a84e989295d86e8c776988f65c36df117095.tar.gz
guix-f7e6a84e989295d86e8c776988f65c36df117095.zip
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>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/maths.scm25
1 files 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}.