| 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 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 filename in ['run.js', 'run_browser.js', 'base.js']): | 37 filename in ['run.js', 'run_browser.js', 'base.js']): |
| 38 continue | 38 continue |
| 39 name = filename.rsplit('.')[0] | 39 name = filename.rsplit('.')[0] |
| 40 tests.append( | 40 tests.append( |
| 41 testcase.TestCase(self, 'benchmarks/' + name)) | 41 testcase.TestCase(self, 'benchmarks/' + name)) |
| 42 return tests | 42 return tests |
| 43 | 43 |
| 44 def GetFlagsForTestCase(self, testcase, context): | 44 def GetFlagsForTestCase(self, testcase, context): |
| 45 return (testcase.flags + context.mode_flags + | 45 return (testcase.flags + context.mode_flags + |
| 46 [os.path.join(self.root, "harness-adapt.js"), | 46 [os.path.join(self.root, "harness-adapt.js"), |
| 47 "--harmony", | 47 "--harmony", "--harmony-simd", |
| 48 os.path.join(self.testroot, testcase.path + ".js"), | 48 os.path.join(self.testroot, testcase.path + ".js"), |
| 49 os.path.join(self.root, "harness-finish.js")]) | 49 os.path.join(self.root, "harness-finish.js")]) |
| 50 | 50 |
| 51 def GetSourceForTest(self, testcase): | 51 def GetSourceForTest(self, testcase): |
| 52 filename = os.path.join(self.testroot, testcase.path + ".js") | 52 filename = os.path.join(self.testroot, testcase.path + ".js") |
| 53 with open(filename) as f: | 53 with open(filename) as f: |
| 54 return f.read() | 54 return f.read() |
| 55 | 55 |
| 56 def IsNegativeTest(self, testcase): | 56 def IsNegativeTest(self, testcase): |
| 57 return False | 57 return False |
| (...skipping 72 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 |