gnu: rinutils: Respect #:tests?

* gnu/packages/games.scm (rinutils)[arguments]: Respect #:tests? in 'check.
This commit is contained in:
Tobias Geerinckx-Rice 2022-01-04 15:44:42 +01:00
parent 8646f1f7a5
commit f7e6e93662
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -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.