diff options
| author | David Thompson <dthompson2@worcester.edu> | 2018-02-15 20:54:28 -0500 |
|---|---|---|
| committer | David Thompson <dthompson2@worcester.edu> | 2018-02-21 22:16:38 -0500 |
| commit | 267379f852f9d6d00c76120963711d54357ba53d (patch) | |
| tree | d50040e19049c99d9d0c799183384cb3ec4abc3a /tests | |
| parent | ea6b1baec7515ec941f35c186ab314ec1c844250 (diff) | |
environment: Add --manifest option.
* guix/scripts/environment.scm (show-help, %options): Add -m/--manifest.
(options/resolve-packages): Handle manifests.
* tests/guix-envronment.sh: Add a test.
* doc/guix.texi (Invoking guix environment): Document it.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/guix-environment.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/guix-environment.sh b/tests/guix-environment.sh index bf5ca17fa54..b44aca099d3 100644 --- a/tests/guix-environment.sh +++ b/tests/guix-environment.sh | |||
| @@ -62,6 +62,15 @@ fi | |||
| 62 | guix environment --bootstrap --ad-hoc guile-bootstrap --pure \ | 62 | guix environment --bootstrap --ad-hoc guile-bootstrap --pure \ |
| 63 | -- "$SHELL" -c 'test -f "$GUIX_ENVIRONMENT/bin/guile"' | 63 | -- "$SHELL" -c 'test -f "$GUIX_ENVIRONMENT/bin/guile"' |
| 64 | 64 | ||
| 65 | # Make sure 'GUIX_ENVIRONMENT' points to the profile when building from a | ||
| 66 | # manifest. | ||
| 67 | echo "(use-modules (guix profiles) (gnu packages bootstrap)) | ||
| 68 | |||
| 69 | (packages->manifest (list %bootstrap-guile)) | ||
| 70 | " > $tmpdir/manifest.scm | ||
| 71 | guix environment --bootstrap --manifest=$tmpdir/manifest.scm --pure \ | ||
| 72 | -- "$SHELL" -c 'test -f "$GUIX_ENVIRONMENT/bin/guile"' | ||
| 73 | |||
| 65 | # Make sure '-r' works as expected. | 74 | # Make sure '-r' works as expected. |
| 66 | rm -f "$gcroot" | 75 | rm -f "$gcroot" |
| 67 | expected="`guix environment --bootstrap --ad-hoc guile-bootstrap \ | 76 | expected="`guix environment --bootstrap --ad-hoc guile-bootstrap \ |
