tests: Check the effect of '--without-tests' on implicit inputs.

* tests/transformations.scm ("options->transformation, without-tests"):
Ensure TAR has #:tests? #f.
This commit is contained in:
Ludovic Courtès 2020-12-21 12:06:11 +01:00
parent 9608f4003d
commit 5275512870
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -368,10 +368,9 @@ (define (package-name* obj)
(let ((new (t p)))
(match (bag-direct-inputs (package->bag new))
((("dep" dep) ("tar" tar) _ ...)
;; TODO: Check whether TAR has #:tests? #f when transformations
;; apply to implicit inputs.
(equal? (package-arguments dep)
'(#:tests? #f)))))))
(and (equal? (package-arguments dep) '(#:tests? #f))
(match (memq #:tests? (package-arguments tar))
((#:tests? #f _ ...) #t))))))))
(test-end)