diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-01-08 15:17:16 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-01-08 15:17:16 -0300 |
commit | 341400146cbde0dbf05eaa8aec531f5286fd91fb (patch) | |
tree | aef2a4b704731ee405345bc8e22dbcdad2056cb5 /test/test.d/db-move.sh | |
parent | a749983e8f2becf7c5427b0e5c449d457afbe385 (diff) | |
parent | a8b219b325cd642a781a64d8e08a0e66d25c1b44 (diff) |
Merge branch 'master' of https://projects.archlinux.org/git/dbscripts
Conflicts:
db-remove
Diffstat (limited to 'test/test.d/db-move.sh')
-rwxr-xr-x | test/test.d/db-move.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/test.d/db-move.sh b/test/test.d/db-move.sh index 40b40de..9d7c1f6 100755 --- a/test/test.d/db-move.sh +++ b/test/test.d/db-move.sh @@ -27,6 +27,30 @@ testMoveSimplePackages() { done } +testMoveMultiplePackages() { + 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 + releasePackage testing ${pkgbase} ${arch} + done + done + + ../db-update + + ../db-move testing extra pkg-simple-a pkg-simple-b + + for pkgbase in ${pkgs[@]}; do + for arch in ${arches[@]}; do + checkPackage extra ${pkgbase}-1-1-${arch}.pkg.tar.xz ${arch} + checkRemovedPackage testing ${pkgbase}-1-1-${arch}.pkg.tar.xz ${arch} + done + done +} + testMoveEpochPackages() { local arches=('i686' 'x86_64') local pkgs=('pkg-simple-epoch') |