diff options
author | Nagy Gabor <ngaba@bibl.u-szeged.hu> | 2008-07-08 10:30:28 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-07-13 16:14:36 +0200 |
commit | 1d9d47d62c8dab07bbd411ed0c1919ad4149cd43 (patch) | |
tree | f9cd46d762d6728c98ed8837d1b702d532ed12ff /pactest | |
parent | b196cc43a50e6fd1dfa9425d7ff8a9302e6fec84 (diff) | |
download | pacman-1d9d47d62c8dab07bbd411ed0c1919ad4149cd43.tar.gz pacman-1d9d47d62c8dab07bbd411ed0c1919ad4149cd43.tar.xz |
New remove060.py pactest
This is a group removal test.
Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest')
-rw-r--r-- | pactest/tests/remove060.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pactest/tests/remove060.py b/pactest/tests/remove060.py new file mode 100644 index 00000000..7f705519 --- /dev/null +++ b/pactest/tests/remove060.py @@ -0,0 +1,19 @@ +self.description = "Remove a group" + +lp1 = pmpkg("pkg1") +lp1.groups = ["grp"] + +lp2 = pmpkg("pkg2") + +lp3 = pmpkg("pkg3") +lp3.groups = ["grp"] + +for p in lp1, lp2, lp3: + self.addpkg2db("local", p); + +self.args = "-R grp" + +self.addrule("PACMAN_RETCODE=0") +self.addrule("!PKG_EXIST=pkg1") +self.addrule("PKG_EXIST=pkg2") +self.addrule("!PKG_EXIST=pkg3") |