summaryrefslogtreecommitdiffstats
path: root/test/runTest
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-15 19:17:05 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-15 19:17:05 +0200
commitce604bc3a2569198fa749acca190fef036e059a1 (patch)
treea7d2b0ac94d2f8f7f82d78ba5b6d9c3c1b563017 /test/runTest
parent79db58732efbab54911ccbbb8cd876da29ea48c8 (diff)
downloaddbscripts-ce604bc3a2569198fa749acca190fef036e059a1.tar.gz
dbscripts-ce604bc3a2569198fa749acca190fef036e059a1.tar.xz
add test to check updating a package
Diffstat (limited to 'test/runTest')
-rwxr-xr-xtest/runTest18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/runTest b/test/runTest
index 03f94c2..a16165d 100755
--- a/test/runTest
+++ b/test/runTest
@@ -81,6 +81,24 @@ testAddSplitPackages() {
done
}
+testUpdateAnyPackage() {
+ releasePackage extra pkg-any-a any
+ ../db-update
+
+ pushd "${TMP}/svn-packages-copy/pkg-any-a/trunk/" >/dev/null
+ sed 's/pkgrel=1/pkgrel=2/g' -i PKGBUILD
+ svn commit -q -m"update pkg to pkgrel=2" >/dev/null
+ makepkg -cf --config ${curdir}/lib/makepkg-i686.conf >/dev/null 2>&1
+ mv pkg-any-a-1-2-any.pkg.tar.xz "${pkgdir}/pkg-any-a/"
+ popd >/dev/null
+
+ releasePackage extra pkg-any-a any
+ ../db-update
+
+ checkAnyPackage extra pkg-any-a-1-2-any.pkg.tar.xz any
+
+ rm "${pkgdir}/pkg-any-a/pkg-any-a-1-2-any.pkg.tar.xz"
+}
#
# db-remove