From acc084669c01b254f2a12f9f43a8c1b5d16094c1 Mon Sep 17 00:00:00 2001 From: Nikita Karetnikov Date: Mon, 28 Jan 2013 06:29:10 +0000 Subject: 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. --- tests/guix-package.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/guix-package.sh') 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 +# Copyright © 2013 Nikita Karetnikov # # 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" -- cgit v1.2.3