summaryrefslogtreecommitdiffstats
path: root/pactest/tests/type001.py
blob: d55dcc11baddea9d34c8910d7690497fb1f9cd81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
self.description = "Check the types of default files in a package"

p = pmpkg("pkg1")
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")
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")