[Frugalware-darcs] pacman-g2: pactest/tests: new testcases for #2093

VMiklos vmiklos at frugalware.org
Sun Jun 3 00:24:49 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=pacman-g2;a=darcs_commitdiff;h=20070602222224-e2957-90dc07107d3187ffc62242a87bd09466017ca109.gz;

[pactest/tests: new testcases for #2093
VMiklos <vmiklos at frugalware.org>**20070602222224] {
addfile ./pactest/tests/add005.py
hunk ./pactest/tests/add005.py 1
+self.description = "Install a package without depcheck"
+
+p1 = pmpkg("kdelibs", "1.0-1")
+p1.requiredby = ['foo']
+self.addpkg2db("local", p1)
+
+p2 = pmpkg("kfoo")
+p2.depends = ["kdelibs"]
+self.addpkg(p2)
+
+self.args = "-Ud %s" % p2.filename()
+
+self.addrule("PKG_REQUIREDBY=kdelibs|foo")
addfile ./pactest/tests/remove031.py
hunk ./pactest/tests/remove031.py 1
+self.description = "Remove a package without depcheck"
+
+p1 = pmpkg("kdelibs", "1.0-1")
+p1.requiredby = ['foo']
+self.addpkg2db("local", p1)
+
+p2 = pmpkg("kfoo")
+p2.depends = ["kdelibs"]
+self.addpkg2db("local", p2)
+
+self.args = "-Rd %s" % p2.name
+
+self.addrule("PKG_REQUIREDBY=kdelibs|foo")
}


More information about the Frugalware-darcs mailing list