Verified Commit 55f6dd37 authored by Morten Linderud's avatar Morten Linderud 🏄
Browse files

test/cases/db-repo-remove: Added debug package test



This adds a test case for debug packages. It should be noted that
nothing has really been changed to support this. This just check that
db-repo-remove can remove a package from a *-debug repository with a
-debug suffix. However, nice to have this in case regressions.
Signed-off-by: Morten Linderud's avatarMorten Linderud <morten@linderud.pw>
parent b63d76de
......@@ -23,6 +23,30 @@ load ../lib/common
done
}
@test "remove debug packages" {
local arches=('i686' 'x86_64')
local 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-repo-remove extra ${arch} ${pkgbase}
db-repo-remove extra-debug ${arch} ${pkgbase}-debug
done
done
checkRemovedPackageDB extra ${pkgbase}
checkRemovedPackageDB extra-debug ${pkgbase}-debug
}
@test "remove multiple packages" {
local arches=('i686' 'x86_64')
local pkgs=('pkg-simple-a' 'pkg-simple-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