1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-05 00:55:04 -05:00
pacman/pactest/tests/type001.py
Chantry Xavier 0dc34f496d extend type001 pactest with a symlink.
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
2007-10-28 21:18:55 -05:00

18 lines
471 B
Python

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")