aboutsummaryrefslogtreecommitdiff
path: root/tests/guix-pack.sh
diff options
context:
space:
mode:
authorLudovic Courtès <ludovic.courtes@inria.fr>2018-05-07 10:44:18 +0200
committerLudovic Courtès <ludo@gnu.org>2018-05-07 10:46:07 +0200
commitaad16cc1965ab3488449c262455eb29b15c77e95 (patch)
tree111a2532a58f667fdb69ef2cbeb0225ac08b49e4 /tests/guix-pack.sh
parentdf6f86a0cb652172329597701683cfa837ddced2 (diff)
downloadpatches-aad16cc1965ab3488449c262455eb29b15c77e95.tar
patches-aad16cc1965ab3488449c262455eb29b15c77e95.tar.gz
pack: Honor package transformation options.
Previously they would silently be ignored. * guix/scripts/pack.scm (guix-pack)[manifest-from-args]: Add 'store' parameter. Call 'options->transformation' and use it. Move 'with-store' and 'parameterize' around the 'let'. * tests/guix-pack.sh: Add test using '--with-source'.
Diffstat (limited to 'tests/guix-pack.sh')
-rw-r--r--tests/guix-pack.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/guix-pack.sh b/tests/guix-pack.sh
index d34f72015f..ec56ac96a2 100644
--- a/tests/guix-pack.sh
+++ b/tests/guix-pack.sh
@@ -83,3 +83,10 @@ guix pack --dry-run --bootstrap -f docker -S /opt/gnu=/ guile-bootstrap
# Build a tarball pack of cross-compiled software. Use coreutils because
# guile-bootstrap is not intended to be cross-compiled.
guix pack --dry-run --bootstrap --target=arm-unknown-linux-gnueabihf coreutils
+
+# Make sure package transformation options are honored.
+mkdir -p "$test_directory"
+drv1="`guix pack -n guile 2>&1 | grep pack.*\.drv`"
+drv2="`guix pack -n --with-source=guile=$test_directory guile 2>&1 | grep pack.*\.drv`"
+test -n "$drv1"
+test "$drv1" != "$drv2"