summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-15 18:21:33 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-15 18:21:33 +0200
commit79db58732efbab54911ccbbb8cd876da29ea48c8 (patch)
treefd1c625b73d2e129f80e3d792178c84c19bbbcff /test
parente81b73f7cd4d0fc5944c26ccd1ff22e0883c295e (diff)
downloaddbscripts-79db58732efbab54911ccbbb8cd876da29ea48c8.tar.gz
dbscripts-79db58732efbab54911ccbbb8cd876da29ea48c8.tar.xz
Move packages of all arches within one transaction
db-move does no longer need a specific architecture. It will move all architecures of a given package at once. testing2x has been rewritten to respect these changes and testing2x64 is no longer needed.
Diffstat (limited to 'test')
-rwxr-xr-xtest/runTest21
1 files changed, 5 insertions, 16 deletions
diff --git a/test/runTest b/test/runTest
index 8c1aa04..03f94c2 100755
--- a/test/runTest
+++ b/test/runTest
@@ -151,9 +151,7 @@ testMoveSimplePackages() {
../db-update
- for arch in ${arches[@]}; do
- ../db-move testing extra ${arch} pkg-simple-a
- done
+ ../db-move testing extra pkg-simple-a
for arch in ${arches[@]}; do
checkPackage extra pkg-simple-a-1-1-${arch}.pkg.tar.xz ${arch}
@@ -172,7 +170,7 @@ testMoveAnyPackages() {
done
../db-update
- ../db-move testing extra any pkg-any-a
+ ../db-move testing extra pkg-any-a
checkAnyPackage extra pkg-any-a-1-1-any.pkg.tar.xz
checkRemovedAnyPackage testing pkg-any-a
@@ -193,10 +191,7 @@ testMoveSplitPackages() {
done
../db-update
-
- for arch in ${arches[@]}; do
- ../db-move testing extra ${arch} pkg-split-a
- done
+ ../db-move testing extra pkg-split-a
for arch in ${arches[@]}; do
for pkg in "${pkgdir}/pkg-split-a"/*-${arch}.pkg.tar.*; do
@@ -336,11 +331,7 @@ testMovePackagesWithoutPool() {
../cron-jobs/ftpdir-cleanup >/dev/null
- for pkgbase in ${pkgs[@]}; do
- for arch in ${arches[@]}; do
- ../db-move testing extra ${arch} ${pkgbase}
- done
- done
+ ../db-move testing extra ${pkgs[@]}
../cron-jobs/ftpdir-cleanup >/dev/null
@@ -377,9 +368,7 @@ testMoveAnyPackagesWithoutPool() {
../cron-jobs/ftpdir-cleanup >/dev/null
- for pkgbase in ${pkgs[@]}; do
- ../db-move testing extra any ${pkgbase}
- done
+ ../db-move testing extra ${pkgs[@]}
../cron-jobs/ftpdir-cleanup >/dev/null