me
/
guix
Archived
1
0
Fork 0

pack: Adjust test to '--dry-run' changes.

This is a followup to 131f50cdc9.

* tests/guix-pack.sh: Use '--no-grafts' in conjunction with '-n' and '-d'.
master
Ludovic Courtès 2020-03-31 00:05:02 +02:00
parent a357849f5b
commit b771e0176a
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# GNU Guix --- Functional package management for GNU # GNU Guix --- Functional package management for GNU
# Copyright © 2018 Chris Marusich <cmmarusich@gmail.com> # Copyright © 2018 Chris Marusich <cmmarusich@gmail.com>
# Copyright © 2018, 2019 Ludovic Courtès <ludo@gnu.org> # Copyright © 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
# #
# This file is part of GNU Guix. # This file is part of GNU Guix.
# #
@ -105,8 +105,8 @@ guix pack -R --dry-run --bootstrap -S /mybin=bin guile-bootstrap
# Make sure package transformation options are honored. # Make sure package transformation options are honored.
mkdir -p "$test_directory" mkdir -p "$test_directory"
drv1="`guix pack -n guile 2>&1 | grep pack.*\.drv`" drv1="`guix pack --no-grafts -n guile 2>&1 | grep pack.*\.drv`"
drv2="`guix pack -n --with-source=guile=$test_directory guile 2>&1 | grep pack.*\.drv`" drv2="`guix pack --no-grafts -n --with-source=guile=$test_directory guile 2>&1 | grep pack.*\.drv`"
test -n "$drv1" test -n "$drv1"
test "$drv1" != "$drv2" test "$drv1" != "$drv2"
@ -117,6 +117,6 @@ EOF
cat > "$test_directory/manifest2.scm" <<EOF cat > "$test_directory/manifest2.scm" <<EOF
(specifications->manifest '("emacs")) (specifications->manifest '("emacs"))
EOF EOF
drv="`guix pack -nd -m "$test_directory/manifest1.scm" -m "$test_directory/manifest2.scm"`" drv="`guix pack --no-grafts -d -m "$test_directory/manifest1.scm" -m "$test_directory/manifest2.scm"`"
guix gc -R "$drv" | grep `guix build guile -nd` guix gc -R "$drv" | grep `guix build guile -d --no-grafts`
guix gc -R "$drv" | grep `guix build emacs -nd` guix gc -R "$drv" | grep `guix build emacs -d --no-grafts`