tests: add test case when installing a pkg with unresolved circular deps.
This commit is contained in:
parent
62b21a4f93
commit
bb4ebf8152
@ -29,6 +29,32 @@ cyclic_dep_vpkg_body() {
|
||||
atf_check_equal $? 0
|
||||
}
|
||||
|
||||
atf_test_case cyclic_dep_vpkg2
|
||||
|
||||
cyclic_dep_vpkg2_head() {
|
||||
atf_set "descr" "Tests for cyclic deps: unresolved circular dependencies"
|
||||
}
|
||||
|
||||
cyclic_dep_vpkg2_body() {
|
||||
mkdir some_repo
|
||||
mkdir -p pkg_{A,B,C,D}/usr/bin
|
||||
cd some_repo
|
||||
xbps-create -A noarch -n A-1.0_1 -s "A pkg" --provides "libGL-7.11_1" --dependencies "xserver-abi-video<20" ../pkg_A
|
||||
atf_check_equal $? 0
|
||||
xbps-create -A noarch -n B-1.0_1 -s "B pkg" --dependencies "libGL>=7.11" --provides "xserver-abi-video-19_1" ../pkg_B
|
||||
atf_check_equal $? 0
|
||||
xbps-create -A noarch -n C-1.0_1 -s "C pkg" --dependencies "libGL>=7.11" ../pkg_C
|
||||
atf_check_equal $? 0
|
||||
|
||||
xbps-rindex -d -a $PWD/*.xbps
|
||||
atf_check_equal $? 0
|
||||
cd ..
|
||||
|
||||
xbps-install -r root --repository=$PWD/some_repo -dy C
|
||||
atf_check_equal $? 40
|
||||
}
|
||||
|
||||
atf_init_test_cases() {
|
||||
atf_add_test_case cyclic_dep_vpkg
|
||||
atf_add_test_case cyclic_dep_vpkg2
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user