summaryrefslogtreecommitdiff
path: root/tests/guix-pack.sh
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-11-20 09:57:08 +0100
committerLudovic Courtès <ludo@gnu.org>2019-11-21 11:48:30 +0100
commita2e661e95f8ab2fcb7741198234395b367a794c1 (patch)
tree830c39623fae36400c6e90d27cfbe53c05627a43 /tests/guix-pack.sh
parent59cd751852d1acab6eae6da0488d15cc743c2cc4 (diff)
pack: Add "--derivation".
* guix/scripts/pack.scm (%options, show-help): Add "--derivation". (guix-pack): Honor it. * tests/guix-pack.sh: Test it. * doc/guix.texi (Invoking guix pack): Document it.
Diffstat (limited to 'tests/guix-pack.sh')
-rw-r--r--tests/guix-pack.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/guix-pack.sh b/tests/guix-pack.sh
index 0feae6d1e83..cf4e4ca4f9b 100644
--- a/tests/guix-pack.sh
+++ b/tests/guix-pack.sh
@@ -36,6 +36,10 @@ export GUIX_BUILD_OPTIONS
36test_directory="`mktemp -d`" 36test_directory="`mktemp -d`"
37trap 'chmod -Rf +w "$test_directory"; rm -rf "$test_directory"' EXIT 37trap 'chmod -Rf +w "$test_directory"; rm -rf "$test_directory"' EXIT
38 38
39# Compute the derivation of a pack.
40drv="`guix pack coreutils -d --no-grafts`"
41guix gc -R "$drv" | grep "`guix build coreutils -d --no-grafts`"
42
39# Build a tarball with no compression. 43# Build a tarball with no compression.
40guix pack --compression=none --bootstrap guile-bootstrap 44guix pack --compression=none --bootstrap guile-bootstrap
41 45