[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: gnu: libtommath: Honor the #:tests? flag.
From: |
guix-commits |
Subject: |
02/02: gnu: libtommath: Honor the #:tests? flag. |
Date: |
Thu, 1 Jun 2023 08:57:46 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit cf388642ce1af18aa1711ad2e79e850bf469e520
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Jun 1 15:45:30 2023 +0300
gnu: libtommath: Honor the #:tests? flag.
* gnu/packages/multiprecision.scm (libtommath)[arguments]: Adjust custom
'check phase to honor the #:tests? flag.
---
gnu/packages/multiprecision.scm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/multiprecision.scm b/gnu/packages/multiprecision.scm
index bb68ea06bf..51ba21162c 100644
--- a/gnu/packages/multiprecision.scm
+++ b/gnu/packages/multiprecision.scm
@@ -470,9 +470,10 @@ number generators, public key cryptography and a plethora
of other routines.")
"/lib/libtommath.a"))
#t))
(replace 'check
- (lambda* (#:key test-target make-flags #:allow-other-keys)
- (apply invoke "make" test-target make-flags)
- (invoke "sh" "test")))
+ (lambda* (#:key tests? test-target make-flags #:allow-other-keys)
+ (when tests?
+ (apply invoke "make" test-target make-flags)
+ (invoke "sh" "test"))))
(add-after 'install 'install-static-library
(lambda* (#:key outputs #:allow-other-keys)
(invoke "make" "-f" "makefile.unix" "install"