Home | History | Annotate | Download | only in tools

Lines Matching refs:options

183 def ProcessOptions(options):
188 if options.arch_and_mode:
189 options.arch_and_mode = [arch_and_mode.split(".")
190 for arch_and_mode in options.arch_and_mode.split(",")]
191 options.arch = ",".join([tokens[0] for tokens in options.arch_and_mode])
192 options.mode = ",".join([tokens[1] for tokens in options.arch_and_mode])
193 options.mode = options.mode.split(",")
194 for mode in options.mode:
198 if options.arch in ["auto", "native"]:
199 options.arch = ARCH_GUESS
200 options.arch = options.arch.split(",")
201 for arch in options.arch:
208 if not options.arch_and_mode:
209 options.arch_and_mode = itertools.product(options.arch, options.mode)
211 # Special processing of other options, sorted alphabetically.
213 if options.buildbot:
215 options.no_presubmit = True
216 options.no_network = True
217 if options.command_prefix:
220 options.no_network = True
221 options.command_prefix = shlex.split(options.command_prefix)
222 options.extra_flags = shlex.split(options.extra_flags)
223 if options.j == 0:
224 options.j = multiprocessing.cpu_count()
230 if not excl(options.no_stress, options.stress_only, options.no_variants,
231 bool(options.variants), options.quickcheck):
235 if options.no_stress:
237 if options.no_variants:
239 if options.stress_only:
241 if options.variants:
242 VARIANTS = options.variants.split(",")
246 if options.quickcheck:
248 options.flaky_tests = "skip"
249 options.slow_tests = "skip"
250 options.pass_fail_tests = "skip"
252 if not options.shell_dir:
253 if options.shell:
255 options.shell_dir = os.path.dirname(options.shell)
256 if options.valgrind:
259 options.command_prefix = (["python", "-u", run_valgrind] +
260 options.command_prefix)
266 if not CheckTestMode("flaky test", options.flaky_tests):
268 if not CheckTestMode("slow test", options.slow_tests):
270 if not CheckTestMode("pass|fail test", options.pass_fail_tests):
272 if not options.no_i18n:
295 (options, args) = parser.parse_args()
296 if not ProcessOptions(options):
302 if not options.no_presubmit:
327 if options.download_data:
331 for (arch, mode) in options.arch_and_mode:
332 code = Execute(arch, mode, args, options, suites, workspace)
337 def Execute(arch, mode, args, options, suites, workspace):
340 shell_dir = options.shell_dir
342 if options.buildbot:
343 shell_dir = os.path.join(workspace, options.outdir, mode)
346 shell_dir = os.path.join(workspace, options.outdir,
355 timeout = options.timeout
365 mode_flags, options.verbose,
366 timeout, options.isolates,
367 options.command_prefix,
368 options.extra_flags,
369 options.no_i18n)
376 "isolates": options.isolates,
378 "no_i18n": options.no_i18n,
389 s.FilterTestCasesByStatus(options.warn_unused, options.flaky_tests,
390 options.slow_tests, options.pass_fail_tests)
391 if options.cat:
398 s.tests = ShardTests(s.tests, options.shard_count, options.shard_run)
404 if options.cat:
407 if options.report:
417 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]()
418 if options.junitout:
420 progress_indicator, options.junitout, options.junittestsuite)
422 run_networked = not options.no_network
447 exit_code = runner.Run(options.j)
454 if options.time: