diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-09-24 17:50:48 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-09-26 11:43:26 +0200 |
commit | 3972dc5d43ea824ee4ab78592e759f62ce90bf6a (patch) | |
tree | 8d3e77fa1ea038735b327ecc9b2b959f6cefdb3f /tests | |
parent | 71339070a9c38dc5502697edacb11adbc30303eb (diff) |
guix package: Add '--list-profiles'.
* guix/scripts/package.scm (show-help, %options): Add '--list-profiles'.
(process-query): Honor it.
* tests/guix-package.sh: Add test.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/guix-package.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/guix-package.sh b/tests/guix-package.sh index 79e89286f1..0de30bf6c1 100644 --- a/tests/guix-package.sh +++ b/tests/guix-package.sh @@ -438,7 +438,7 @@ cat > "$module_dir/foo.scm"<<EOF (version "dummy-version") (outputs '("out" "dummy-output")) (source #f) - ;; Without a real build system, the "guix pacakge -s" command will fail. + ;; Without a real build system, the "guix package -s" command will fail. (build-system trivial-build-system) (synopsis "dummy-synopsis") (description "dummy-description") @@ -448,3 +448,7 @@ EOF guix package -L "$module_dir" -s dummy-output > /tmp/out test "`guix package -L "$module_dir" -s dummy-output | grep ^name:`" = "name: dummy-package" rm -rf "$module_dir" + +# Make sure we can see user profiles. +guix package --list-profiles | grep "$profile" +guix package --list-profiles | grep '\.guix-profile' |