mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
build/zig: Support specifying test target.
* guix/build/zig-build-system.scm (check): Accept #:test-target. Change-Id: I5b8c449b1668d98b365f897a2692085b02c7ead4
This commit is contained in:
parent
14e0c9817d
commit
585929d18c
1 changed files with 2 additions and 1 deletions
|
@ -168,6 +168,7 @@
|
||||||
(apply invoke call))))
|
(apply invoke call))))
|
||||||
|
|
||||||
(define* (check #:key tests?
|
(define* (check #:key tests?
|
||||||
|
test-target
|
||||||
zig-test-flags
|
zig-test-flags
|
||||||
target
|
target
|
||||||
parallel-tests?
|
parallel-tests?
|
||||||
|
@ -177,7 +178,7 @@
|
||||||
(let ((old-destdir (getenv "DESTDIR")))
|
(let ((old-destdir (getenv "DESTDIR")))
|
||||||
(setenv "DESTDIR" "test-out") ;; Avoid colisions with the build output
|
(setenv "DESTDIR" "test-out") ;; Avoid colisions with the build output
|
||||||
(let* ((arguments (zig-arguments))
|
(let* ((arguments (zig-arguments))
|
||||||
(call `("zig" "build" "test" "--verbose"
|
(call `("zig" "build" ,(or test-target "test") "--verbose"
|
||||||
,@(if parallel-tests?
|
,@(if parallel-tests?
|
||||||
((assoc-ref arguments "parallel-jobs")
|
((assoc-ref arguments "parallel-jobs")
|
||||||
(parallel-job-count))
|
(parallel-job-count))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue