summaryrefslogtreecommitdiffstats
path: root/test/runTest
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-11-22 14:35:30 +0100
committerPierre Schmitz <pierre@archlinux.de>2010-11-22 14:35:30 +0100
commit5869af885163b763abb204dff2cc847556fb247b (patch)
tree3287282d5c8f238e14451c893fd98ddb31c379ed /test/runTest
parentcb03c851fe6ce0921ddc3f102ab7f5243612dc8b (diff)
downloaddbscripts-5869af885163b763abb204dff2cc847556fb247b.tar.gz
dbscripts-5869af885163b763abb204dff2cc847556fb247b.tar.xz
sourceballs: add for split packages
Diffstat (limited to 'test/runTest')
-rwxr-xr-xtest/runTest21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/runTest b/test/runTest
index fe22ce7..f438704 100755
--- a/test/runTest
+++ b/test/runTest
@@ -573,6 +573,27 @@ testAnySourceballs() {
done
}
+testSplitSourceballs() {
+ 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
+ releasePackage extra ${pkgbase} ${arch}
+ done
+ done
+
+ ../db-update
+
+ ../cron-jobs/sourceballs
+ for pkgbase in ${pkgs[@]}; do
+ [ ! -r ${FTP_BASE}/${SRCPOOL}/${pkgbase}-*${SRCEXT} ] && fail "source package not found!"
+ done
+}
+
testSourceballsCleanup() {
local arches=('i686' 'x86_64')
local pkgs=('pkg-simple-a' 'pkg-simple-b')