summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-11-05 17:56:29 +0100
committerPierre Schmitz <pierre@archlinux.de>2011-11-05 17:56:29 +0100
commit0c8c401b9638087e3f7127f83a2cb0b5cfdd3269 (patch)
tree08f0d0d6bd07c6840bf90707dde68b456a73f152
parent449f67604bad8794b3da80f2bc49d7e87c226048 (diff)
downloaddbscripts-0c8c401b9638087e3f7127f83a2cb0b5cfdd3269.tar.gz
dbscripts-0c8c401b9638087e3f7127f83a2cb0b5cfdd3269.tar.xz
Add test for moving multiple packages at once
-rwxr-xr-xtest/test.d/db-move.sh24
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')