diff options
| author | David Thompson <dthompson2@worcester.edu> | 2015-10-30 21:02:51 -0400 |
|---|---|---|
| committer | David Thompson <dthompson2@worcester.edu> | 2015-10-30 21:02:51 -0400 |
| commit | c9c282cea04ec5a3ee7bd17e6ad8846600220feb (patch) | |
| tree | 7714b28669469994919ab41331e8a27d38af4368 /tests/guix-environment.sh | |
| parent | 4fca58a6c6f0a5c7d3ac2363557fabeb6524865d (diff) | |
scripts: environment: Allow lists of packages in expressions.
* guix/scripts/environment.scm (options/resolve-packages): Match against
lists of packages when evaluating expressions.
* tests/guix-environment.sh: Add test.
* doc/guix.texi ("invoking guix environment"): Add docs.
Diffstat (limited to 'tests/guix-environment.sh')
| -rw-r--r-- | tests/guix-environment.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/guix-environment.sh b/tests/guix-environment.sh index 49b3b1ccc39..f7b0259e1b0 100644 --- a/tests/guix-environment.sh +++ b/tests/guix-environment.sh | |||
| @@ -111,4 +111,15 @@ then | |||
| 111 | grep -E '^export CPATH=.*-gcc-bootstrap-0/include' "$tmpdir/a" | 111 | grep -E '^export CPATH=.*-gcc-bootstrap-0/include' "$tmpdir/a" |
| 112 | grep -E '^export CPATH=.*-glibc-bootstrap-0/include' "$tmpdir/a" | 112 | grep -E '^export CPATH=.*-glibc-bootstrap-0/include' "$tmpdir/a" |
| 113 | grep -E '^export LIBRARY_PATH=.*-glibc-bootstrap-0/lib' "$tmpdir/a" | 113 | grep -E '^export LIBRARY_PATH=.*-glibc-bootstrap-0/lib' "$tmpdir/a" |
| 114 | |||
| 115 | # Make sure a package list can be used with -e. | ||
| 116 | expr_list_test_code=" | ||
| 117 | (list (@@ (gnu packages commencement) gnu-make-boot0) | ||
| 118 | (@ (gnu packages bootstrap) %bootstrap-guile))" | ||
| 119 | |||
| 120 | guix environment --ad-hoc --no-substitutes --search-paths --pure \ | ||
| 121 | -e "$expr_list_test_code" > "$tmpdir/a" | ||
| 122 | |||
| 123 | grep -E '^export PATH=.*-make-boot0-4.1/bin' "$tmpdir/a" | ||
| 124 | grep -E '^export PATH=.*-guile-bootstrap-2.0/bin' "$tmpdir/a" | ||
| 114 | fi | 125 | fi |
