tests/xbps-alternatives: new test case that fails.
Contributed by @duncaen. Signed-off-by: Juan RP <xtraeme@gmail.com>
This commit is contained in:
parent
62f986cf4a
commit
d021698365
@ -493,6 +493,38 @@ less_entries_update_body() {
|
||||
atf_check_equal $rv 0
|
||||
}
|
||||
|
||||
atf_test_case more_entries_update
|
||||
|
||||
more_entries_update_head() {
|
||||
atf_set "descr" "xbps-alternatives: add symlinks provided by package update"
|
||||
}
|
||||
|
||||
more_entries_update_body() {
|
||||
mkdir -p repo pkg_A/usr/bin pkg_B/usr/bin
|
||||
touch pkg_A/usr/bin/A1 pkg_A/usr/bin/A2 pkg_B/usr/bin/B1
|
||||
|
||||
cd repo
|
||||
xbps-create -A noarch -n A-1.1_1 -s "A pkg" --alternatives "1:1:/usr/bin/A1" ../pkg_A
|
||||
atf_check_equal $? 0
|
||||
xbps-rindex -d -a $PWD/*.xbps
|
||||
atf_check_equal $? 0
|
||||
cd ..
|
||||
xbps-install -r root --repository=repo -ydv A
|
||||
atf_check_equal $? 0
|
||||
cd repo
|
||||
xbps-create -A noarch -n A-1.2_1 -s "A pkg" --alternatives "1:1:/usr/bin/A1 1:2:/usr/bin/A2" ../pkg_A
|
||||
atf_check_equal $? 0
|
||||
xbps-rindex -d -a $PWD/*.xbps
|
||||
atf_check_equal $? 0
|
||||
cd ..
|
||||
xbps-install -r root --repository=repo -ydvu
|
||||
atf_check_equal $? 0
|
||||
rv=0
|
||||
[ -e root/usr/bin/2 ] || rv=1
|
||||
atf_check_equal $rv 0
|
||||
}
|
||||
|
||||
|
||||
atf_test_case useless_switch
|
||||
|
||||
useless_switch_head() {
|
||||
@ -599,6 +631,7 @@ atf_init_test_cases() {
|
||||
atf_add_test_case update_pkgs
|
||||
atf_add_test_case less_entries
|
||||
atf_add_test_case less_entries_update
|
||||
atf_add_test_case more_entries_update
|
||||
atf_add_test_case useless_switch
|
||||
atf_add_test_case remove_current_provider
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user