mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
Add new pactest that is backwards of sync022
sync022 was added here:
39b6549655
This pactest reverses the installed package to see if it is correctly
picked, in order to test some further changes to this depcheck code that
currently makes sync022 fail.
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
39b6549655
commit
37736a56f9
@ -1,4 +1,4 @@
|
||||
self.description = "Installs a group with two conflicting packages, one replacing the other"
|
||||
self.description = "Install group with two conflicting packages, one replacing other"
|
||||
|
||||
sp1 = pmpkg("pkg1")
|
||||
sp1.groups = ["grp"]
|
||||
|
22
pactest/tests/sync023.py
Normal file
22
pactest/tests/sync023.py
Normal file
@ -0,0 +1,22 @@
|
||||
self.description = "Install group with two conflicting packages, one replacing other (backwards)"
|
||||
|
||||
sp1 = pmpkg("pkg1")
|
||||
sp1.groups = ["grp"]
|
||||
sp1.provides = ["pkg2"]
|
||||
sp1.conflicts = ["pkg2"]
|
||||
sp1.replaces = ["pkg2"]
|
||||
self.addpkg2db("sync", sp1);
|
||||
|
||||
sp2 = pmpkg("pkg2")
|
||||
sp2.groups = ["grp"]
|
||||
self.addpkg2db("sync", sp2);
|
||||
|
||||
lp1 = pmpkg("pkg2")
|
||||
lp1.groups = ["grp"]
|
||||
self.addpkg2db("local", lp1);
|
||||
|
||||
self.args = "-S %s" % "grp"
|
||||
|
||||
self.addrule("PACMAN_RETCODE=0")
|
||||
self.addrule("PKG_EXIST=pkg1");
|
||||
self.addrule("!PKG_EXIST=pkg2");
|
Loading…
Reference in New Issue
Block a user