summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-02-16 01:37:26 +0100
committerLudovic Courtès <ludo@gnu.org>2013-02-16 01:37:26 +0100
commitd510ab46144b4c7cb27e383f0031c9b363335cd3 (patch)
treedb6f430c9f286a1dc4593a438aa6b2915b8a99fb /tests
parent0228826262b2fd01371cdaf78cfe22371b18f2d7 (diff)
downloadguix-d510ab46144b4c7cb27e383f0031c9b363335cd3.tar.gz
packages: Add `package-output'.
* guix/packages.scm (package-output): New procedure.
* tests/packages.scm ("package-output"): New test.
Diffstat (limited to 'tests')
-rw-r--r--tests/packages.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/packages.scm b/tests/packages.scm
index 32ee558518..f441532d22 100644
--- a/tests/packages.scm
+++ b/tests/packages.scm
@@ -71,7 +71,7 @@
                    ("d" ,d) ("d/x" "something.drv"))
                  (pk 'x (package-transitive-inputs e))))))
 
-(test-skip (if (not %store) 3 0))
+(test-skip (if (not %store) 4 0))
 
 (test-assert "return values"
   (let-values (((drv-path drv)
@@ -79,6 +79,13 @@
     (and (derivation-path? drv-path)
          (derivation? drv))))
 
+(test-assert "package-output"
+  (let* ((package  (dummy-package "p"))
+         (drv-path (package-derivation %store package)))
+    (and (derivation-path? drv-path)
+         (string=? (derivation-path->output-path drv-path)
+                   (package-output %store package "out")))))
+
 (test-assert "trivial"
   (let* ((p (package (inherit (dummy-package "trivial"))
               (build-system trivial-build-system)