summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-11-05 15:03:05 +0100
committerPierre Schmitz <pierre@archlinux.de>2011-11-05 15:03:05 +0100
commitae3ff361863b72d9cd52d9379cda7e7dbe825b15 (patch)
treebb60905e66f4c6379b250986bff728e209834455
parentbbf00cc90ed8d1bf3bbed1f78acca71b2d624ee2 (diff)
Adjust tests to use new db-remove interface
-rwxr-xr-xtest/test.d/create-filelists.sh2
-rwxr-xr-xtest/test.d/db-remove.sh4
-rwxr-xr-xtest/test.d/ftpdir-cleanup.sh8
-rwxr-xr-xtest/test.d/sourceballs.sh2
4 files changed, 8 insertions, 8 deletions
diff --git a/test/test.d/create-filelists.sh b/test/test.d/create-filelists.sh
index 80b0927..49734c4 100755
--- a/test/test.d/create-filelists.sh
+++ b/test/test.d/create-filelists.sh
@@ -88,7 +88,7 @@ testCleanupFileLists() {
../db-update
for arch in ${arches[@]}; do
- ../db-remove pkg-simple-a extra ${arch}
+ ../db-remove extra ${arch} pkg-simple-a
done
for arch in ${arches[@]}; do
diff --git a/test/test.d/db-remove.sh b/test/test.d/db-remove.sh
index 573bd71..945ca62 100755
--- a/test/test.d/db-remove.sh
+++ b/test/test.d/db-remove.sh
@@ -19,7 +19,7 @@ testRemovePackages() {
for pkgbase in ${pkgs[@]}; do
for arch in ${arches[@]}; do
- ../db-remove ${pkgbase} extra ${arch}
+ ../db-remove extra ${arch} ${pkgbase}
done
done
@@ -41,7 +41,7 @@ testRemoveAnyPackages() {
../db-update
for pkgbase in ${pkgs[@]}; do
- ../db-remove ${pkgbase} extra any
+ ../db-remove extra any ${pkgbase}
done
for pkgbase in ${pkgs[@]}; do
diff --git a/test/test.d/ftpdir-cleanup.sh b/test/test.d/ftpdir-cleanup.sh
index 77b02b8..20026b4 100755
--- a/test/test.d/ftpdir-cleanup.sh
+++ b/test/test.d/ftpdir-cleanup.sh
@@ -18,7 +18,7 @@ testCleanupSimplePackages() {
../db-update
for arch in ${arches[@]}; do
- ../db-remove pkg-simple-a extra ${arch}
+ ../db-remove extra ${arch} pkg-simple-a
done
../cron-jobs/ftpdir-cleanup >/dev/null
@@ -49,7 +49,7 @@ testCleanupEpochPackages() {
../db-update
for arch in ${arches[@]}; do
- ../db-remove pkg-simple-epoch extra ${arch}
+ ../db-remove extra ${arch} pkg-simple-epoch
done
../cron-jobs/ftpdir-cleanup >/dev/null
@@ -72,7 +72,7 @@ testCleanupAnyPackages() {
done
../db-update
- ../db-remove pkg-any-a extra any
+ ../db-remove extra any pkg-any-a
../cron-jobs/ftpdir-cleanup >/dev/null
local pkg1='pkg-any-a-1-1-any.pkg.tar.xz'
@@ -100,7 +100,7 @@ testCleanupSplitPackages() {
../db-update
for arch in ${arches[@]}; do
- ../db-remove ${pkgs[0]} extra ${arch}
+ ../db-remove extra ${arch} ${pkgs[0]}
done
../cron-jobs/ftpdir-cleanup >/dev/null
diff --git a/test/test.d/sourceballs.sh b/test/test.d/sourceballs.sh
index 11bd0f4..fdcf08c 100755
--- a/test/test.d/sourceballs.sh
+++ b/test/test.d/sourceballs.sh
@@ -73,7 +73,7 @@ testSourceballsCleanup() {
../cron-jobs/sourceballs
for arch in ${arches[@]}; do
- ../db-remove pkg-simple-a extra ${arch}
+ ../db-remove extra ${arch} pkg-simple-a
done
../cron-jobs/sourceballs