diff options
author | Nikita Karetnikov <nikita@karetnikov.org> | 2013-01-28 06:29:10 +0000 |
---|---|---|
committer | Nikita Karetnikov <nikita@karetnikov.org> | 2013-01-28 06:47:49 +0000 |
commit | acc084669c01b254f2a12f9f43a8c1b5d16094c1 (patch) | |
tree | 574210f9ef88baceb5170aac27ed0e6258a877ec /tests | |
parent | c9ee048595e94752b1932a01f95882524d9f0b36 (diff) | |
download | guix-acc084669c01b254f2a12f9f43a8c1b5d16094c1.tar.gz |
guix-package: Add '--search'.
* guix-package.in (find-packages-by-description): New procedure. (show-help, %options): Add '--search'. (guix-package)[process-query]: Add support for '--search'. * doc/guix.texi (Invoking guix-package): Document it. * tests/guix-package.sh: Add tests.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/guix-package.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/guix-package.sh b/tests/guix-package.sh index bd63c21969..157f863719 100644 --- a/tests/guix-package.sh +++ b/tests/guix-package.sh @@ -1,5 +1,6 @@ # GNU Guix --- Functional package management for GNU # Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org> +# Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> # # This file is part of GNU Guix. # @@ -68,6 +69,10 @@ then test "`guix-package -p "$profile" -I 'g.*e' | cut -f1`" = "guile-bootstrap" + # Search. + test "`guix-package -s "GNU Hello" | cut -f1`" = "hello" + test "`guix-package -s "n0t4r341p4ck4g3"`" = "" + # Remove a package. guix-package --bootstrap -p "$profile" -r "guile-bootstrap" test -L "$profile-3-link" |