me
/
guix
Archived
1
0
Fork 0

gnu: crawl: Honor the #:tests? flag.

* gnu/packages/games.scm (crawl)[arguments]<#:phases>: Honor the #:tests? flag
in custom check phase.
master
Nicolas Goaziou 2022-08-24 16:06:46 +02:00
parent 1e16af13b0
commit 6199ee19ff
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D
1 changed files with 10 additions and 9 deletions

View File

@ -6568,15 +6568,16 @@ fish. The whole game is accompanied by quiet, comforting music.")
(("SDL_image.h") "SDL2/SDL_image.h")))) (("SDL_image.h") "SDL2/SDL_image.h"))))
(delete 'configure) (delete 'configure)
(replace 'check (replace 'check
(lambda* (#:key make-flags #:allow-other-keys) (lambda* (#:key tests? make-flags #:allow-other-keys)
(setenv "HOME" (getcwd)) (when tests?
;; Fake a terminal for the test cases. (setenv "HOME" (getcwd))
(setenv "TERM" "xterm-256color") ;; Fake a terminal for the test cases.
;; Run the tests that don't require a debug build. (setenv "TERM" "xterm-256color")
(apply invoke "make" "nondebugtest" ;; Run the tests that don't require a debug build.
(format #f "-j~d" (parallel-job-count)) (apply invoke "make" "nondebugtest"
;; Force command line build for test cases. (format #f "-j~d" (parallel-job-count))
(append make-flags '("GAME=crawl" "TILES=")))))))) ;; Force command line build for test cases.
(append make-flags '("GAME=crawl" "TILES=")))))))))
(synopsis "Roguelike dungeon crawler game") (synopsis "Roguelike dungeon crawler game")
(description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
for short) is a roguelike adventure through dungeons filled with dangerous for short) is a roguelike adventure through dungeons filled with dangerous