summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNagy Gabor <ngaba@bibl.u-szeged.hu>2010-05-17 21:41:51 +0200
committerDan McGee <dan@archlinux.org>2010-05-18 18:33:56 +0200
commit0e7ba6bddd4b6c67cb6344ee3af4bacb00cda76b (patch)
treea7d3eac5ab1571b56f9b23a87598425f84d718c8
parenteada558e12da1fd605d8c7401ec3c17a37fed9a9 (diff)
downloadpacman-0e7ba6bddd4b6c67cb6344ee3af4bacb00cda76b.tar.gz
pacman-0e7ba6bddd4b6c67cb6344ee3af4bacb00cda76b.tar.xz
New pactest: unresolvable001.py
To test the regression of commit eada558e12. Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu> Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--pactest/tests/unresolvable001.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/pactest/tests/unresolvable001.py b/pactest/tests/unresolvable001.py
new file mode 100644
index 00000000..c98a4c02
--- /dev/null
+++ b/pactest/tests/unresolvable001.py
@@ -0,0 +1,21 @@
+self.description = "An unresolvable dependency"
+
+packageA1 = pmpkg("dep")
+self.addpkg2db("local", packageA1)
+
+packageA1up = pmpkg("dep", "2.0-1")
+packageA1up.depends = ["fake"];
+self.addpkg2db("sync", packageA1up)
+
+packageA2up = pmpkg("package")
+packageA2up.depends = ["dep"];
+self.addpkg2db("sync", packageA2up)
+
+self.args = "-S package dep --ask=32"
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("PKG_EXIST=package")
+self.addrule("PKG_EXIST=dep")
+self.addrule("PKG_VERSION=dep|1.0-1")
+
+self.expectfailure = True