Verified Commit 3ab4625d authored by Morten Linderud's avatar Morten Linderud 🏄
Browse files

test/cases/db-remove: Added test for debug packages


Signed-off-by: Morten Linderud's avatarMorten Linderud <morten@linderud.pw>
parent 63503bf8
......@@ -23,6 +23,31 @@ load ../lib/common
done
}
@test "remove debug package" {
local arches=('i686' 'x86_64')
local pkgs=('pkg-debuginfo')
local debug_pkgs=('pkg-debuginfo')
local pkgbase
local arch
for pkgbase in ${pkgs[@]}; do
releasePackage extra ${pkgbase}
done
db-update
for pkgbase in ${pkgs[@]}; do
for arch in ${arches[@]}; do
db-remove extra ${arch} ${pkgbase}
done
done
checkRemovedPackage extra pkg-debuginfo
for pkgbase in ${debug_pkgs[@]}; do
checkRemovedPackage extra-debug ${pkgbase}
done
}
@test "remove multiple packages" {
local arches=('i686' 'x86_64')
local pkgs=('pkg-simple-a' 'pkg-simple-b' 'pkg-split-a' 'pkg-split-b' 'pkg-simple-epoch')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment