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

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

Issue 781763002: Teach the test runner whether it's running on a trybot or not (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 6 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 | « no previous file | 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 default="ia32,x64,arm") 153 default="ia32,x64,arm")
154 result.add_option("--arch-and-mode", 154 result.add_option("--arch-and-mode",
155 help="Architecture and mode in the format 'arch.mode'", 155 help="Architecture and mode in the format 'arch.mode'",
156 default=None) 156 default=None)
157 result.add_option("--asan", 157 result.add_option("--asan",
158 help="Regard test expectations for ASAN", 158 help="Regard test expectations for ASAN",
159 default=False, action="store_true") 159 default=False, action="store_true")
160 result.add_option("--buildbot", 160 result.add_option("--buildbot",
161 help="Adapt to path structure used on buildbots", 161 help="Adapt to path structure used on buildbots",
162 default=False, action="store_true") 162 default=False, action="store_true")
163 result.add_option("--dcheck-always-on",
164 help="Indicates that V8 was compiled with DCHECKs enabled",
165 default=False, action="store_true")
163 result.add_option("--command-prefix", 166 result.add_option("--command-prefix",
164 help="Prepended to each shell command used to run a test", 167 help="Prepended to each shell command used to run a test",
165 default="") 168 default="")
166 result.add_option("--coverage", help=("Exponential test coverage " 169 result.add_option("--coverage", help=("Exponential test coverage "
167 "(range 0.0, 1.0) -- 0.0: one test, 1.0 all tests (slow)"), 170 "(range 0.0, 1.0) -- 0.0: one test, 1.0 all tests (slow)"),
168 default=0.4, type="float") 171 default=0.4, type="float")
169 result.add_option("--coverage-lift", help=("Lifts test coverage for tests " 172 result.add_option("--coverage-lift", help=("Lifts test coverage for tests "
170 "with a small number of deopt points (range 0, inf)"), 173 "with a small number of deopt points (range 0, inf)"),
171 default=20, type="int") 174 default=20, type="int")
172 result.add_option("--download-data", help="Download missing test suite data", 175 result.add_option("--download-data", help="Download missing test suite data",
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 "deopt_fuzzer": True, 386 "deopt_fuzzer": True,
384 "gc_stress": False, 387 "gc_stress": False,
385 "isolates": options.isolates, 388 "isolates": options.isolates,
386 "mode": mode, 389 "mode": mode,
387 "no_i18n": False, 390 "no_i18n": False,
388 "no_snap": False, 391 "no_snap": False,
389 "simulator": utils.UseSimulator(arch), 392 "simulator": utils.UseSimulator(arch),
390 "system": utils.GuessOS(), 393 "system": utils.GuessOS(),
391 "tsan": False, 394 "tsan": False,
392 "msan": False, 395 "msan": False,
396 "dcheck_always_on": options.dcheck_always_on,
393 } 397 }
394 all_tests = [] 398 all_tests = []
395 num_tests = 0 399 num_tests = 0
396 test_id = 0 400 test_id = 0
397 401
398 # Remember test case prototypes for the fuzzing phase. 402 # Remember test case prototypes for the fuzzing phase.
399 test_backup = dict((s, []) for s in suites) 403 test_backup = dict((s, []) for s in suites)
400 404
401 for s in suites: 405 for s in suites:
402 s.ReadStatusFile(variables) 406 s.ReadStatusFile(variables)
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 print(">>> Deopt fuzzing phase (%d test cases)" % num_tests) 472 print(">>> Deopt fuzzing phase (%d test cases)" % num_tests)
469 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]() 473 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]()
470 runner = execution.Runner(suites, progress_indicator, ctx) 474 runner = execution.Runner(suites, progress_indicator, ctx)
471 475
472 code = runner.Run(options.j) 476 code = runner.Run(options.j)
473 return exit_code or code 477 return exit_code or code
474 478
475 479
476 if __name__ == "__main__": 480 if __name__ == "__main__":
477 sys.exit(Main()) 481 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | tools/run-tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698