diff options
author | Dan McGee <dan@archlinux.org> | 2010-05-18 01:47:30 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-05-18 01:47:30 +0200 |
commit | a6ace987a913852af30bb5e3ae6bf145dc9c6157 (patch) | |
tree | bab1c477eda951edf1c9ea51103ae3b0f23060f2 /pactest/tests/config002.py | |
parent | 3a85f83840888cbab09f2413fa3eb7c3b71055e5 (diff) | |
download | pacman-a6ace987a913852af30bb5e3ae6bf145dc9c6157.tar.gz pacman-a6ace987a913852af30bb5e3ae6bf145dc9c6157.tar.xz |
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/config002.py')
-rw-r--r-- | pactest/tests/config002.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pactest/tests/config002.py b/pactest/tests/config002.py new file mode 100644 index 00000000..8efe5a04 --- /dev/null +++ b/pactest/tests/config002.py @@ -0,0 +1,12 @@ +self.description = "Quick check for Include being parsed in [db]" + +sp = pmpkg("dummy") +sp.files = ["bin/dummy", + "usr/man/man1/dummy.1"] +self.addpkg2db("sync", sp) + +self.db['sync'].option['Include'] = ['/dev/null'] + +self.args = "-Si %s" % sp.name + +self.addrule("PACMAN_RETCODE=0") |