diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2014-09-24 14:05:52 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2014-09-24 14:06:09 +0200 |
| commit | 8689901f95499e98e0209e75b4f268bf2af325c1 (patch) | |
| tree | 46345436a0991f5b15b5aee253f66743c0f3ffa5 /tests | |
| parent | 300868ba57e3786dae399f3cac4fff39ad6c316f (diff) | |
Introduce the 'GUIX_PACKAGE_PATH' environment variable.
* gnu/packages.scm (%package-module-path): Honor $GUIX_PACKAGE_PATH.
* test-env.in: Unset 'GUIX_PACKAGE_PATH'.
* tests/guix-package.sh: Test it.
* doc/guix.texi (Package Modules): Document it.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/guix-package.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/guix-package.sh b/tests/guix-package.sh index 59b71d842db..9b0e75e6dad 100644 --- a/tests/guix-package.sh +++ b/tests/guix-package.sh | |||
| @@ -274,3 +274,9 @@ EOF | |||
| 274 | 274 | ||
| 275 | guix package -A emacs-foo-bar -L "$module_dir" | grep 42 | 275 | guix package -A emacs-foo-bar -L "$module_dir" | grep 42 |
| 276 | guix package -i emacs-foo-bar-42 -n -L "$module_dir" | 276 | guix package -i emacs-foo-bar-42 -n -L "$module_dir" |
| 277 | |||
| 278 | # Same thing using the 'GUIX_PACKAGE_PATH' environment variable. | ||
| 279 | GUIX_PACKAGE_PATH="$module_dir" | ||
| 280 | export GUIX_PACKAGE_PATH | ||
| 281 | guix package -A emacs-foo-bar | grep 42 | ||
| 282 | guix package -i emacs-foo-bar-42 -n | ||
