OLD | NEW |
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 21 matching lines...) Expand all Loading... |
32 import sys | 32 import sys |
33 import tarfile | 33 import tarfile |
34 import imp | 34 import imp |
35 | 35 |
36 from testrunner.local import statusfile | 36 from testrunner.local import statusfile |
37 from testrunner.local import testsuite | 37 from testrunner.local import testsuite |
38 from testrunner.local import utils | 38 from testrunner.local import utils |
39 from testrunner.objects import testcase | 39 from testrunner.objects import testcase |
40 | 40 |
41 # The revision hash needs to be 7 characters? | 41 # The revision hash needs to be 7 characters? |
42 TEST_262_ARCHIVE_REVISION = "488c0a7" # This is the 2015-06-11 revision. | 42 TEST_262_ARCHIVE_REVISION = "c6ac390" # This is the 2015-07-06 revision. |
43 TEST_262_ARCHIVE_MD5 = "f7d4ec9be81f1e1f10fd8a61c71baead" | 43 TEST_262_ARCHIVE_MD5 = "e1393ef330f38e9cb1bfa4e3eada5ba8" |
44 TEST_262_URL = "https://github.com/tc39/test262/tarball/%s" | 44 TEST_262_URL = "https://github.com/tc39/test262/tarball/%s" |
45 TEST_262_HARNESS_FILES = ["sta.js", "assert.js"] | 45 TEST_262_HARNESS_FILES = ["sta.js", "assert.js"] |
46 | 46 |
47 TEST_262_SUITE_PATH = ["data", "test"] | 47 TEST_262_SUITE_PATH = ["data", "test"] |
48 TEST_262_HARNESS_PATH = ["data", "harness"] | 48 TEST_262_HARNESS_PATH = ["data", "harness"] |
49 TEST_262_TOOLS_PATH = ["data", "tools", "packaging"] | 49 TEST_262_TOOLS_PATH = ["data", "tools", "packaging"] |
50 | 50 |
51 class Test262TestSuite(testsuite.TestSuite): | 51 class Test262TestSuite(testsuite.TestSuite): |
52 | 52 |
53 def __init__(self, name, root): | 53 def __init__(self, name, root): |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 # Magic incantation to allow longer path names on Windows. | 184 # Magic incantation to allow longer path names on Windows. |
185 archive.extractall(u"\\\\?\\%s" % self.root) | 185 archive.extractall(u"\\\\?\\%s" % self.root) |
186 else: | 186 else: |
187 archive.extractall(self.root) | 187 archive.extractall(self.root) |
188 os.rename(os.path.join(self.root, "tc39-test262-%s" % revision), | 188 os.rename(os.path.join(self.root, "tc39-test262-%s" % revision), |
189 directory_name) | 189 directory_name) |
190 | 190 |
191 | 191 |
192 def GetSuite(name, root): | 192 def GetSuite(name, root): |
193 return Test262TestSuite(name, root) | 193 return Test262TestSuite(name, root) |
OLD | NEW |