Lines Matching refs:options
143 def Distribution(options): argument
144 if options.distribution_mode == "random":
145 return RandomDistribution(options.seed)
146 if options.distribution_mode == "smooth":
147 return SmoothDistribution(options.distribution_factor1,
148 options.distribution_factor2)
227 def ProcessOptions(options): argument
231 if options.arch_and_mode:
232 tokens = options.arch_and_mode.split(".")
233 options.arch = tokens[0]
234 options.mode = tokens[1]
235 options.mode = options.mode.split(",")
236 for mode in options.mode:
240 if options.arch in ["auto", "native"]:
241 options.arch = ARCH_GUESS
242 options.arch = options.arch.split(",")
243 for arch in options.arch:
249 options.command_prefix = shlex.split(options.command_prefix)
250 options.extra_flags = shlex.split(options.extra_flags)
251 if options.j == 0:
252 options.j = multiprocessing.cpu_count()
253 while options.random_seed == 0:
254 options.random_seed = random.SystemRandom().randint(-2147483648, 2147483647)
255 if not options.distribution_mode in DISTRIBUTION_MODES:
256 print "Unknown distribution mode %s" % options.distribution_mode
258 if options.distribution_factor1 < 0.0:
260 % options.distribution_factor1)
261 options.distribution_factor1 = 0.0
262 if options.distribution_factor2 < 0.0:
264 % options.distribution_factor2)
265 options.distribution_factor2 = 0.0
266 if options.coverage < 0.0 or options.coverage > 1.0:
268 % options.coverage)
269 options.coverage = 0.4
270 if options.coverage_lift < 0:
272 % options.coverage_lift)
273 options.coverage_lift = 0
298 (options, args) = parser.parse_args()
299 if not ProcessOptions(options):
324 if options.download_data:
328 for mode in options.mode:
329 for arch in options.arch:
331 code = Execute(arch, mode, args, options, suites, BASE_DIR)
338 def CalculateNTests(m, options): argument
344 c = float(options.coverage)
345 l = float(options.coverage_lift)
349 def Execute(arch, mode, args, options, suites, workspace): argument
352 dist = Distribution(options)
354 shell_dir = options.shell_dir
356 if options.buildbot:
357 shell_dir = os.path.join(workspace, options.outdir, mode)
360 shell_dir = os.path.join(workspace, options.outdir,
366 timeout = options.timeout
376 mode_flags, options.verbose,
377 timeout, options.isolates,
378 options.command_prefix,
379 options.extra_flags,
381 options.random_seed,
393 "asan": options.asan,
397 "isolates": options.isolates,
405 "dcheck_always_on": options.dcheck_always_on,
438 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]()
441 exit_code = runner.Run(options.j)
455 if options.dump_results_file:
462 if options.verbose:
468 n_deopt = CalculateNTests(max_deopt, options)
470 if options.verbose:
485 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]()
488 code = runner.Run(options.j)