Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChantry Xavier <shiningxc@gmail.com>2007-10-28 13:37:49 +0100
committerDan McGee <dan@archlinux.org>2007-10-28 21:18:55 -0500
commit0dc34f496dca3d916eae85a0357049b8b9d711bb (patch)
treef312040fb9075cac6f52bdc30c1c65e4b275d6fc
parent3e3e7a97a629cc86a53044766039c66d85cf67cb (diff)
extend type001 pactest with a symlink.
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
-rw-r--r--pactest/tests/type001.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/pactest/tests/type001.py b/pactest/tests/type001.py
index f119f14f..d55dcc11 100644
--- a/pactest/tests/type001.py
+++ b/pactest/tests/type001.py
@@ -1,13 +1,17 @@
self.description = "Check the types of default files in a package"
p = pmpkg("pkg1")
-p.files = ["bin/foo"
- "bin/bar"]
+p.files = ["foo/file1",
+ "foo/file2",
+ "foo/dir/",
+ "foo/symdir -> dir"]
self.addpkg(p)
self.args = "-U %s" % p.filename()
self.addrule("PACMAN_RETCODE=0")
-for f in p.files:
- self.addrule("FILE_TYPE=%s|file" % f)
-self.addrule("FILE_TYPE=bin/|dir")
+self.addrule("FILE_TYPE=foo/|dir")
+self.addrule("FILE_TYPE=foo/file1|file")
+self.addrule("FILE_TYPE=foo/file2|file")
+self.addrule("FILE_TYPE=foo/dir|dir")
+self.addrule("FILE_TYPE=foo/symdir|link")