summaryrefslogtreecommitdiffstats
path: root/test/pacman/tests/sync502.py
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-10-30 18:33:14 +0100
committerDave Reisner <dreisner@archlinux.org>2011-11-13 20:19:00 +0100
commit902305f1633298ff0ef7cd2bfbed0e91aae91646 (patch)
tree84b45ee05d773a42b301a98f06153a00de2b9835 /test/pacman/tests/sync502.py
parent64d54f674150fdcf4b925f7f27067c7ec0446863 (diff)
downloadpacman-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/sync502.py')
-rw-r--r--test/pacman/tests/sync502.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/pacman/tests/sync502.py b/test/pacman/tests/sync502.py
new file mode 100644
index 00000000..5cc42c9f
--- /dev/null
+++ b/test/pacman/tests/sync502.py
@@ -0,0 +1,17 @@
+self.description = "Install a package from a sync db with fnmatch'ed NoExtract"
+
+sp = pmpkg("dummy")
+sp.files = ["bin/dummy",
+ "usr/share/man/man8",
+ "usr/share/man/man1/dummy.1"]
+self.addpkg2db("sync", sp)
+
+self.option["NoExtract"] = ["usr/share/man/*"]
+
+self.args = "-S %s" % sp.name
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("PKG_EXIST=dummy")
+self.addrule("FILE_EXIST=bin/dummy")
+self.addrule("!FILE_EXIST=usr/share/man/man8")
+self.addrule("!FILE_EXIST=usr/share/man/man1/dummy.1")