pactest: Rename epoch pactests
[pacman-ng.git] / test / pacman / tests / database012.py
blob52813ec6e2546c793e17b0ca331a32a0043566fa
1 # TODO: these are labeled as database packages because they sure seem to me to
2 # be database-type operations. In their current implementation however they are
3 # calling -U and -R rather than -D. Obviously the tests will need to be updated
4 # if this changes.
5 self.description = "Upgrade a package with --dbonly, no files touched"
7 lp = pmpkg("dummy")
8 lp.files = ["bin/dummy",
9 "usr/man/man1/dummy.1"]
10 self.addpkg2db("local", lp)
12 p = pmpkg("dummy", "2.0-1")
13 p.files = ["bin/dummy",
14 "bin/dummy2",
15 "usr/man/man1/dummy.1"]
16 self.addpkg(p)
18 self.args = "-U --dbonly %s" % p.filename()
20 self.addrule("PACMAN_RETCODE=0")
21 self.addrule("PKG_EXIST=dummy")
22 self.addrule("PKG_VERSION=dummy|2.0-1")
23 for f in lp.files:
24 self.addrule("FILE_EXIST=%s" % f)
25 self.addrule("!FILE_EXIST=bin/dummy2")