diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-11-05 17:56:29 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-11-05 17:56:29 +0100 |
commit | 0c8c401b9638087e3f7127f83a2cb0b5cfdd3269 (patch) | |
tree | 08f0d0d6bd07c6840bf90707dde68b456a73f152 | |
parent | 449f67604bad8794b3da80f2bc49d7e87c226048 (diff) | |
download | dbscripts-0c8c401b9638087e3f7127f83a2cb0b5cfdd3269.tar.gz dbscripts-0c8c401b9638087e3f7127f83a2cb0b5cfdd3269.tar.xz |
Add test for moving multiple packages at once
-rwxr-xr-x | test/test.d/db-move.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/test.d/db-move.sh b/test/test.d/db-move.sh index 40b40de..9d7c1f6 100755 --- a/test/test.d/db-move.sh +++ b/test/test.d/db-move.sh @@ -27,6 +27,30 @@ testMoveSimplePackages() { done } +testMoveMultiplePackages() { + local arches=('i686' 'x86_64') + local pkgs=('pkg-simple-a' 'pkg-simple-b') + local pkgbase + local arch + + for pkgbase in ${pkgs[@]}; do + for arch in ${arches[@]}; do + releasePackage testing ${pkgbase} ${arch} + done + done + + ../db-update + + ../db-move testing extra pkg-simple-a pkg-simple-b + + for pkgbase in ${pkgs[@]}; do + for arch in ${arches[@]}; do + checkPackage extra ${pkgbase}-1-1-${arch}.pkg.tar.xz ${arch} + checkRemovedPackage testing ${pkgbase}-1-1-${arch}.pkg.tar.xz ${arch} + done + done +} + testMoveEpochPackages() { local arches=('i686' 'x86_64') local pkgs=('pkg-simple-epoch') |