guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 28e95623ac50251886aea02264f01d3db4175ac9
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Fri Sep 25 11:06:39 2026 +0900

    gnu: ftest: Honor #:tests?.
    
    * gnu/packages/check.scm (ftest) [#:phases] {check}: Honor #:tests?.
---
 gnu/packages/check.scm | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 220e5e482e8..b5b78831bc0 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1038,11 +1038,12 @@ has been designed to be fast, light and unintrusive.")
            #:phases
            #~(modify-phases %standard-phases
                (add-before 'install 'check
-                 (lambda _
-                   (with-directory-excursion "tests"
-                     (invoke "cmake" ".")
-                     (invoke "make")
-                     (invoke "ctest")))))))
+                 (lambda* (#:key tests? #:allow-other-keys)
+                   (when tests?
+                     (with-directory-excursion "tests"
+                       (invoke "cmake" ".")
+                       (invoke "make")
+                       (invoke "ctest"))))))))
     (native-inputs (list cmake-minimal))
     (home-page "https://github.com/nemtrif/ftest";)
     (synopsis "C++ testing framework")

Reply via email to