Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Side by Side Diff: test/simdjs/testcfg.py

Issue 1312703003: [simd.js] Set --harmony-simd flag in test config. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/runtime/runtime-simd.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « src/runtime/runtime-simd.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698