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

test/cases/db-move: Create a test for db-move


Signed-off-by: Morten Linderud's avatarMorten Linderud <morten@linderud.pw>
parent c4049f3f
......@@ -25,6 +25,39 @@ load ../lib/common
checkPackage testing pkg-simple-b 1-1
}
@test "move debug package" {
local arches=('i686' 'x86_64')
local pkgs=('pkg-debuginfo' 'pkg-simple-b')
local pkgbase
local arch
for pkgbase in ${pkgs[@]}; do
echo "releasing to testing: $pkgbase"
releasePackage testing ${pkgbase}
done
echo "db-updating..."
db-update
echo "db-move testing -> extra pkg-debuginfo"
db-move testing extra pkg-debuginfo
echo checkRemovedPackage testing pkg-debuginfo
checkRemovedPackage testing pkg-debuginfo
echo checkRemovedPackage testing-debug pkg-debuginfo-debug
checkRemovedPackage testing-debug pkg-debuginfo
echo checkPackage extra pkg-debuginfo 1-1
checkPackage extra pkg-debuginfo 1-1
echo checkPackage extra-debug pkg-debuginfo 1-1
checkPackage extra-debug pkg-debuginfo 1-1
echo checkPackage testing pkg-simple-b 1-1
checkPackage testing pkg-simple-b 1-1
}
@test "move multiple packages" {
local arches=('i686' 'x86_64')
local pkgs=('pkg-simple-a' 'pkg-simple-b')
......
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