mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-08 12:28:00 -05:00
New sync1005 and sync1006 pactests
This pactest checks what happens if a package exists in two sync repos. Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu> [Dan: added sync1006, same test with different versions] Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
22c2043160
commit
f19820cba8
14
pactest/tests/sync1005.py
Normal file
14
pactest/tests/sync1005.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
self.description = "Conflicting package names in sync repos"
|
||||||
|
|
||||||
|
sp1 = pmpkg("pkg")
|
||||||
|
sp1.provides = [ "provision1" ]
|
||||||
|
self.addpkg2db("sync1", sp1)
|
||||||
|
|
||||||
|
sp2 = pmpkg("pkg")
|
||||||
|
sp2.provides = [ "provision2" ]
|
||||||
|
self.addpkg2db("sync2", sp2)
|
||||||
|
|
||||||
|
self.args = "-S provision1 provision2"
|
||||||
|
|
||||||
|
self.addrule("PACMAN_RETCODE=1")
|
||||||
|
self.addrule("!PKG_EXIST=pkg")
|
14
pactest/tests/sync1006.py
Normal file
14
pactest/tests/sync1006.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
self.description = "Conflicting package names in sync repos (diff versions)"
|
||||||
|
|
||||||
|
sp1 = pmpkg("pkg", "1.0-1")
|
||||||
|
sp1.provides = [ "provision1" ]
|
||||||
|
self.addpkg2db("sync1", sp1)
|
||||||
|
|
||||||
|
sp2 = pmpkg("pkg", "2.0-1")
|
||||||
|
sp2.provides = [ "provision2" ]
|
||||||
|
self.addpkg2db("sync2", sp2)
|
||||||
|
|
||||||
|
self.args = "-S provision1 provision2"
|
||||||
|
|
||||||
|
self.addrule("PACMAN_RETCODE=1")
|
||||||
|
self.addrule("!PKG_EXIST=pkg")
|
Loading…
Reference in New Issue
Block a user