summaryrefslogtreecommitdiff
path: root/tests/packages.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/packages.scm')
-rw-r--r--tests/packages.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/packages.scm b/tests/packages.scm
index ceb2299748..44cdb35c4b 100644
--- a/tests/packages.scm
+++ b/tests/packages.scm
@@ -394,6 +394,17 @@
(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)))