gnu: glslang: Give more information on test failures.

* gnu/packages/vulkan.scm (glslang)[arguments]: Adjust the 'check phase
to run the tests in parallel, rerun tests which fail and to provide
information when a test fails.

Change-Id: I13962bb503a20338901cdd878d356e1bcce7f2eb
This commit is contained in:
Efraim Flashner 2024-04-07 09:49:30 +03:00
parent 1fed3f9877
commit 1e58b81da9
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -207,9 +207,14 @@ (define-public glslang
'())) '()))
#:phases (modify-phases %standard-phases #:phases (modify-phases %standard-phases
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? parallel-tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "ctest"))))))) (invoke "ctest"
"-j" (if parallel-tests?
(number->string (parallel-job-count))
"1")
"--rerun-failed"
"--output-on-failure")))))))
(inputs (list spirv-tools)) (inputs (list spirv-tools))
(native-inputs (native-inputs
(list pkg-config python)) (list pkg-config python))