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()
|
targetDir = ctx.pkg_work_dir()
|
||||||
assert pathexists(targetDir + "/sandbox")
|
assert pathexists(targetDir + "/sandbox")
|
||||||
|
|
||||||
testfile = targetDir + "/sandbox/borek.cs"
|
testfile = targetDir + "/sandbox/loremipsum.txt"
|
||||||
assert pathexists(testfile)
|
assert pathexists(testfile)
|
||||||
|
|
||||||
# check file integrity
|
# check file integrity
|
||||||
self.assertEqual(util.sha1_file(testfile),
|
self.assertEqual(util.sha1_file(testfile),
|
||||||
"06d0ee5ba49eccae6bc20552d55b3ba5ad52995e")
|
"80abb91ee44eb6eb69defa1e0760e58451351b94")
|
||||||
|
|
||||||
# check for symbolic links
|
# check for symbolic links
|
||||||
testfile = targetDir + "/sandbox/deneme/hed"
|
testfile = targetDir + "/sandbox/testdir/link1"
|
||||||
assert islink(testfile)
|
assert islink(testfile)
|
||||||
|
|
||||||
def testMakeZip(self):
|
def testMakeZip(self):
|
||||||
@@ -103,9 +103,9 @@ class ArchiveFileTestCase(unittest.TestCase):
|
|||||||
assert ctx.spec.source.archiveType == "zip"
|
assert ctx.spec.source.archiveType == "zip"
|
||||||
|
|
||||||
achv = archive.Archive(filePath, ctx.spec.source.archiveType)
|
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")
|
assert pathexists(targetDir + "/sandbox")
|
||||||
testfile = targetDir + "/sandbox/borek.cs"
|
testfile = targetDir + "/sandbox/loremipsum.txt"
|
||||||
assert pathexists(testfile)
|
assert pathexists(testfile)
|
||||||
|
|
||||||
suite = unittest.makeSuite(ArchiveFileTestCase)
|
suite = unittest.makeSuite(ArchiveFileTestCase)
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
|
|
||||||
<Source>
|
<Source>
|
||||||
<Name>sandbox</Name>
|
<Name>sandbox</Name>
|
||||||
<Homepage>http://cekirdek.uludag.org.tr/~meren/</Homepage>
|
<Homepage>http://cekirdek.uludag.org.tr/</Homepage>
|
||||||
<Packager>
|
<Packager>
|
||||||
<Name>Meral</Name>
|
<Name>A. Murat Eren</Name>
|
||||||
<Email>meren@uludag.org.tr</Email>
|
<Email>meren@uludag.org.tr</Email>
|
||||||
</Packager>
|
</Packager>
|
||||||
<License>As-Is</License>
|
<License>As-Is</License>
|
||||||
<Archive type="zip" sha1sum="b1e61fe4a840fbe624a01136e33343cdd1b0bf06">
|
<Archive type="zip" sha1sum="5f793136fca29dc8b8b19d75eb1c76241ca90755">
|
||||||
http://cekirdek.uludag.org.tr/~meren/sandbox.zip
|
http://cekirdek.uludag.org.tr/sandbox.zip
|
||||||
</Archive>
|
</Archive>
|
||||||
<History>
|
<History>
|
||||||
<Update>
|
<Update>
|
||||||
|
|||||||
Reference in New Issue
Block a user