index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dominik Fischer <d.f.fischer@web.de> | 2015-12-07 21:37:09 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2016-01-15 14:47:36 +1000 |
commit | 9813107c3368684784706cf2b77bd056bea58e3c (patch) | |
tree | 037c64627ef58151e82202de1a5c682764d2323e | |
parent | 00c03295315cb2d359733858d2945bb6a7070c70 (diff) |
-rw-r--r-- | test/pacman/tests/TESTS | 1 | ||||
-rw-r--r-- | test/pacman/tests/deprange001.py | 19 |
diff --git a/test/pacman/tests/TESTS b/test/pacman/tests/TESTS index bee7c8ec..f35ec1a0 100644 --- a/test/pacman/tests/TESTS +++ b/test/pacman/tests/TESTS @@ -15,6 +15,7 @@ TESTS += test/pacman/tests/depconflict110.py TESTS += test/pacman/tests/depconflict111.py TESTS += test/pacman/tests/depconflict120.py TESTS += test/pacman/tests/dependency-cycle-fixed-by-upgrade.py +TESTS += test/pacman/tests/deprange001.py TESTS += test/pacman/tests/deptest001.py TESTS += test/pacman/tests/dummy001.py TESTS += test/pacman/tests/epoch001.py 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 |