OLD | NEW |
1 # Copyright 2014 the V8 project authors. All rights reserved. | 1 # Copyright 2014 the V8 project authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 import hashlib | 6 import hashlib |
7 import os | 7 import os |
8 import shutil | 8 import shutil |
9 import sys | 9 import sys |
10 import tarfile | 10 import tarfile |
11 import imp | 11 import imp |
12 | 12 |
13 from testrunner.local import testsuite | 13 from testrunner.local import testsuite |
14 from testrunner.local import utils | 14 from testrunner.local import utils |
15 from testrunner.objects import testcase | 15 from testrunner.objects import testcase |
16 | 16 |
17 SIMDJS_ARCHIVE_REVISION = "0fecaab13e57e9be50d87e3fa49b2729838bb75c" | 17 SIMDJS_ARCHIVE_REVISION = "a0cc399c46c160748eae77c3c656b5fa3c8f36cb" |
18 SIMDJS_ARCHIVE_MD5 = "ce25acf841b76624607b39252122bb0e" | 18 SIMDJS_ARCHIVE_MD5 = "574b9be4456c55183710f25165b99f81" |
19 SIMDJS_URL = ("https://github.com/tc39/ecmascript_simd/archive/%s.tar.gz") | 19 SIMDJS_URL = ("https://github.com/tc39/ecmascript_simd/archive/%s.tar.gz") |
20 | 20 |
21 SIMDJS_SUITE_PATH = ["data", "src"] | 21 SIMDJS_SUITE_PATH = ["data", "src"] |
22 | 22 |
23 | 23 |
24 class SimdJsTestSuite(testsuite.TestSuite): | 24 class SimdJsTestSuite(testsuite.TestSuite): |
25 | 25 |
26 def __init__(self, name, root): | 26 def __init__(self, name, root): |
27 super(SimdJsTestSuite, self).__init__(name, root) | 27 super(SimdJsTestSuite, self).__init__(name, root) |
28 self.testroot = os.path.join(self.root, *SIMDJS_SUITE_PATH) | 28 self.testroot = os.path.join(self.root, *SIMDJS_SUITE_PATH) |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 directory_name) | 130 directory_name) |
131 | 131 |
132 with open(versionfile, "w") as f: | 132 with open(versionfile, "w") as f: |
133 f.write(SIMDJS_ARCHIVE_MD5 + '\n') | 133 f.write(SIMDJS_ARCHIVE_MD5 + '\n') |
134 f.write(archive_url + '\n') | 134 f.write(archive_url + '\n') |
135 f.write(revision + '\n') | 135 f.write(revision + '\n') |
136 | 136 |
137 | 137 |
138 def GetSuite(name, root): | 138 def GetSuite(name, root): |
139 return SimdJsTestSuite(name, root) | 139 return SimdJsTestSuite(name, root) |
OLD | NEW |