tests: add another test case for GH issue #45.
The test passes completely and cannot be make to segfault in any provided case. I'll continue investigating...
This commit is contained in:
parent
36ad783f07
commit
1857672e14
@ -43,7 +43,34 @@ incorrect_dep_vpkg_body() {
|
|||||||
atf_check_equal $? 0
|
atf_check_equal $? 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
atf_test_case incorrect_dep_issue45
|
||||||
|
|
||||||
|
incorrect_dep_issue45_head() {
|
||||||
|
atf_set "descr" "Test for package deps: pkg depends on itself (issue #45: https://github.com/voidlinux/xbps/issues/45)"
|
||||||
|
}
|
||||||
|
|
||||||
|
incorrect_dep_issue45_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" --dependencies "A>=0" ../pkg_A
|
||||||
|
atf_check_equal $? 0
|
||||||
|
xbps-create -A noarch -n B-1.0_1 -s "B pkg" --dependencies "A>=0" ../pkg_B
|
||||||
|
atf_check_equal $? 0
|
||||||
|
|
||||||
|
xbps-rindex -a *.xbps
|
||||||
|
atf_check_equal $? 0
|
||||||
|
cd ..
|
||||||
|
xbps-install -C empty.conf -r root --repository=$PWD/some_repo -dy B
|
||||||
|
atf_check_equal $? 0
|
||||||
|
xbps-query -C empty.conf -r root -l
|
||||||
|
atf_check_equal $? 0
|
||||||
|
xbps-pkgdb -C empty.conf -r root -a
|
||||||
|
atf_check_equal $? 0
|
||||||
|
}
|
||||||
|
|
||||||
atf_init_test_cases() {
|
atf_init_test_cases() {
|
||||||
atf_add_test_case incorrect_dep
|
atf_add_test_case incorrect_dep
|
||||||
atf_add_test_case incorrect_dep_vpkg
|
atf_add_test_case incorrect_dep_vpkg
|
||||||
|
atf_add_test_case incorrect_dep_issue45
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user