mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
packages: Add 'package->bag' test for propagated inputs.
* tests/packages.scm ("package->bag, propagated inputs"): New test.
This commit is contained in:
parent
e786293e76
commit
50373bab7a
1 changed files with 11 additions and 0 deletions
|
@ -394,6 +394,17 @@ (define read-at
|
|||
(assoc-ref (bag-build-inputs bag) "libc")
|
||||
(assoc-ref (bag-build-inputs bag) "coreutils"))))
|
||||
|
||||
(test-assert "package->bag, propagated inputs"
|
||||
(let* ((dep (dummy-package "dep"))
|
||||
(prop (dummy-package "prop"
|
||||
(propagated-inputs `(("dep" ,dep)))))
|
||||
(dummy (dummy-package "dummy"
|
||||
(inputs `(("prop" ,prop)))))
|
||||
(inputs (bag-transitive-inputs (package->bag dummy #:graft? #f))))
|
||||
(match (assoc "prop/dep" inputs)
|
||||
(("prop/dep" package)
|
||||
(eq? package dep)))))
|
||||
|
||||
(test-assert "bag->derivation"
|
||||
(let ((bag (package->bag gnu-make))
|
||||
(drv (package-derivation %store gnu-make)))
|
||||
|
|
Loading…
Reference in a new issue