diff options
Diffstat (limited to 'test/pacman/tests/deprange001.py')
-rw-r--r-- | test/pacman/tests/deprange001.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/pacman/tests/deprange001.py b/test/pacman/tests/deprange001.py new file mode 100644 index 00000000..e6d3e3b2 --- /dev/null +++ b/test/pacman/tests/deprange001.py @@ -0,0 +1,19 @@ +self.description = "dependency ranges should be satisfied by the same package" + +lp1 = pmpkg("pkg1") +lp1.provides = ["dependency=2"] +self.addpkg2db("local", lp1) + +lp2 = pmpkg("pkg2") +lp2.provides = ["dependency=5"] +self.addpkg2db("local", lp2) + +p = pmpkg("pkg3") +p.depends = ["dependency>=3", "dependency<=4"] +self.addpkg(p) + +self.args = "-U %s" % p.filename() +self.addrule("PACMAN_RETCODE=1") +self.addrule("!PKG_EXIST=pkg3") + +self.expectfailure = True
\ No newline at end of file |