diff options
-rw-r--r-- | gnu/packages/maths.scm | 25 |
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}. |