From 0dc34f496dca3d916eae85a0357049b8b9d711bb Mon Sep 17 00:00:00 2001 From: Chantry Xavier Date: Sun, 28 Oct 2007 13:37:49 +0100 Subject: extend type001 pactest with a symlink. Signed-off-by: Chantry Xavier --- pactest/tests/type001.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'pactest/tests') 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") -- cgit v1.2.3-70-g09d2