Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/pactest/tests/config001.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-05-17 18:47:30 -0500
committerDan McGee <dan@archlinux.org>2010-05-17 18:47:30 -0500
commita6ace987a913852af30bb5e3ae6bf145dc9c6157 (patch)
treebab1c477eda951edf1c9ea51103ae3b0f23060f2 /pactest/tests/config001.py
parent3a85f83840888cbab09f2413fa3eb7c3b71055e5 (diff)
Add some machinery to test the Include directive
After the previous patch that re-enabled its use outside of sync repository sections which we had unintentionally disabled. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/tests/config001.py')
-rw-r--r--pactest/tests/config001.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/pactest/tests/config001.py b/pactest/tests/config001.py
new file mode 100644
index 00000000..3411433f
--- /dev/null
+++ b/pactest/tests/config001.py
@@ -0,0 +1,17 @@
+self.description = "Quick check for Include being parsed in [options]"
+
+self.option['Include'] = ['/dev/null']
+
+p = pmpkg("foobar")
+p.files = ["bin/foobar"]
+p.desc = "test description"
+p.groups = ["foo"]
+p.url = "http://www.archlinux.org"
+p.license = "GPL2"
+p.arch = "i686"
+
+self.addpkg2db("local", p)
+
+self.args = "-Qi %s" % p.name
+
+self.addrule("PACMAN_RETCODE=0")