tests/hold: update hold_shlibs test case with exp behaviour.

This commit is contained in:
Juan RP 2020-01-25 10:15:35 +01:00
parent 76f8ca595b
commit 26b7864973

View File

@ -69,8 +69,9 @@ hold_shlibs_body() {
atf_check_equal $? 0 atf_check_equal $? 0
cd .. cd ..
# returns ENOEXEC because sway can't be upgraded
xbps-install -r root --repo=repo -yud xbps-install -r root --repo=repo -yud
atf_check_equal $? 0 atf_check_equal $? 8
out=$(xbps-query -r root -p pkgver sway) out=$(xbps-query -r root -p pkgver sway)
atf_check_equal "$out" "sway-1.2_1" atf_check_equal "$out" "sway-1.2_1"
@ -80,6 +81,21 @@ hold_shlibs_body() {
xbps-pkgdb -r root -a xbps-pkgdb -r root -a
atf_check_equal $? 0 atf_check_equal $? 0
# unhold to verify
xbps-pkgdb -r root -m unhold sway
xbps-install -r root --repo=repo -yud
atf_check_equal $? 0
out=$(xbps-query -r root -p pkgver sway)
atf_check_equal "$out" "sway-1.4_1"
out=$(xbps-query -r root -p pkgver wlroots)
atf_check_equal "$out" "wlroots-0.10.0_1"
xbps-pkgdb -r root -a
atf_check_equal $? 0
} }
atf_init_test_cases() { atf_init_test_cases() {