summaryrefslogtreecommitdiffstats
path: root/test/pacman/tests/smoke002.py
blob: 8ff5cab7fb4ce3e6dd3d1a109f20f0119467486f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
self.description = "Install packages with huge descriptions"

p1 = pmpkg("pkg1")
p1.desc = 'A' * 500 * 1024
self.addpkg(p1)

p2 = pmpkg("pkg2")
p2.desc = 'A' * 600 * 1024
self.addpkg(p2)

self.args = "-U %s %s" % (p1.filename(), p2.filename())

# We error out when fed a package with an invalid description; the second one
# fits the bill in this case as the desc is > 512K
self.addrule("PACMAN_RETCODE=1")
self.addrule("!PKG_EXIST=pkg1")
self.addrule("!PKG_EXIST=pkg1")