aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/packages.scm13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/packages.scm b/tests/packages.scm
index 88d21e0578..ceb2299748 100644
--- a/tests/packages.scm
+++ b/tests/packages.scm
@@ -124,6 +124,19 @@
("d" ,d) ("d/x" "something.drv"))
(pk 'x (package-transitive-inputs e))))))
+(test-equal "package-transitive-supported-systems"
+ '(("x" "y" "z")
+ ("x" "y")
+ ("y"))
+ (let* ((a (dummy-package "a" (supported-systems '("x" "y" "z"))))
+ (b (dummy-package "b" (supported-systems '("x" "y"))
+ (inputs `(("a" ,a)))))
+ (c (dummy-package "c" (supported-systems '("y" "z"))
+ (inputs `(("b" ,b))))))
+ (list (package-transitive-supported-systems a)
+ (package-transitive-supported-systems b)
+ (package-transitive-supported-systems c))))
+
(test-skip (if (not %store) 8 0))
(test-assert "package-source-derivation, file"