summaryrefslogtreecommitdiff
path: root/tests/guix-package-net.sh
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-11-10 22:00:53 +0100
committerLudovic Courtès <ludo@gnu.org>2015-11-11 00:37:50 +0100
commitfc2d2339644b408574f0ead4436e751fa423a7e6 (patch)
tree2c5875eed1bad42d8f81a11ce8b49ff203fe09d7 /tests/guix-package-net.sh
parent21059b26b070d6064202272982392a299f09b6e4 (diff)
guix package: '--search-paths' can report combined search paths.
Partly fixes <http://bugs.gnu.org/20255>. * guix/scripts/package.scm (search-path-environment-variables): Change 'profile' to 'profiles'; expect it to be a list. (display-search-paths): Likewise. (%default-options): Remove 'profile' entry. (%options) <--profile>: Keep previous values associated with 'profile' in RESULT. (guix-package)[process-actions, process-query]: Handle the possible lack of 'profile' pair in OPTS.
Diffstat (limited to 'tests/guix-package-net.sh')
-rw-r--r--tests/guix-package-net.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/guix-package-net.sh b/tests/guix-package-net.sh
index 14222cfd25d..35ef6ff1a02 100644
--- a/tests/guix-package-net.sh
+++ b/tests/guix-package-net.sh
@@ -46,9 +46,10 @@ fi
46 46
47 47
48profile="t-profile-$$" 48profile="t-profile-$$"
49profile_alt="t-profile-alt-$$"
49rm -f "$profile" 50rm -f "$profile"
50 51
51trap 'rm -f "$profile" "$profile-"[0-9]* ; rm -rf t-home-'"$$" EXIT 52trap 'rm -f "$profile" "$profile_alt" "$profile-"[0-9]* ; rm -rf t-home-'"$$" EXIT
52 53
53 54
54guix package --bootstrap -p "$profile" -i guile-bootstrap 55guix package --bootstrap -p "$profile" -i guile-bootstrap
@@ -156,6 +157,15 @@ guix package -p "$profile" --switch-generation=2
156guix package -p "$profile" --delete-generations=3 157guix package -p "$profile" --delete-generations=3
157test -z "`guix package -p "$profile" -l 3`" 158test -z "`guix package -p "$profile" -l 3`"
158 159
160# Search path of combined profiles. 'LIBRARY_PATH' should show up only in the
161# combination, not in the individual profiles.
162rm "$profile"
163guix package --bootstrap -p "$profile" -i guile-bootstrap
164guix package --bootstrap -p "$profile_alt" -i gcc-bootstrap
165if guix package -p "$profile" --search-paths | grep LIBRARY_PATH
166then false; fi
167guix package -p "$profile" -p "$profile_alt" --search-paths \
168 | grep "LIBRARY_PATH.*$profile/lib"
159 169
160# 170#
161# Try with the default profile. 171# Try with the default profile.