summaryrefslogtreecommitdiff
path: root/tests/guix-pack.sh
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-05-14 16:53:42 +0200
committerLudovic Courtès <ludo@gnu.org>2020-05-14 17:21:27 +0200
commit80963744a242257921917df5a901dc343d3a93db (patch)
tree3adcc9e38387470f6dc153363833254015863301 /tests/guix-pack.sh
parentf52fbf7094c9c346d38ad469cc8d92d18387786e (diff)
store: 'mapm/accumulate-builds' preserves '%current-target-system'.
Fixes <https://bugs.gnu.org/41182>. * guix/store.scm (mapm/accumulate-builds): Pass #:system and #:target to 'run-with-store'. * tests/store.scm ("mapm/accumulate-builds, %current-target-system"): New test. * tests/guix-pack.sh: Add 'guix pack -d --target' test.
Diffstat (limited to 'tests/guix-pack.sh')
-rw-r--r--tests/guix-pack.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/guix-pack.sh b/tests/guix-pack.sh
index 14e3cda3617..39b64791e2a 100644
--- a/tests/guix-pack.sh
+++ b/tests/guix-pack.sh
@@ -40,6 +40,14 @@ trap 'chmod -Rf +w "$test_directory"; rm -rf "$test_directory"' EXIT
40drv="`guix pack coreutils -d --no-grafts`" 40drv="`guix pack coreutils -d --no-grafts`"
41guix gc -R "$drv" | grep "`guix build coreutils -d --no-grafts`" 41guix gc -R "$drv" | grep "`guix build coreutils -d --no-grafts`"
42 42
43# Compute the derivation of a cross-compiled pack. Make sure it refers to the
44# cross-compiled package and not to the native package.
45drv="`guix pack idutils -d --no-grafts --target=arm-linux-gnueabihf`"
46guix gc -R "$drv" | \
47 grep "`guix build idutils --target=arm-linux-gnueabihf -d --no-grafts`"
48if guix gc -R "$drv" | grep "`guix build idutils -d --no-grafts`";
49then false; else true; fi
50
43# Build a tarball with no compression. 51# Build a tarball with no compression.
44guix pack --compression=none --bootstrap guile-bootstrap 52guix pack --compression=none --bootstrap guile-bootstrap
45 53