index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Florian Pritz <bluewind@xinu.at> | 2014-06-09 14:21:04 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-06-10 14:24:45 +1000 |
commit | d920e7053c5be3325e40f504f56a37ac8c779ad2 (patch) | |
tree | 0307ed3d9770b49b13752986af3537e23050a1ae | |
parent | b9f98ae97c9419a55b609988fefc6d4fc357d350 (diff) |
-rw-r--r-- | test/pacman/tests/TESTS | 1 | ||||
-rw-r--r-- | test/pacman/tests/sync-update-package-removing-required-provides.py | 23 |
diff --git a/test/pacman/tests/TESTS b/test/pacman/tests/TESTS index a987cff7..dc47294a 100644 --- a/test/pacman/tests/TESTS +++ b/test/pacman/tests/TESTS @@ -140,6 +140,7 @@ TESTS += test/pacman/tests/sync-nodepversion03.py TESTS += test/pacman/tests/sync-nodepversion04.py TESTS += test/pacman/tests/sync-nodepversion05.py TESTS += test/pacman/tests/sync-nodepversion06.py +TESTS += test/pacman/tests/sync-update-package-removing-required-provides.py TESTS += test/pacman/tests/sync001.py TESTS += test/pacman/tests/sync002.py TESTS += test/pacman/tests/sync003.py diff --git a/test/pacman/tests/sync-update-package-removing-required-provides.py b/test/pacman/tests/sync-update-package-removing-required-provides.py new file mode 100644 index 00000000..19bfd922 --- /dev/null +++ b/test/pacman/tests/sync-update-package-removing-required-provides.py @@ -0,0 +1,23 @@ +self.description = "Upgrade a package that loose a provides entry which moves to a dedicated package" + +lp1 = pmpkg("pkg1", "1-1") +lp1.provides = ["feature=1"] +lp2 = pmpkg("pkg2") +lp2.depends = ["feature"] + +for p in lp1, lp2: + self.addpkg2db("local", p) + +sp1 = pmpkg("pkg1", "2-1") +# NOTE: no provides for feature anymore +sp2 = pmpkg("feature", "2-1") + +for p in sp1, sp2: + self.addpkg2db("sync", p) + +self.args = "-Su" + +self.addrule("PACMAN_RETCODE=0") +self.addrule("PKG_VERSION=feature|2-1") +self.addrule("PKG_VERSION=pkg1|2-1") +self.expectfailure = True |