Lines Matching refs:options
370 def SetupEnvironment(options): argument
379 if options.asan:
382 if options.cfi_vptr:
390 if options.msan:
393 if options.tsan:
405 def ProcessOptions(options): argument
411 if options.arch_and_mode:
412 options.arch_and_mode = [arch_and_mode.split(".")
413 for arch_and_mode in options.arch_and_mode.split(",")]
414 options.arch = ",".join([tokens[0] for tokens in options.arch_and_mode])
415 options.mode = ",".join([tokens[1] for tokens in options.arch_and_mode])
416 options.mode = options.mode.split(",")
417 for mode in options.mode:
421 if options.arch in ["auto", "native"]:
422 options.arch = ARCH_GUESS
423 options.arch = options.arch.split(",")
424 for arch in options.arch:
431 if not options.arch_and_mode:
432 options.arch_and_mode = itertools.product(options.arch, options.mode)
436 if options.buildbot:
438 options.no_presubmit = True
439 options.no_network = True
440 if options.download_data_only:
441 options.no_presubmit = True
442 if options.command_prefix:
445 options.no_network = True
446 options.command_prefix = shlex.split(options.command_prefix)
447 options.extra_flags = shlex.split(options.extra_flags)
449 if options.gc_stress:
450 options.extra_flags += GC_STRESS_FLAGS
452 if options.asan:
453 options.extra_flags.append("--invoke-weak-callbacks")
454 options.extra_flags.append("--omit-quit")
456 if options.novfp3:
457 options.extra_flags.append("--noenable-vfp3")
459 if options.exhaustive_variants:
464 if options.msan:
467 if options.tsan:
470 if options.j == 0:
471 options.j = multiprocessing.cpu_count()
473 if options.random_seed_stress_count <= 1 and options.random_seed == 0:
474 options.random_seed = RandomSeed()
480 if not excl(options.no_stress, options.stress_only, options.no_variants,
481 bool(options.variants)):
485 if options.quickcheck:
487 options.flaky_tests = "skip"
488 options.slow_tests = "skip"
489 options.pass_fail_tests = "skip"
490 if options.no_stress:
492 if options.no_variants:
494 if options.stress_only:
496 if options.variants:
497 VARIANTS = options.variants.split(",")
501 if options.predictable:
503 options.extra_flags.append("--predictable")
504 options.extra_flags.append("--verify_predictable")
505 options.extra_flags.append("--no-inline-new")
507 if not options.shell_dir:
508 if options.shell:
510 options.shell_dir = os.path.dirname(options.shell)
511 if options.valgrind:
514 options.command_prefix = (["python", "-u", run_valgrind] +
515 options.command_prefix)
521 if not CheckTestMode("flaky test", options.flaky_tests):
523 if not CheckTestMode("slow test", options.slow_tests):
525 if not CheckTestMode("pass|fail test", options.pass_fail_tests):
527 if options.no_i18n:
533 def ShardTests(tests, options): argument
536 shard_count = int(os.environ.get('GTEST_TOTAL_SHARDS', options.shard_count))
542 shard_run = options.shard_run
544 if options.shard_count > 1:
547 if options.shard_count != shard_count:
550 if options.shard_run > 1 and options.shard_run != shard_run:
574 (options, args) = parser.parse_args()
575 if not ProcessOptions(options):
578 SetupEnvironment(options)
581 if not options.no_presubmit:
616 if options.download_data or options.download_data_only:
620 if options.download_data_only:
623 for (arch, mode) in options.arch_and_mode:
625 code = Execute(arch, mode, args, options, suites)
632 def Execute(arch, mode, args, options, suites): argument
635 shell_dir = options.shell_dir
637 if options.buildbot:
640 shell_dir = os.path.join(BASE_DIR, options.outdir, mode)
645 options.outdir,
653 timeout = options.timeout
663 if options.predictable:
670 options.verbose or
671 utils.IsWindows() and options.progress == "verbose"
675 timeout, options.isolates,
676 options.command_prefix,
677 options.extra_flags,
678 options.no_i18n,
679 options.random_seed,
680 options.no_sorting,
681 options.rerun_failures_count,
682 options.rerun_failures_max,
683 options.predictable,
684 options.no_harness,
685 use_perf_data=not options.swarming)
688 simulator_run = not options.dont_skip_simulator_slow_tests and \
695 "asan": options.asan,
697 "gc_stress": options.gc_stress,
698 "gcov_coverage": options.gcov_coverage,
699 "ignition": options.ignition,
700 "isolates": options.isolates,
702 "no_i18n": options.no_i18n,
703 "no_snap": options.no_snap,
707 "tsan": options.tsan,
708 "msan": options.msan,
709 "dcheck_always_on": options.dcheck_always_on,
710 "novfp3": options.novfp3,
711 "predictable": options.predictable,
722 s.FilterTestCasesByStatus(options.warn_unused, options.flaky_tests,
723 options.slow_tests, options.pass_fail_tests)
724 if options.cat:
733 if options.random_seed_stress_count > 1:
736 for i in range(0, options.random_seed_stress_count):
739 if options.random_seed:
751 s.tests = ShardTests(s.tests, options)
754 if options.cat:
757 if options.report:
763 progress_indicator.Register(progress.PROGRESS_INDICATORS[options.progress]())
764 if options.junitout:
766 options.junitout, options.junittestsuite))
767 if options.json_test_results:
769 options.json_test_results, arch, MODES[mode]["execution_mode"],
772 run_networked = not options.no_network
798 exit_code = runner.Run(options.j)
801 if options.time:
807 if exit_code == 1 and options.json_test_results: