[Frugalware-darcs] pacman-g2: pactest/tests/sync98*: new tests for -R vs provides

VMiklos vmiklos at frugalware.org
Sun Jul 8 15:42:24 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=pacman-g2;a=darcs_commitdiff;h=20070708134114-e2957-5e20f166b04dc95c8bf7305456b0868c7a9db08e.gz;

[pactest/tests/sync98*: new tests for -R vs provides
VMiklos <vmiklos at frugalware.org>**20070708134114] {
addfile ./pactest/tests/sync980.py
addfile ./pactest/tests/sync981.py
hunk ./pactest/tests/sync980.py 1
+self.description = "Remove with provides"
+
+lp1 = pmpkg("hunspell")
+lp1.depends = ["hunspell-dict"]
+lp1.requiredby = ['hunspell-hu', 'hunspell-de']
+self.addpkg2db("local", lp1);
+
+lp2 = pmpkg("hunspell-de")
+lp2.provides = ["hunspell-dict"]
+lp2.depends = ["hunspell"]
+lp2.requiredby = ['hunspell']
+self.addpkg2db("local", lp2)
+
+lp3 = pmpkg("hunspell-hu")
+lp3.provides = ["hunspell-dict"]
+lp2.depends = ["hunspell"]
+lp2.requiredby = ['hunspell']
+self.addpkg2db("local", lp3)
+
+self.args = "-R hunspell-hu"
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("PKG_EXIST=hunspell")
+self.addrule("PKG_EXIST=hunspell-de")
+self.addrule("!PKG_EXIST=hunspell-hu")
hunk ./pactest/tests/sync981.py 1
+self.description = "Remove with provides"
+
+lp1 = pmpkg("hunspell")
+lp1.depends = ["hunspell-dict"]
+lp1.requiredby = ['hunspell-hu', 'hunspell-de']
+self.addpkg2db("local", lp1);
+
+lp2 = pmpkg("hunspell-de")
+lp2.provides = ["hunspell-dict"]
+lp2.depends = ["hunspell"]
+lp2.requiredby = ['hunspell']
+self.addpkg2db("local", lp2)
+
+lp3 = pmpkg("hunspell-hu")
+lp3.provides = ["hunspell-dict"]
+lp2.depends = ["hunspell"]
+lp2.requiredby = ['hunspell']
+self.addpkg2db("local", lp3)
+
+self.args = "-R hunspell-de hunspell-hu"
+
+self.addrule("PACMAN_RETCODE=1")
+self.addrule("PKG_EXIST=hunspell")
+self.addrule("PKG_EXIST=hunspell-de")
+self.addrule("PKG_EXIST=hunspell-hu")
}


More information about the Frugalware-darcs mailing list