summaryrefslogtreecommitdiff
path: root/test/pacman/tests/smoke003.py
blob: 74083c7baebaf69ab467a92424536e010c26c472 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
self.description = "Remove a thousand packages in a single transaction"

for i in range(1000):
	p = pmpkg("pkg%03dname" % i)
	p.files = ["usr/share/pkg%03d/file" % i]
	self.addpkg2db("local", p)

pkglist = ["pkg%03dname" % i for i in range(100, 1000)]
self.args = "-R %s" % " ".join(pkglist)

self.addrule("PACMAN_RETCODE=0")
# picked random packages to test for, since a loop is too much to handle
self.addrule("PKG_EXIST=pkg000name")
self.addrule("PKG_EXIST=pkg050name")
self.addrule("PKG_EXIST=pkg099name")
self.addrule("!PKG_EXIST=pkg100name")
self.addrule("!PKG_EXIST=pkg383name")
self.addrule("!PKG_EXIST=pkg674name")
self.addrule("!PKG_EXIST=pkg999name")