gnu: botan: Respect #:tests?.
authorJack Hill <jackhill@jackhill.us>
Fri, 21 May 2021 19:40:39 +0000 (15:40 -0400)
committerLeo Famulari <leo@famulari.name>
Thu, 27 May 2021 17:55:24 +0000 (13:55 -0400)
* gnu/packages/crypto.scm (botan)[arguments]: Respect #:tests? in the custom
'check' phase.

Signed-off-by: Leo Famulari <leo@famulari.name>
gnu/packages/crypto.scm

index f333ace..674cb05 100644 (file)
@@ -976,7 +976,9 @@ SHA256, SHA512, SHA3, AICH, ED2K, Tiger, DC++ TTH, BitTorrent BTIH, GOST R
          (add-before 'check 'library-path-for-tests
            (lambda _ (setenv "LD_LIBRARY_PATH" (getcwd))))
          (replace 'check
-           (lambda _ (invoke "./botan-test"))))))
+           (lambda* (#:key tests? #:allow-other-keys)
+             (if tests?
+                 (invoke "./botan-test")))))))
     (native-inputs
      `(("python" ,python-wrapper)
        ("python-docutils" ,python-docutils)))