From 9c426e19cf1dc633a8e7d927b53299504fff9bf4 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 19 Dec 2021 00:31:34 +0100 Subject: [PATCH] gnu: bear: Respect TESTS?. * gnu/packages/build-tools.scm (bear)[arguments]: Accept and respect a TESTS? keyword in the 'check phase. --- gnu/packages/build-tools.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm index eb6c32d8491b677303e8e7fbeb51fb28802be8a5..18a07f0226f82f4c35ba8b8480ce879dd4862f4a 100644 --- a/gnu/packages/build-tools.scm +++ b/gnu/packages/build-tools.scm @@ -123,10 +123,11 @@ makes a few sacrifices to acquire fast full and incremental build times.") (add-before 'check 'set-build-environment (lambda _ (setenv "CC" "gcc"))) - ;; TODO: Test Configuration is Incomplete (replace 'check - (lambda _ - (invoke "ctest")))))) + ;; TODO: Test configuration is incomplete. + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "ctest"))))))) (inputs `(("c-ares" ,c-ares) ("fmt" ,fmt)