summaryrefslogtreecommitdiff
path: root/pactest/tests/sync022.py
diff options
context:
space:
mode:
authorChantry Xavier <shiningxc@gmail.com>2007-06-26 15:27:56 -0400
committerDan McGee <dan@archlinux.org>2007-06-26 15:27:56 -0400
commit31cbbbf95365e5b821e3f93301e808a973035b2d (patch)
treea098a818bcfa6fbaa685875e5913b1edc014468e /pactest/tests/sync022.py
parent0e4c1e86ed16c4793b9521e8152b30cc166aae68 (diff)
downloadpacman-31cbbbf95365e5b821e3f93301e808a973035b2d.tar.xz
Add pactest to help debug FS #7415
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/tests/sync022.py')
-rw-r--r--pactest/tests/sync022.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/pactest/tests/sync022.py b/pactest/tests/sync022.py
new file mode 100644
index 00000000..c24a979f
--- /dev/null
+++ b/pactest/tests/sync022.py
@@ -0,0 +1,22 @@
+self.description = "Installs a group with two conflicting packages, one replacing the other"
+
+sp1 = pmpkg("pkg1")
+sp1.groups = ["grp"]
+self.addpkg2db("sync", sp1);
+
+sp2 = pmpkg("pkg2")
+sp2.groups = ["grp"]
+sp2.provides = ["pkg1"]
+sp2.conflicts = ["pkg1"]
+sp2.replaces = ["pkg1"]
+self.addpkg2db("sync", sp2);
+
+lp1 = pmpkg("pkg2")
+lp1.groups = ["grp"]
+self.addpkg2db("local", lp1);
+
+self.args = "-S %s" % "grp"
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("PKG_EXIST=pkg2");
+self.addrule("!PKG_EXIST=pkg1");