libxbps: globally check for unresolved reverse dependencies.
Close #46. See NEWS for more information.
This commit is contained in:
@@ -246,6 +246,34 @@ remove_with_revdeps_body() {
|
||||
atf_check_equal $? 19
|
||||
}
|
||||
|
||||
atf_test_case remove_with_revdeps_force
|
||||
|
||||
remove_with_revdeps_force_head() {
|
||||
atf_set "descr" "Tests for package removal: remove a pkg with revdeps (force)"
|
||||
}
|
||||
|
||||
remove_with_revdeps_force_body() {
|
||||
mkdir some_repo
|
||||
mkdir -p pkg_A/usr/bin pkg_B/usr/bin
|
||||
|
||||
cd some_repo
|
||||
xbps-create -A noarch -n A-1.0_1 -s "A pkg" ../pkg_A
|
||||
atf_check_equal $? 0
|
||||
xbps-create -A noarch -n B-1.0_1 -s "B pkg" --dependencies "A-1.0_1" ../pkg_B
|
||||
atf_check_equal $? 0
|
||||
xbps-rindex -d -a $PWD/*.xbps
|
||||
atf_check_equal $? 0
|
||||
cd ..
|
||||
xbps-install -r root --repository=some_repo -yvd B
|
||||
atf_check_equal $? 0
|
||||
xbps-remove -r root -Fyvd A
|
||||
atf_check_equal $? 0
|
||||
out=$(xbps-query -r root -l|wc -l)
|
||||
atf_check_equal $out 1
|
||||
out=$(xbps-query -r root -ppkgver B)
|
||||
atf_check_equal $out B-1.0_1
|
||||
}
|
||||
|
||||
atf_test_case remove_with_revdeps_in_trans
|
||||
|
||||
remove_with_revdeps_in_trans_head() {
|
||||
@@ -329,6 +357,7 @@ atf_init_test_cases() {
|
||||
atf_add_test_case remove_symlinks_modified
|
||||
atf_add_test_case remove_dups
|
||||
atf_add_test_case remove_with_revdeps
|
||||
atf_add_test_case remove_with_revdeps_force
|
||||
atf_add_test_case remove_with_revdeps_in_trans
|
||||
atf_add_test_case remove_with_revdeps_in_trans_inverted
|
||||
atf_add_test_case remove_with_revdeps_in_trans_recursive
|
||||
|
||||
Reference in New Issue
Block a user