From d7f8838294fc3567fec8fa9521ab9f91d9897829 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 21 Nov 2011 20:31:17 -0600 Subject: Add two new pactests for pacman upgrade behavior Both currently marked as failing. * sync303.py encapsulates the broken behavior reported in FS#27214. * sync304.py shows how packages depending on a specific version of a package in SyncFirst can cause breakage of the dependency resolver. Signed-off-by: Dan McGee --- test/pacman/tests/sync303.py | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 test/pacman/tests/sync303.py (limited to 'test/pacman/tests/sync303.py') diff --git a/test/pacman/tests/sync303.py b/test/pacman/tests/sync303.py new file mode 100644 index 00000000..b717dd2c --- /dev/null +++ b/test/pacman/tests/sync303.py @@ -0,0 +1,38 @@ +self.description = "Sysupgrade: upgrade pacman with deps as provisions" + +sp = pmpkg("pacman", "1.0-2") +sp.depends = ["zlib"] +self.addpkg2db("sync", sp) + +glibcdep = pmpkg("glibc", "2.13-1") +self.addpkg2db("sync", glibcdep) + +zlibdep = pmpkg("zlib", "1.2.5-3") +zlibdep.depends = ["glibc"] +self.addpkg2db("sync", zlibdep) + + +lp = pmpkg("pacman", "1.0-1") +lp.depends = ["zlib"] +self.addpkg2db("local", lp) + +lp2 = pmpkg("glibc-awesome", "2.13-2") +lp2.provides = ["glibc=2.13"] +lp2.conflicts = ["glibc"] +self.addpkg2db("local", lp2) + +lp3 = pmpkg("zlib", "1.2.5-3") +self.addpkg2db("local", lp3) + +self.option["SyncFirst"] = ["pacman"] + +self.args = "-Su" + +self.addrule("PACMAN_RETCODE=0") +self.addrule("PKG_EXIST=pacman") +self.addrule("PKG_VERSION=pacman|1.0-2") +self.addrule("PKG_EXIST=glibc-awesome") +self.addrule("PKG_VERSION=glibc-awesome|2.13-2") +self.addrule("PKG_EXIST=zlib") + +self.expectfailure = True -- cgit v1.2.3-70-g09d2