diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2015-11-10 22:00:53 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2015-11-11 00:37:50 +0100 |
| commit | fc2d2339644b408574f0ead4436e751fa423a7e6 (patch) | |
| tree | 2c5875eed1bad42d8f81a11ce8b49ff203fe09d7 /tests/guix-package-net.sh | |
| parent | 21059b26b070d6064202272982392a299f09b6e4 (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.sh | 12 |
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 | ||
| 48 | profile="t-profile-$$" | 48 | profile="t-profile-$$" |
| 49 | profile_alt="t-profile-alt-$$" | ||
| 49 | rm -f "$profile" | 50 | rm -f "$profile" |
| 50 | 51 | ||
| 51 | trap 'rm -f "$profile" "$profile-"[0-9]* ; rm -rf t-home-'"$$" EXIT | 52 | trap 'rm -f "$profile" "$profile_alt" "$profile-"[0-9]* ; rm -rf t-home-'"$$" EXIT |
| 52 | 53 | ||
| 53 | 54 | ||
| 54 | guix package --bootstrap -p "$profile" -i guile-bootstrap | 55 | guix package --bootstrap -p "$profile" -i guile-bootstrap |
| @@ -156,6 +157,15 @@ guix package -p "$profile" --switch-generation=2 | |||
| 156 | guix package -p "$profile" --delete-generations=3 | 157 | guix package -p "$profile" --delete-generations=3 |
| 157 | test -z "`guix package -p "$profile" -l 3`" | 158 | test -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. | ||
| 162 | rm "$profile" | ||
| 163 | guix package --bootstrap -p "$profile" -i guile-bootstrap | ||
| 164 | guix package --bootstrap -p "$profile_alt" -i gcc-bootstrap | ||
| 165 | if guix package -p "$profile" --search-paths | grep LIBRARY_PATH | ||
| 166 | then false; fi | ||
| 167 | guix 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. |
