summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-02-01 09:17:35 +0100
committerLudovic Courtès <ludo@gnu.org>2013-02-01 09:17:59 +0100
commitaa92cf980cab9f085df11c79c4b27d2b8b0d88aa (patch)
treec300c62dda2a7c4099268ea9d0a1bb1bb4bbdcb0 /tests
parent0f5378ebc4096b1d536f75c9867454215e8e06d6 (diff)
downloadpatches-aa92cf980cab9f085df11c79c4b27d2b8b0d88aa.tar
patches-aa92cf980cab9f085df11c79c4b27d2b8b0d88aa.tar.gz
guix-package: Gracefully report non-existing outputs.
* guix-package.in (guix-package)[find-package](ensure-output): New procedure. Use it to validate SUB-DRV.
Diffstat (limited to 'tests')
-rw-r--r--tests/guix-package.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/guix-package.sh b/tests/guix-package.sh
index 157f863719..0b31b55103 100644
--- a/tests/guix-package.sh
+++ b/tests/guix-package.sh
@@ -120,6 +120,13 @@ fi
# Make sure the `:' syntax works.
guix-package --bootstrap -i "binutils:lib" -p "$profile" -n
+# Make sure nonexistent outputs are reported.
+guix-package --bootstrap -i "guile-bootstrap:out" -p "$profile" -n
+if guix-package --bootstrap -i "guile-bootstrap:does-not-exist" -p "$profile" -n;
+then false; else true; fi
+if guix-package --bootstrap -i "guile-bootstrap:does-not-exist" -p "$profile";
+then false; else true; fi
+
# Check whether `--list-available' returns something sensible.
guix-package -A 'gui.*e' | grep guile
@@ -161,4 +168,5 @@ do
done
# Extraneous argument.
-! guix-package install foo-bar
+if guix-package install foo-bar;
+then false; else true; fi