2007-12-02 18:56:48 -05:00
|
|
|
self.description = "test deptest (-T) functionality"
|
|
|
|
|
2008-01-21 19:28:05 -05:00
|
|
|
lp1 = pmpkg("pkg1")
|
|
|
|
self.addpkg2db("local", lp1)
|
2007-12-02 18:56:48 -05:00
|
|
|
|
2008-01-21 19:28:05 -05:00
|
|
|
lp3 = pmpkg("pkg3", "2.0-1")
|
|
|
|
lp3.provides = ("prov=3.0")
|
|
|
|
self.addpkg2db("local", lp3)
|
2007-12-02 18:56:48 -05:00
|
|
|
|
2008-01-21 19:28:05 -05:00
|
|
|
self.args = "-T pkg1 pkg2 pkg3\>2.1 prov\>\=3.0"
|
2007-12-02 18:56:48 -05:00
|
|
|
|
|
|
|
self.addrule("PACMAN_RETCODE=127")
|
2008-01-21 19:28:05 -05:00
|
|
|
self.addrule("!PACMAN_OUTPUT=pkg1")
|
|
|
|
self.addrule("PACMAN_OUTPUT=pkg2")
|
|
|
|
self.addrule("PACMAN_OUTPUT=pkg3")
|
|
|
|
self.addrule("!PACMAN_OUTPUT=prov")
|