Home | History | Annotate | Download | only in tools

Lines Matching refs:options

140 def Distribution(options):
141 if options.distribution_mode == "random":
142 return RandomDistribution(options.seed)
143 if options.distribution_mode == "smooth":
144 return SmoothDistribution(options.distribution_factor1,
145 options.distribution_factor2)
221 def ProcessOptions(options):
225 if options.arch_and_mode:
226 tokens = options.arch_and_mode.split(".")
227 options.arch = tokens[0]
228 options.mode = tokens[1]
229 options.mode = options.mode.split(",")
230 for mode in options.mode:
234 if options.arch in ["auto", "native"]:
235 options.arch = ARCH_GUESS
236 options.arch = options.arch.split(",")
237 for arch in options.arch:
242 # Special processing of other options, sorted alphabetically.
243 options.command_prefix = shlex.split(options.command_prefix)
244 options.extra_flags = shlex.split(options.extra_flags)
245 if options.j == 0:
246 options.j = multiprocessing.cpu_count()
247 while options.random_seed == 0:
248 options.random_seed = random.SystemRandom().randint(-2147483648, 2147483647)
249 if not options.distribution_mode in DISTRIBUTION_MODES:
250 print "Unknown distribution mode %s" % options.distribution_mode
252 if options.distribution_factor1 < 0.0:
254 % options.distribution_factor1)
255 options.distribution_factor1 = 0.0
256 if options.distribution_factor2 < 0.0:
258 % options.distribution_factor2)
259 options.distribution_factor2 = 0.0
260 if options.coverage < 0.0 or options.coverage > 1.0:
262 % options.coverage)
263 options.coverage = 0.4
264 if options.coverage_lift < 0:
266 % options.coverage_lift)
267 options.coverage_lift = 0
289 (options, args) = parser.parse_args()
290 if not ProcessOptions(options):
316 if options.download_data:
320 for mode in options.mode:
321 for arch in options.arch:
323 code = Execute(arch, mode, args, options, suites, workspace)
330 def CalculateNTests(m, options):
336 c = float(options.coverage)
337 l = float(options.coverage_lift)
341 def Execute(arch, mode, args, options, suites, workspace):
344 dist = Distribution(options)
346 shell_dir = options.shell_dir
348 if options.buildbot:
349 shell_dir = os.path.join(workspace, options.outdir, mode)
352 shell_dir = os.path.join(workspace, options.outdir,
358 timeout = options.timeout
368 mode_flags, options.verbose,
369 timeout, options.isolates,
370 options.command_prefix,
371 options.extra_flags,
373 options.random_seed,
382 "asan": options.asan,
385 "isolates": options.isolates,
421 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]()
424 exit_code = runner.Run(options.j)
438 if options.dump_results_file:
445 if options.verbose:
451 n_deopt = CalculateNTests(max_deopt, options)
453 if options.verbose:
468 progress_indicator = progress.PROGRESS_INDICATORS[options.progress]()
471 code = runner.Run(options.j)