diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-08-15 19:21:38 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-08-15 19:21:38 +0200 |
commit | 583863043ad11eb203c479c9d0eea825a29ace39 (patch) | |
tree | 4aaf422453a732e9765da62485b3b16f08c8a559 | |
parent | ce604bc3a2569198fa749acca190fef036e059a1 (diff) | |
download | dbscripts-583863043ad11eb203c479c9d0eea825a29ace39.tar.gz dbscripts-583863043ad11eb203c479c9d0eea825a29ace39.tar.xz |
add test for testing2x
-rwxr-xr-x | test/runTest | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/runTest b/test/runTest index a16165d..95d8c6c 100755 --- a/test/runTest +++ b/test/runTest @@ -227,6 +227,32 @@ testMoveSplitPackages() { # +# testing2x +# + +testTesting2xAnyPackage() { + releasePackage core 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 testing pkg-any-a any + ../db-update + rm "${pkgdir}/pkg-any-a/pkg-any-a-1-2-any.pkg.tar.xz" + + ../testing2x pkg-any-a + + checkAnyPackage core pkg-any-a-1-2-any.pkg.tar.xz any + checkRemovedAnyPackage testing pkg-any-a +} + + +# # ftpdir-cleanup # |