Archived
1
0
Fork 0

gnu: minetest: Respect --without-tests.

* gnu/packages/games.scm
  (minetest)[arguments]<#:phases>{check}: Use 'tests?' instead
  of ',(%current-target-system)'. Remove trailing #t.

Signed-off-by: Leo Prikler <leo.prikler@student.tugraz.at>
This commit is contained in:
Maxime Devos 2021-08-10 17:07:15 +02:00 committed by Leo Prikler
parent 27952318a5
commit bfadab9177
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -3633,13 +3633,12 @@ match, cannon keep, and grave-itation pit.")
(string-append (getcwd) "/games")) ; for check (string-append (getcwd) "/games")) ; for check
#t)) #t))
(replace 'check (replace 'check
(lambda _ (lambda* (#:key tests? #:allow-other-keys)
;; Thanks to our substitutions, the tests should also run ;; Thanks to our substitutions, the tests should also run
;; when invoked on the target outside of `guix build'. ;; when invoked on the target outside of `guix build'.
(unless ,(%current-target-system) (when tests?
(setenv "HOME" "/tmp") (setenv "HOME" "/tmp")
(invoke "src/minetest" "--run-unittests")) (invoke "src/minetest" "--run-unittests")))))))
#t)))))
(native-search-paths (native-search-paths
(list (search-path-specification (list (search-path-specification
(variable "MINETEST_SUBGAME_PATH") (variable "MINETEST_SUBGAME_PATH")