From a6ace987a913852af30bb5e3ae6bf145dc9c6157 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 17 May 2010 18:47:30 -0500 Subject: 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 --- pactest/tests/config001.py | 17 +++++++++++++++++ pactest/tests/config002.py | 12 ++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 pactest/tests/config001.py create mode 100644 pactest/tests/config002.py (limited to 'pactest/tests') 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") 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") -- cgit v1.2.3-70-g09d2