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

Side by Side Diff: tools/run-deopt-fuzzer.py

Issue 1469833002: [test-runner] Move test case processing beyond the multi-process boundary. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review Created 5 years 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/cctest/testcfg.py ('k') | tools/run-tests.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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2012 the V8 project authors. All rights reserved. 3 # Copyright 2012 the V8 project authors. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 suite = arg.split(os.path.sep)[0] 309 suite = arg.split(os.path.sep)[0]
310 if not suite in args_suites: 310 if not suite in args_suites:
311 args_suites.add(suite) 311 args_suites.add(suite)
312 suite_paths = [ s for s in suite_paths if s in args_suites ] 312 suite_paths = [ s for s in suite_paths if s in args_suites ]
313 313
314 suites = [] 314 suites = []
315 for root in suite_paths: 315 for root in suite_paths:
316 suite = testsuite.TestSuite.LoadTestSuite( 316 suite = testsuite.TestSuite.LoadTestSuite(
317 os.path.join(workspace, "test", root)) 317 os.path.join(workspace, "test", root))
318 if suite: 318 if suite:
319 suite.SetupWorkingDirectory()
319 suites.append(suite) 320 suites.append(suite)
320 321
321 if options.download_data: 322 if options.download_data:
322 for s in suites: 323 for s in suites:
323 s.DownloadData() 324 s.DownloadData()
324 325
325 for mode in options.mode: 326 for mode in options.mode:
326 for arch in options.arch: 327 for arch in options.arch:
327 try: 328 try:
328 code = Execute(arch, mode, args, options, suites, workspace) 329 code = Execute(arch, mode, args, options, suites, workspace)
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 print(">>> Deopt fuzzing phase (%d test cases)" % num_tests) 481 print(">>> Deopt fuzzing phase (%d test cases)" % num_tests)
481 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]() 482 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]()
482 runner = execution.Runner(suites, progress_indicator, ctx) 483 runner = execution.Runner(suites, progress_indicator, ctx)
483 484
484 code = runner.Run(options.j) 485 code = runner.Run(options.j)
485 return exit_code or code 486 return exit_code or code
486 487
487 488
488 if __name__ == "__main__": 489 if __name__ == "__main__":
489 sys.exit(Main()) 490 sys.exit(Main())
OLDNEW
« no previous file with comments | « test/cctest/testcfg.py ('k') | tools/run-tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698