diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-10-12 13:55:56 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-05-27 15:46:05 +0200 |
commit | a639bca6cc963483eb1627c7e6a1fa0af23ca148 (patch) | |
tree | 779555032db150252a42b297687f4fca192cc741 /test/test.d/db-remove.sh | |
parent | d21c84ef995248661da4d9d8b8e12499144f37f5 (diff) | |
download | dbscripts-a639bca6cc963483eb1627c7e6a1fa0af23ca148.tar.gz dbscripts-a639bca6cc963483eb1627c7e6a1fa0af23ca148.tar.xz |
add new tests; misc
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'test/test.d/db-remove.sh')
-rwxr-xr-x | test/test.d/db-remove.sh | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/test/test.d/db-remove.sh b/test/test.d/db-remove.sh index 6905821..f706b7a 100755 --- a/test/test.d/db-remove.sh +++ b/test/test.d/db-remove.sh @@ -20,9 +20,6 @@ testRemovePackages() { for pkgname in ${pkgnames[@]}; do for arch in ${arches[@]}; do - # TODO: removing pkg-split-a/pkg-split-b won't work because - # db-remove only removes single packages, not a group of split - # packages. do we want that? ../db-remove extra ${arch} ${pkgname} done done @@ -56,9 +53,6 @@ testRemoveMultiplePackages() { ../db-update for arch in ${arches[@]}; do - # TODO: removing pkg-split-a/pkg-split-b won't work because - # db-remove only removes single packages, not a group of split - # packages. do we want that? ../db-remove extra ${arch} ${pkgnames[@]} done @@ -94,4 +88,22 @@ testRemoveAnyPackages() { done } +testRemoveSingleArch() { + local pkgs=('pkg-any-a' 'pkg-any-b') + local pkgbase + + for pkgbase in ${pkgs[@]}; do + releasePackage extra ${pkgbase} any + done + + ../db-update + + ../db-remove extra i686 pkg-any-a + + checkRemovedPackage extra pkg-any-a i686 + checkPackage extra pkg-any-a-1-1-any.pkg.tar.xz x86_64 + checkPackage extra pkg-any-b-1-1-any.pkg.tar.xz i686 + checkPackage extra pkg-any-b-1-1-any.pkg.tar.xz x86_64 +} + . "${curdir}/../lib/shunit2" |