summaryrefslogtreecommitdiff
path: root/tests/guix-package.sh
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-04-19 19:12:22 +0200
committerLudovic Courtès <ludo@gnu.org>2015-04-19 23:34:53 +0200
commit5763ad9266ec7682d53b87a874fc6ae04f92b6c4 (patch)
treef86c15d803840cae60284b682b52dabf8a5c8550 /tests/guix-package.sh
parentbbceb0ef8a1e05faaa15c5b4135275fb4572b8d9 (diff)
downloadpatches-5763ad9266ec7682d53b87a874fc6ae04f92b6c4.tar
patches-5763ad9266ec7682d53b87a874fc6ae04f92b6c4.tar.gz
guix package: -A and -s take supported systems into account.
* guix/scripts/package.scm (guix-package)[process-query] <list-available>: Restrict results to packages matching 'supported-package?". * guix/ui.scm (package->recutils): Print "systems:". * tests/guix-package.sh: Add tests. * doc/guix.texi (Invoking guix package): Adjust description of '--list-available' accordingly.
Diffstat (limited to 'tests/guix-package.sh')
-rw-r--r--tests/guix-package.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/guix-package.sh b/tests/guix-package.sh
index 6cfd50b5e5..a732110d5c 100644
--- a/tests/guix-package.sh
+++ b/tests/guix-package.sh
@@ -212,9 +212,19 @@ cat > "$module_dir/foo.scm"<<EOF
(patches (list (search-patch "emacs.patch")))))
(name "emacs-foo-bar-patched")
(version "42")))
+
+(define-public y
+ (package (inherit emacs)
+ (name "super-non-portable-emacs")
+ (supported-systems '("foobar64-hurd"))))
EOF
guix package -i emacs-foo-bar-patched -n
+# This one should not show up in searches since it's no supported on the
+# current system.
+test "`guix package -A super-non-portable-emacs`" = ""
+test "`guix package -s super-non-portable-emacs | grep ^systems:`" = "systems: "
+
unset GUIX_PACKAGE_PATH
# Using 'GUIX_BUILD_OPTIONS'.