It seems that sandbox.zip is removed from its location. I've created a
new zip file with the required specialities and updated the test.
This commit is contained in:
@@ -61,15 +61,15 @@ class ArchiveFileTestCase(unittest.TestCase):
|
||||
targetDir = ctx.pkg_work_dir()
|
||||
assert pathexists(targetDir + "/sandbox")
|
||||
|
||||
testfile = targetDir + "/sandbox/borek.cs"
|
||||
testfile = targetDir + "/sandbox/loremipsum.txt"
|
||||
assert pathexists(testfile)
|
||||
|
||||
# check file integrity
|
||||
self.assertEqual(util.sha1_file(testfile),
|
||||
"06d0ee5ba49eccae6bc20552d55b3ba5ad52995e")
|
||||
"80abb91ee44eb6eb69defa1e0760e58451351b94")
|
||||
|
||||
# check for symbolic links
|
||||
testfile = targetDir + "/sandbox/deneme/hed"
|
||||
testfile = targetDir + "/sandbox/testdir/link1"
|
||||
assert islink(testfile)
|
||||
|
||||
def testMakeZip(self):
|
||||
@@ -103,9 +103,9 @@ class ArchiveFileTestCase(unittest.TestCase):
|
||||
assert ctx.spec.source.archiveType == "zip"
|
||||
|
||||
achv = archive.Archive(filePath, ctx.spec.source.archiveType)
|
||||
achv.unpack_files(["sandbox/borek.cs"], targetDir)
|
||||
achv.unpack_files(["sandbox/loremipsum.txt"], targetDir)
|
||||
assert pathexists(targetDir + "/sandbox")
|
||||
testfile = targetDir + "/sandbox/borek.cs"
|
||||
testfile = targetDir + "/sandbox/loremipsum.txt"
|
||||
assert pathexists(testfile)
|
||||
|
||||
suite = unittest.makeSuite(ArchiveFileTestCase)
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
<Source>
|
||||
<Name>sandbox</Name>
|
||||
<Homepage>http://cekirdek.uludag.org.tr/~meren/</Homepage>
|
||||
<Homepage>http://cekirdek.uludag.org.tr/</Homepage>
|
||||
<Packager>
|
||||
<Name>Meral</Name>
|
||||
<Name>A. Murat Eren</Name>
|
||||
<Email>meren@uludag.org.tr</Email>
|
||||
</Packager>
|
||||
<License>As-Is</License>
|
||||
<Archive type="zip" sha1sum="b1e61fe4a840fbe624a01136e33343cdd1b0bf06">
|
||||
http://cekirdek.uludag.org.tr/~meren/sandbox.zip
|
||||
<Archive type="zip" sha1sum="5f793136fca29dc8b8b19d75eb1c76241ca90755">
|
||||
http://cekirdek.uludag.org.tr/sandbox.zip
|
||||
</Archive>
|
||||
<History>
|
||||
<Update>
|
||||
|
||||
Reference in New Issue
Block a user