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

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

Issue 1309513005: Revert of [simd.js] Update to spec version 0.8.2. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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 | « test/mjsunit/harmony/simd.js ('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
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 = "99ef44bd4f22acd203c01e524131bc7f2a7eab68"
18 SIMDJS_ARCHIVE_MD5 = "ce25acf841b76624607b39252122bb0e" 18 SIMDJS_ARCHIVE_MD5 = "1428773887924fa5a784bf0843615740"
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)
29 self.ParseTestRecord = None 29 self.ParseTestRecord = None
30 30
31 def ListTests(self, context): 31 def ListTests(self, context):
32 tests = [ 32 tests = [
33 testcase.TestCase(self, 'shell_test_runner'), 33 testcase.TestCase(self, 'shell_test_runner'),
34 ] 34 ]
35 for filename in os.listdir(os.path.join(self.testroot, 'benchmarks')): 35 for filename in os.listdir(os.path.join(self.testroot, 'benchmarks')):
36 if (not filename.endswith('.js') or 36 if (not filename.endswith('.js') or
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 --harmony-simd", 47 "--harmony",
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 | « test/mjsunit/harmony/simd.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698