[pacman-dev] [PATCH] Add test case for the perl 5.20 dependency breakage

Florian Pritz bluewind at xinu.at
Sun Jun 1 08:21:39 EDT 2014


This test currently fails.

Signed-off-by: Florian Pritz <bluewind at xinu.at>
---
 test/pacman/tests/sync-perl520-breakage.py | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 test/pacman/tests/sync-perl520-breakage.py

diff --git a/test/pacman/tests/sync-perl520-breakage.py b/test/pacman/tests/sync-perl520-breakage.py
new file mode 100644
index 0000000..3c1c145
--- /dev/null
+++ b/test/pacman/tests/sync-perl520-breakage.py
@@ -0,0 +1,21 @@
+self.description = "Upgrade a package that loose a provides entry which moves to a dedicated package"
+
+lp1 = pmpkg("perl", "5.18-1")
+lp1.provides = ["perl-scalar-list-utils=1.27"]
+lp2 = pmpkg("perl-data-optlist")
+lp2.depends = ["perl-scalar-list-utils"]
+
+for p in lp1, lp2:
+	self.addpkg2db("local", p)
+
+p1 = pmpkg("perl", "5.20-1")
+p2 = pmpkg("perl-scalar-list-utils", "1.38-1")
+
+for p in p1, p2:
+	self.addpkg2db("sync", p)
+
+self.args = "-Su"
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("PKG_VERSION=perl-scalar-list-utils|1.38-1")
+self.addrule("PKG_VERSION=perl|5.20-1")
-- 
1.9.2


More information about the pacman-dev mailing list