Move important information up in -Si output
[pacman-ng.git] / test / pacman / tests / sync1100.py
blobc7bb56aaaccb372db84d8b0f77725f806251dc6a
1 self.description = "Get info on package from a sync db"
3 sp = pmpkg("dummy")
4 sp.files = ["bin/dummy",
5 "usr/man/man1/dummy.1"]
6 sp.desc = "test description"
7 sp.groups = ["foo"]
8 sp.url = "http://www.archlinux.org"
9 sp.license = "GPL2"
10 sp.arch = "i686"
11 # test both old style and new style dates
12 sp.builddate = "Mon Oct 1 01:40:21 2007 UTC"
13 sp.packager = "Arch Linux"
14 sp.md5sum = "00000000000000000000000000000000"
16 self.addpkg2db("sync", sp)
18 self.args = "-Si %s" % sp.name
20 self.addrule("PACMAN_RETCODE=0")
21 self.addrule("PACMAN_OUTPUT=^Name.*%s" % sp.name)
22 self.addrule("PACMAN_OUTPUT=^Description.*%s" % sp.desc)
23 self.addrule("PACMAN_OUTPUT=^Build Date.*2007")