Browse Source

build-system/gnu: Set #:tests? to #f when cross-compiling.

* guix/build/gnu-build-system.scm (check): Add `target' formal
  parameter.  Change `tests?' to default to (not target).
gn-latest-20200428
Ludovic Courtès 8 years ago
parent
commit
2f41f51c40
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      guix/build/gnu-build-system.scm

+ 2
- 2
guix/build/gnu-build-system.scm View File

@ -214,8 +214,8 @@ makefiles."
'())
,@make-flags))))
(define* (check #:key (make-flags '()) (tests? #t) (test-target "check")
(parallel-tests? #t)
(define* (check #:key target (make-flags '()) (tests? (not target))
(test-target "check") (parallel-tests? #t)
#:allow-other-keys)
(if tests?
(zero? (apply system* "make" test-target


Loading…
Cancel
Save