[dbscripts,v2,1/6] test: db-move: Verify that it works on single-arch packages

Message ID 20180622160816.16076-2-lukeshu@lukeshu.com
State New
Headers show
Series
  • Be less tightly coupled with SVN
Related show

Commit Message

Luke Shumaker June 22, 2018, 4:08 p.m. UTC
From: Luke Shumaker <lukeshu@parabola.nu>

---
 test/cases/db-move.bats | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

Patch

diff --git a/test/cases/db-move.bats b/test/cases/db-move.bats
index df3dbdf..27fe8d1 100644
--- a/test/cases/db-move.bats
+++ b/test/cases/db-move.bats
@@ -39,6 +39,25 @@  load ../lib/common
 	done
 }
 
+@test "move single-arch packages" {
+	local arches=('i686' 'x86_64')
+	local pkgs=('pkg-single-arch' 'pkg-simple-b')
+	local pkgbase
+	local arch
+
+	for pkgbase in ${pkgs[@]}; do
+		releasePackage testing ${pkgbase}
+	done
+
+	db-update
+
+	db-move testing extra pkg-single-arch
+
+	checkRemovedPackage testing pkg-single-arch
+	checkPackage extra pkg-single-arch
+	checkPackage testing pkg-simple-b
+}
+
 @test "move epoch packages" {
 	local arches=('i686' 'x86_64')
 	local pkgs=('pkg-simple-epoch')