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).
This commit is contained in:
Ludovic Courtès 2013-06-22 16:15:23 +02:00
parent 4ca968eb95
commit 2f41f51c40
1 changed files with 2 additions and 2 deletions

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