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

Side by Side Diff: tools/testrunner/local/testsuite.py

Issue 1766503002: Make test262 test runner check for which exception is thrown (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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
« test/webkit/testcfg.py ('K') | « test/webkit/testcfg.py ('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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 filtered.append(t) 255 filtered.append(t)
256 break 256 break
257 self.tests = filtered 257 self.tests = filtered
258 258
259 def GetFlagsForTestCase(self, testcase, context): 259 def GetFlagsForTestCase(self, testcase, context):
260 raise NotImplementedError 260 raise NotImplementedError
261 261
262 def GetSourceForTest(self, testcase): 262 def GetSourceForTest(self, testcase):
263 return "(no source available)" 263 return "(no source available)"
264 264
265 def IsFailureOutput(self, output, testpath): 265 def IsFailureOutput(self, testcase):
266 return output.exit_code != 0 266 return testcase.output.exit_code != 0
267 267
268 def IsNegativeTest(self, testcase): 268 def IsNegativeTest(self, testcase):
269 return False 269 return False
270 270
271 def HasFailed(self, testcase): 271 def HasFailed(self, testcase):
272 execution_failed = self.IsFailureOutput(testcase.output, testcase.path) 272 execution_failed = self.IsFailureOutput(testcase)
273 if self.IsNegativeTest(testcase): 273 if self.IsNegativeTest(testcase):
274 return not execution_failed 274 return not execution_failed
275 else: 275 else:
276 return execution_failed 276 return execution_failed
277 277
278 def GetOutcome(self, testcase): 278 def GetOutcome(self, testcase):
279 if testcase.output.HasCrashed(): 279 if testcase.output.HasCrashed():
280 return statusfile.CRASH 280 return statusfile.CRASH
281 elif testcase.output.HasTimedOut(): 281 elif testcase.output.HasTimedOut():
282 return statusfile.TIMEOUT 282 return statusfile.TIMEOUT
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 return (testcase.flags + ["--gtest_filter=" + testcase.path] + 337 return (testcase.flags + ["--gtest_filter=" + testcase.path] +
338 ["--gtest_random_seed=%s" % context.random_seed] + 338 ["--gtest_random_seed=%s" % context.random_seed] +
339 ["--gtest_print_time=0"] + 339 ["--gtest_print_time=0"] +
340 context.mode_flags) 340 context.mode_flags)
341 341
342 def _VariantGeneratorFactory(self): 342 def _VariantGeneratorFactory(self):
343 return StandardVariantGenerator 343 return StandardVariantGenerator
344 344
345 def shell(self): 345 def shell(self):
346 return self.name 346 return self.name
OLDNEW
« test/webkit/testcfg.py ('K') | « test/webkit/testcfg.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698