diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2016-07-26 17:59:25 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2016-07-26 17:59:25 +0200 |
| commit | 201855221fa426851556b973e39f21e5ced7dfdf (patch) | |
| tree | 3d64746996442dba5ac31112c5d34ce841d28eaf /tests/guix-environment.sh | |
| parent | 8173ceee1f31ab562118ff5171254a4b73b71400 (diff) | |
environment: Set 'GUIX_ENVIRONMENT' to the profile.
* guix/scripts/environment.scm (create-environment): Set
'GUIX_ENVIRONMENT' to PROFILE.
* tests/guix-environment.sh: Test it.
* doc/guix.texi (Invoking guix environment): Document it.
Diffstat (limited to 'tests/guix-environment.sh')
| -rw-r--r-- | tests/guix-environment.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/guix-environment.sh b/tests/guix-environment.sh index 0b5123ab45b..68343520b07 100644 --- a/tests/guix-environment.sh +++ b/tests/guix-environment.sh | |||
| @@ -57,6 +57,10 @@ else | |||
| 57 | test $? = 42 | 57 | test $? = 42 |
| 58 | fi | 58 | fi |
| 59 | 59 | ||
| 60 | # Make sure 'GUIX_ENVIRONMENT' points to the profile. | ||
| 61 | guix environment --bootstrap --ad-hoc guile-bootstrap --pure \ | ||
| 62 | -- "$SHELL" -c 'test -f "$GUIX_ENVIRONMENT/bin/guile"' | ||
| 63 | |||
| 60 | case "`uname -m`" in | 64 | case "`uname -m`" in |
| 61 | x86_64) | 65 | x86_64) |
| 62 | # On x86_64, we should be able to create a 32-bit environment. | 66 | # On x86_64, we should be able to create a 32-bit environment. |
