From f7e6e936624c495cf138d7fc03850a2e7f2b9467 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Tue, 4 Jan 2022 15:44:42 +0100 Subject: [PATCH] gnu: rinutils: Respect #:tests? * gnu/packages/games.scm (rinutils)[arguments]: Respect #:tests? in 'check. --- gnu/packages/games.scm | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 5896fa4333..d884df588a 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -7530,15 +7530,16 @@ (define-public rinutils (strip-store-file-name #$shlomif-cmake-modules))))) (replace 'check - (lambda _ - (with-directory-excursion "../source" - (setenv "FCS_TEST_BUILD" "1") - (setenv "RINUTILS_TEST_BUILD" "1") - ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1', - ;; which requires tidy-all. - ;; (setenv "RINUTILS_TEST_TIDY" "1") - (invoke "perl" - "CI-testing/continuous-integration-testing.pl"))))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion "../source" + (setenv "FCS_TEST_BUILD" "1") + (setenv "RINUTILS_TEST_BUILD" "1") + ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1', + ;; which requires tidy-all. + ;; (setenv "RINUTILS_TEST_TIDY" "1") + (invoke "perl" + "CI-testing/continuous-integration-testing.pl")))))))) (native-inputs (list perl ;; The following are needed only for tests.