Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
dbscripts
Commits
d78973d6
Verified
Commit
d78973d6
authored
Mar 30, 2021
by
Morten Linderud
🏄
Browse files
test/cases/db-move: Create a test for db-move
Signed-off-by:
Morten Linderud
<
morten@linderud.pw
>
parent
c4049f3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/cases/db-move.bats
View file @
d78973d6
...
...
@@ -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')
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment