diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-10-30 18:33:14 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-11-13 20:19:00 +0100 |
commit | 902305f1633298ff0ef7cd2bfbed0e91aae91646 (patch) | |
tree | 84b45ee05d773a42b301a98f06153a00de2b9835 /test/pacman/tests/sync139.py | |
parent | 64d54f674150fdcf4b925f7f27067c7ec0446863 (diff) | |
download | pacman-902305f1633298ff0ef7cd2bfbed0e91aae91646.tar.gz pacman-902305f1633298ff0ef7cd2bfbed0e91aae91646.tar.xz |
add support for back end fnmatch'd options
This is work originally provided by Sascha Kruse on FS#20360 with only
minor adjustments to the implementation. It's been expanded to cover:
NoUpgrade, NoExtract, IgnorePkg, IgnoreGroup.
Adds tests ignore008, sync139, sync502, and sync503.
Also satisfies FS#18988.
Original-work-by: Sascha Kruse <knopwob@googlemail.com>
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'test/pacman/tests/sync139.py')
-rw-r--r-- | test/pacman/tests/sync139.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/pacman/tests/sync139.py b/test/pacman/tests/sync139.py new file mode 100644 index 00000000..0b0526d8 --- /dev/null +++ b/test/pacman/tests/sync139.py @@ -0,0 +1,23 @@ +self.description = "Sysupgrade of packages in fnmatch'd IgnoreGroup" + +sp1 = pmpkg("pkg1", "1.0-2") +sp1.groups = ["grp"] +sp2 = pmpkg("pkg2", "1.0-2") +sp2.groups = ["grp2"] + +for p in sp1, sp2: + self.addpkg2db("sync", p) + +lp1 = pmpkg("pkg1", "1.0-1") +lp2 = pmpkg("pkg2", "1.0-1") + +for p in lp1, lp2: + self.addpkg2db("local", p) + +self.option["IgnoreGroup"] = ["grp"] + +self.args = "-Su" + +self.addrule("PACMAN_RETCODE=0") +self.addrule("PKG_VERSION=pkg1|1.0-1") +self.addrule("PKG_VERSION=pkg2|1.0-2") |