summaryrefslogtreecommitdiffstats
path: root/pactest/tests
diff options
context:
space:
mode:
authorNagy Gabor <ngaba@bibl.u-szeged.hu>2007-11-14 19:56:41 +0100
committerDan McGee <dan@archlinux.org>2007-11-15 01:49:02 +0100
commit1d57a3e801421f6ddd43522f1a0d1ebaacf7aa92 (patch)
treefa1cf6c5f5f46af073764ef2deff3ca7958ea79b /pactest/tests
parent85b06f127600131e11afb3629e2609334dee00df (diff)
downloadpacman-1d57a3e801421f6ddd43522f1a0d1ebaacf7aa92.tar.gz
pacman-1d57a3e801421f6ddd43522f1a0d1ebaacf7aa92.tar.xz
new add043.py pactest
Currently alpm_depcmp uses pkg->version as a version number for provisions, which is odd. The failure of the pactest demonstrates this. Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/tests')
-rw-r--r--pactest/tests/add043.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/pactest/tests/add043.py b/pactest/tests/add043.py
new file mode 100644
index 00000000..18f732ee
--- /dev/null
+++ b/pactest/tests/add043.py
@@ -0,0 +1,15 @@
+self.description = "provision>=1.0-2 dependency"
+
+p = pmpkg("pkg1", "1.0-2")
+p.depends = ["provision>=1.0-2"]
+self.addpkg(p)
+
+lp = pmpkg("pkg2", "1.0-2")
+lp.provides = ["provision"]
+self.addpkg2db("local", lp)
+
+self.args = "-A %s" % p.filename()
+
+self.addrule("PACMAN_RETCODE=1")
+self.addrule("!PKG_EXIST=pkg1")
+self.addrule("PKG_EXIST=pkg2")