Lines Matching refs:options

142 def Distribution(options):  argument
143 if options.distribution_mode == "random":
144 return RandomDistribution(options.seed)
145 if options.distribution_mode == "smooth":
146 return SmoothDistribution(options.distribution_factor1,
147 options.distribution_factor2)
226 def ProcessOptions(options): argument
230 if options.arch_and_mode:
231 tokens = options.arch_and_mode.split(".")
232 options.arch = tokens[0]
233 options.mode = tokens[1]
234 options.mode = options.mode.split(",")
235 for mode in options.mode:
239 if options.arch in ["auto", "native"]:
240 options.arch = ARCH_GUESS
241 options.arch = options.arch.split(",")
242 for arch in options.arch:
248 options.command_prefix = shlex.split(options.command_prefix)
249 options.extra_flags = shlex.split(options.extra_flags)
250 if options.j == 0:
251 options.j = multiprocessing.cpu_count()
252 while options.random_seed == 0:
253 options.random_seed = random.SystemRandom().randint(-2147483648, 2147483647)
254 if not options.distribution_mode in DISTRIBUTION_MODES:
255 print "Unknown distribution mode %s" % options.distribution_mode
257 if options.distribution_factor1 < 0.0:
259 % options.distribution_factor1)
260 options.distribution_factor1 = 0.0
261 if options.distribution_factor2 < 0.0:
263 % options.distribution_factor2)
264 options.distribution_factor2 = 0.0
265 if options.coverage < 0.0 or options.coverage > 1.0:
267 % options.coverage)
268 options.coverage = 0.4
269 if options.coverage_lift < 0:
271 % options.coverage_lift)
272 options.coverage_lift = 0
294 (options, args) = parser.parse_args()
295 if not ProcessOptions(options):
322 if options.download_data:
326 for mode in options.mode:
327 for arch in options.arch:
329 code = Execute(arch, mode, args, options, suites, workspace)
336 def CalculateNTests(m, options): argument
342 c = float(options.coverage)
343 l = float(options.coverage_lift)
347 def Execute(arch, mode, args, options, suites, workspace): argument
350 dist = Distribution(options)
352 shell_dir = options.shell_dir
354 if options.buildbot:
355 shell_dir = os.path.join(workspace, options.outdir, mode)
358 shell_dir = os.path.join(workspace, options.outdir,
364 timeout = options.timeout
374 mode_flags, options.verbose,
375 timeout, options.isolates,
376 options.command_prefix,
377 options.extra_flags,
379 options.random_seed,
390 "asan": options.asan,
395 "isolates": options.isolates,
403 "dcheck_always_on": options.dcheck_always_on,
436 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]()
439 exit_code = runner.Run(options.j)
453 if options.dump_results_file:
460 if options.verbose:
466 n_deopt = CalculateNTests(max_deopt, options)
468 if options.verbose:
483 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]()
486 code = runner.Run(options.j)