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

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

Issue 1604203002: Add a library suitable for libfuzzer with a small unit test runner shell (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 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 | « tools/run-tests.py ('k') | tools/testrunner/objects/testcase.py » ('j') | 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 # different processes. 75 # different processes.
76 suite = testsuite.TestSuite.LoadTestSuite( 76 suite = testsuite.TestSuite.LoadTestSuite(
77 os.path.join(TEST_DIR, root), global_init=False) 77 os.path.join(TEST_DIR, root), global_init=False)
78 if suite: 78 if suite:
79 suites[suite.name] = suite 79 suites[suite.name] = suite
80 return ProcessContext(suites, context) 80 return ProcessContext(suites, context)
81 81
82 82
83 def GetCommand(test, context): 83 def GetCommand(test, context):
84 d8testflag = [] 84 d8testflag = []
85 shell = test.suite.shell() 85 shell = test.shell()
86 if shell == "d8": 86 if shell == "d8":
87 d8testflag = ["--test"] 87 d8testflag = ["--test"]
88 if utils.IsWindows(): 88 if utils.IsWindows():
89 shell += ".exe" 89 shell += ".exe"
90 if context.random_seed: 90 if context.random_seed:
91 d8testflag += ["--random-seed=%s" % context.random_seed] 91 d8testflag += ["--random-seed=%s" % context.random_seed]
92 cmd = (context.command_prefix + 92 cmd = (context.command_prefix +
93 [os.path.abspath(os.path.join(context.shell_dir, shell))] + 93 [os.path.abspath(os.path.join(context.shell_dir, shell))] +
94 d8testflag + 94 d8testflag +
95 test.suite.GetFlagsForTestCase(test, context) + 95 test.suite.GetFlagsForTestCase(test, context) +
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 if self.context.verbose: 364 if self.context.verbose:
365 print text 365 print text
366 sys.stdout.flush() 366 sys.stdout.flush()
367 367
368 368
369 class BreakNowException(Exception): 369 class BreakNowException(Exception):
370 def __init__(self, value): 370 def __init__(self, value):
371 self.value = value 371 self.value = value
372 def __str__(self): 372 def __str__(self):
373 return repr(self.value) 373 return repr(self.value)
OLDNEW
« no previous file with comments | « tools/run-tests.py ('k') | tools/testrunner/objects/testcase.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698