Revision: 19606
Author: [email protected]
Date: Fri Feb 28 12:34:12 2014 UTC
Log: Update test262 to get test data from github
BUG=none
[email protected]
LOG=n
Review URL: https://codereview.chromium.org/184223002
http://code.google.com/p/v8/source/detail?r=19606
Modified:
/branches/bleeding_edge/test/test262/testcfg.py
=======================================
--- /branches/bleeding_edge/test/test262/testcfg.py Fri Feb 28 12:32:54
2014 UTC
+++ /branches/bleeding_edge/test/test262/testcfg.py Fri Feb 28 12:34:12
2014 UTC
@@ -37,9 +37,9 @@
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 @@
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 @@
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 @@
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)
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.