diff options
author | Dan McGee <dan@archlinux.org> | 2007-07-11 06:45:15 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-07-11 06:45:15 +0200 |
commit | 37736a56f9c5e4819a8f132a51bc0784c4b288ec (patch) | |
tree | 0e8b5f7da70681825988a3146c45f848281bde8c | |
parent | 39b654965580bfb7dc0ab72b8c901fbf7729a568 (diff) | |
download | pacman-37736a56f9c5e4819a8f132a51bc0784c4b288ec.tar.gz pacman-37736a56f9c5e4819a8f132a51bc0784c4b288ec.tar.xz |
Add new pactest that is backwards of sync022
sync022 was added here:
39b654965580bfb7dc0ab72b8c901fbf7729a568
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>
-rw-r--r-- | pactest/tests/sync022.py | 2 | ||||
-rw-r--r-- | pactest/tests/sync023.py | 22 |
2 files changed, 23 insertions, 1 deletions
diff --git a/pactest/tests/sync022.py b/pactest/tests/sync022.py index c24a979f..81d52ff6 100644 --- a/pactest/tests/sync022.py +++ b/pactest/tests/sync022.py @@ -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"] diff --git a/pactest/tests/sync023.py b/pactest/tests/sync023.py new file mode 100644 index 00000000..d8f78b80 --- /dev/null +++ b/pactest/tests/sync023.py @@ -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"); |