Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/pactest/tests/sync023.py
diff options
context:
space:
mode:
Diffstat (limited to 'pactest/tests/sync023.py')
-rw-r--r--pactest/tests/sync023.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/pactest/tests/sync023.py b/pactest/tests/sync023.py
new file mode 100644
index 00000000..d8f78b80
--- /dev/null
+++ b/pactest/tests/sync023.py
@@ -0,0 +1,22 @@
+self.description = "Install group with two conflicting packages, one replacing other (backwards)"
+
+sp1 = pmpkg("pkg1")
+sp1.groups = ["grp"]
+sp1.provides = ["pkg2"]
+sp1.conflicts = ["pkg2"]
+sp1.replaces = ["pkg2"]
+self.addpkg2db("sync", sp1);
+
+sp2 = pmpkg("pkg2")
+sp2.groups = ["grp"]
+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=pkg1");
+self.addrule("!PKG_EXIST=pkg2");