From: jochen@chromium.org Date: Fri, 28 Feb 2014 12:34:12 +0000 (+0000) Subject: Update test262 to get test data from github X-Git-Tag: upstream/4.7.83~10531 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b23cd07a5a9b1cd12573d8c6ac293a8db60c2a4;p=platform%2Fupstream%2Fv8.git Update test262 to get test data from github BUG=none R=jkummerow@chromium.org LOG=n Review URL: https://codereview.chromium.org/184223002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19606 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/test/test262/testcfg.py b/test/test262/testcfg.py index d4a7f56..8e129d3 100644 --- a/test/test262/testcfg.py +++ b/test/test262/testcfg.py @@ -37,9 +37,9 @@ from testrunner.local import testsuite from testrunner.objects import testcase -TEST_262_ARCHIVE_REVISION = "99aac3bc1cad" # This is the r365 revision. -TEST_262_ARCHIVE_MD5 = "aadbd720ce9bdb4f8f3de066f4d7eea1" -TEST_262_URL = "http://hg.ecmascript.org/tests/test262/archive/%s.tar.bz2" +TEST_262_ARCHIVE_REVISION = "fbba29f" # This is the r365 revision. +TEST_262_ARCHIVE_MD5 = "e1ff0db438cc12de8fb6da80621b4ef6" +TEST_262_URL = "https://github.com/tc39/test262/tarball/%s" TEST_262_HARNESS = ["sta.js", "testBuiltInObject.js", "testIntl.js"] @@ -92,7 +92,7 @@ class Test262TestSuite(testsuite.TestSuite): def DownloadData(self): revision = TEST_262_ARCHIVE_REVISION archive_url = TEST_262_URL % revision - archive_name = os.path.join(self.root, "test262-%s.tar.bz2" % revision) + archive_name = os.path.join(self.root, "tc39-test262-%s.tar.gz" % revision) directory_name = os.path.join(self.root, "data") directory_old_name = os.path.join(self.root, "data.old") if not os.path.exists(archive_name): @@ -103,7 +103,7 @@ class Test262TestSuite(testsuite.TestSuite): shutil.rmtree(directory_old_name) os.rename(directory_name, directory_old_name) if not os.path.exists(directory_name): - print "Extracting test262-%s.tar.bz2 ..." % revision + print "Extracting test262-%s.tar.gz ..." % revision md5 = hashlib.md5() with open(archive_name, "rb") as f: for chunk in iter(lambda: f.read(8192), ""): @@ -111,13 +111,13 @@ class Test262TestSuite(testsuite.TestSuite): if md5.hexdigest() != TEST_262_ARCHIVE_MD5: os.remove(archive_name) raise Exception("Hash mismatch of test data file") - archive = tarfile.open(archive_name, "r:bz2") + archive = tarfile.open(archive_name, "r:gz") if sys.platform in ("win32", "cygwin"): # Magic incantation to allow longer path names on Windows. archive.extractall(u"\\\\?\\%s" % self.root) else: archive.extractall(self.root) - os.rename(os.path.join(self.root, "test262-%s" % revision), + os.rename(os.path.join(self.root, "tc39-test262-%s" % revision), directory_name)