aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2016-07-26 17:59:25 +0200
committerLudovic Courtès <ludo@gnu.org>2016-07-26 17:59:25 +0200
commit201855221fa426851556b973e39f21e5ced7dfdf (patch)
tree3d64746996442dba5ac31112c5d34ce841d28eaf /tests
parent8173ceee1f31ab562118ff5171254a4b73b71400 (diff)
downloadguix-201855221fa426851556b973e39f21e5ced7dfdf.tar.gz
guix-201855221fa426851556b973e39f21e5ced7dfdf.zip
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')
-rw-r--r--tests/guix-environment.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/guix-environment.sh b/tests/guix-environment.sh
index 0b5123ab45..68343520b0 100644
--- a/tests/guix-environment.sh
+++ b/tests/guix-environment.sh
@@ -57,6 +57,10 @@ else
test $? = 42
fi
+# Make sure 'GUIX_ENVIRONMENT' points to the profile.
+guix environment --bootstrap --ad-hoc guile-bootstrap --pure \
+ -- "$SHELL" -c 'test -f "$GUIX_ENVIRONMENT/bin/guile"'
+
case "`uname -m`" in
x86_64)
# On x86_64, we should be able to create a 32-bit environment.