summaryrefslogtreecommitdiff
path: root/test/test.d/ftpdir-cleanup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.d/ftpdir-cleanup.sh')
-rwxr-xr-xtest/test.d/ftpdir-cleanup.sh21
1 files changed, 9 insertions, 12 deletions
diff --git a/test/test.d/ftpdir-cleanup.sh b/test/test.d/ftpdir-cleanup.sh
index 1b075da..6902b9b 100755
--- a/test/test.d/ftpdir-cleanup.sh
+++ b/test/test.d/ftpdir-cleanup.sh
@@ -4,26 +4,25 @@ curdir=$(readlink -e "$(dirname "$0")")
. "${curdir}/../lib/common.inc"
testCleanupSimplePackages() {
- 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
+ for arch in "${ARCH_BUILD[@]}"; do
releasePackage extra "${pkgbase}" "${arch}"
done
done
../db-update
- for arch in "${arches[@]}"; do
+ for arch in "${ARCH_BUILD[@]}"; do
../db-remove extra "${arch}" pkg-simple-a
done
../cron-jobs/ftpdir-cleanup >/dev/null
- for arch in "${arches[@]}"; do
+ for arch in "${ARCH_BUILD[@]}"; do
local pkg1="pkg-simple-a-1-1-${arch}.pkg.tar.xz"
checkRemovedPackage extra 'pkg-simple-a' "${arch}"
[ -f "${FTP_BASE}/${PKGPOOL}/${pkg1}" ] && fail "${PKGPOOL}/${pkg1} found"
@@ -35,26 +34,25 @@ testCleanupSimplePackages() {
}
testCleanupEpochPackages() {
- local arches=('i686' 'x86_64')
local pkgs=('pkg-simple-epoch')
local pkgbase
local arch
for pkgbase in "${pkgs[@]}"; do
- for arch in "${arches[@]}"; do
+ for arch in "${ARCH_BUILD[@]}"; do
releasePackage extra "${pkgbase}" "${arch}"
done
done
../db-update
- for arch in "${arches[@]}"; do
+ for arch in "${ARCH_BUILD[@]}"; do
../db-remove extra "${arch}" pkg-simple-epoch
done
../cron-jobs/ftpdir-cleanup >/dev/null
- for arch in "${arches[@]}"; do
+ for arch in "${ARCH_BUILD[@]}"; do
local pkg1="pkg-simple-epoch-1:1-1-${arch}.pkg.tar.xz"
checkRemovedPackage extra 'pkg-simple-epoch' "${arch}"
[ -f "${FTP_BASE}/${PKGPOOL}/${pkg1}" ] && fail "${PKGPOOL}/${pkg1} found"
@@ -85,27 +83,26 @@ testCleanupAnyPackages() {
}
testCleanupSplitPackages() {
- local arches=('i686' 'x86_64')
local pkgs=('pkg-split-a' 'pkg-split-b')
local pkg
local pkgbase
local arch
for pkgbase in "${pkgs[@]}"; do
- for arch in "${arches[@]}"; do
+ for arch in "${ARCH_BUILD[@]}"; do
releasePackage extra "${pkgbase}" "${arch}"
done
done
../db-update
- for arch in "${arches[@]}"; do
+ for arch in "${ARCH_BUILD[@]}"; do
../db-remove extra "${arch}" "${pkgs[0]}"
done
../cron-jobs/ftpdir-cleanup >/dev/null
- for arch in "${arches[@]}"; do
+ for arch in "${ARCH_BUILD[@]}"; do
for pkg in "${pkgdir}/${pkgs[0]}"/*-"${arch}"${PKGEXT}; do
checkRemovedPackage extra "${pkgs[0]}" "${arch}"
[ -f "${FTP_BASE}/${PKGPOOL}/${pkg}" ] && fail "${PKGPOOL}/${pkg} found"