Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")