tests: Use a new synopsis of GNU Hello.
* tests/guix-package.sh: Use a new synopsis of GNU Hello, which was added in f50d2669e3e624365221cc81918ba55fdce94107.
This commit is contained in:
parent
3b78d1eab8
commit
6c1cd80d8f
@ -62,18 +62,19 @@ then
|
|||||||
# name and version string.
|
# name and version string.
|
||||||
installed="`guix package -p "$profile" --list-installed | cut -f1 | xargs echo | sort`"
|
installed="`guix package -p "$profile" --list-installed | cut -f1 | xargs echo | sort`"
|
||||||
case "x$installed" in
|
case "x$installed" in
|
||||||
"guile-bootstrap make-boot0")
|
"guile-bootstrap make-boot0")
|
||||||
true;;
|
true;;
|
||||||
"make-boot0 guile-bootstrap")
|
"make-boot0 guile-bootstrap")
|
||||||
true;;
|
true;;
|
||||||
"*")
|
"*")
|
||||||
false;;
|
false;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
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.
|
# Search.
|
||||||
test "`guix package -s "GNU Hello" | grep ^name:`" = "name: hello"
|
test "`guix package -s "An example GNU package" | grep ^name:`" = \
|
||||||
|
"name: hello"
|
||||||
test "`guix package -s "n0t4r341p4ck4g3"`" = ""
|
test "`guix package -s "n0t4r341p4ck4g3"`" = ""
|
||||||
|
|
||||||
# Remove a package.
|
# Remove a package.
|
||||||
@ -92,10 +93,10 @@ then
|
|||||||
# Move to the empty profile.
|
# Move to the empty profile.
|
||||||
for i in `seq 1 3`
|
for i in `seq 1 3`
|
||||||
do
|
do
|
||||||
guix package --bootstrap --roll-back -p "$profile"
|
guix package --bootstrap --roll-back -p "$profile"
|
||||||
! test -f "$profile/bin"
|
! test -f "$profile/bin"
|
||||||
! test -f "$profile/lib"
|
! test -f "$profile/lib"
|
||||||
test "`readlink_base "$profile"`" = "$profile-0-link"
|
test "`readlink_base "$profile"`" = "$profile-0-link"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Reinstall after roll-back to the empty profile.
|
# Reinstall after roll-back to the empty profile.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user