tests: Make sure --search="" works.
* tests/guix-package.sh: Move '-s' tests outside of the network-only section. Make sure --search="" works.
This commit is contained in:
parent
d43f4296cc
commit
1b0a86dd1d
|
@ -79,13 +79,6 @@ then
|
||||||
|
|
||||||
test "`guix package -p "$profile" -I 'g.*e' | cut -f1`" = "guile-bootstrap"
|
test "`guix package -p "$profile" -I 'g.*e' | cut -f1`" = "guile-bootstrap"
|
||||||
|
|
||||||
# Search.
|
|
||||||
LC_MESSAGES=C
|
|
||||||
export LC_MESSAGES
|
|
||||||
test "`guix package -s "An example GNU package" | grep ^name:`" = \
|
|
||||||
"name: hello"
|
|
||||||
test -z "`guix package -s "n0t4r341p4ck4g3"`"
|
|
||||||
|
|
||||||
# List generations.
|
# List generations.
|
||||||
test "`guix package -p "$profile" -l | cut -f1 | grep guile | head -n1`" \
|
test "`guix package -p "$profile" -l | cut -f1 | grep guile | head -n1`" \
|
||||||
= " guile-bootstrap"
|
= " guile-bootstrap"
|
||||||
|
@ -179,9 +172,19 @@ guix package -p "$profile" -A 'gui.*e' | grep guile
|
||||||
# Check whether `--show' returns something sensible.
|
# Check whether `--show' returns something sensible.
|
||||||
guix package --show=guile | grep "^name: guile"
|
guix package --show=guile | grep "^name: guile"
|
||||||
|
|
||||||
# Check show doesn't fail for packages with non-package inputs.
|
# Ensure `--show' doesn't fail for packages with non-package inputs.
|
||||||
guix package --show=texlive
|
guix package --show=texlive
|
||||||
|
|
||||||
|
# Search.
|
||||||
|
LC_MESSAGES=C
|
||||||
|
export LC_MESSAGES
|
||||||
|
test "`guix package -s "An example GNU package" | grep ^name:`" = \
|
||||||
|
"name: hello"
|
||||||
|
test -z "`guix package -s "n0t4r341p4ck4g3"`"
|
||||||
|
|
||||||
|
# Make sure `--search' can display all the packages.
|
||||||
|
guix package --search="" > /dev/null
|
||||||
|
|
||||||
# There's no generation older than 12 months, so the following command should
|
# There's no generation older than 12 months, so the following command should
|
||||||
# have no effect.
|
# have no effect.
|
||||||
generation="`readlink_base "$profile"`"
|
generation="`readlink_base "$profile"`"
|
||||||
|
|
Loading…
Reference in New Issue