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

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

Issue 2658933004: [SAB] Test262 Agent harness (Closed)
Patch Set: skip allocation-limit and length-is-too-large-throws for SharedArrayBuffer too Created 3 years, 10 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/test262/test262.status ('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 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 continue 135 continue
136 if filename.endswith("_FIXTURE.js"): 136 if filename.endswith("_FIXTURE.js"):
137 continue 137 continue
138 fullpath = os.path.join(dirname, filename) 138 fullpath = os.path.join(dirname, filename)
139 relpath = re.match(TEST_262_RELPATH_REGEXP, fullpath).group(1) 139 relpath = re.match(TEST_262_RELPATH_REGEXP, fullpath).group(1)
140 testnames.add(relpath.replace(os.path.sep, "/")) 140 testnames.add(relpath.replace(os.path.sep, "/"))
141 return [testcase.TestCase(self, testname) for testname in testnames] 141 return [testcase.TestCase(self, testname) for testname in testnames]
142 142
143 def GetFlagsForTestCase(self, testcase, context): 143 def GetFlagsForTestCase(self, testcase, context):
144 return (testcase.flags + context.mode_flags + self.harness + 144 return (testcase.flags + context.mode_flags + self.harness +
145 ([os.path.join(self.root, "harness-agent.js")]
146 if testcase.path.startswith('built-ins/Atomics') else []) +
145 self.GetIncludesForTest(testcase) + 147 self.GetIncludesForTest(testcase) +
146 (["--module"] if "module" in self.GetTestRecord(testcase) else []) + 148 (["--module"] if "module" in self.GetTestRecord(testcase) else []) +
147 [self.GetPathForTest(testcase)] + 149 [self.GetPathForTest(testcase)] +
148 (["--throws"] if "negative" in self.GetTestRecord(testcase) 150 (["--throws"] if "negative" in self.GetTestRecord(testcase)
149 else []) + 151 else []) +
150 (["--allow-natives-syntax"] 152 (["--allow-natives-syntax"]
151 if "detachArrayBuffer.js" in 153 if "detachArrayBuffer.js" in
152 self.GetTestRecord(testcase).get("includes", []) 154 self.GetTestRecord(testcase).get("includes", [])
153 else []) + 155 else []) +
154 ([flag for flag in testcase.outcomes if flag.startswith("--")])) 156 ([flag for flag in testcase.outcomes if flag.startswith("--")]))
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 # data folder. 233 # data folder.
232 if os.path.exists(ARCHIVE) and not os.path.exists(DATA): 234 if os.path.exists(ARCHIVE) and not os.path.exists(DATA):
233 print "Extracting archive..." 235 print "Extracting archive..."
234 tar = tarfile.open(ARCHIVE) 236 tar = tarfile.open(ARCHIVE)
235 tar.extractall(path=os.path.dirname(ARCHIVE)) 237 tar.extractall(path=os.path.dirname(ARCHIVE))
236 tar.close() 238 tar.close()
237 239
238 240
239 def GetSuite(name, root): 241 def GetSuite(name, root):
240 return Test262TestSuite(name, root) 242 return Test262TestSuite(name, root)
OLDNEW
« no previous file with comments | « test/test262/test262.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698