Lines Matching +full:- +full:- +full:gcov +full:- +full:options

104 DEBUG_FLAGS = ["--nohard-abort", "--nodead-code-elimination",
105 "--nofold-constants", "--enable-slow-asserts",
106 "--debug-code", "--verify-heap"]
107 RELEASE_FLAGS = ["--nohard-abort", "--nodead-code-elimination",
108 "--nofold-constants"]
133 # implies debug is set. Hence, the status file needs to assume debug-like
144 "flags": RELEASE_FLAGS + ["--enable-slow-asserts"],
152 GC_STRESS_FLAGS = ["--gc-interval=500", "--stress-compaction",
153 "--concurrent-recompilation-queue-length=64",
154 "--concurrent-recompilation-delay=500",
155 "--concurrent-recompilation"]
193 result.usage = '%prog [options] [tests]'
195 result.add_option("--arch",
197 "'auto' or 'native' for auto-detect: %s" % SUPPORTED_ARCHS),
199 result.add_option("--arch-and-mode",
202 result.add_option("--asan",
205 result.add_option("--cfi-vptr",
208 result.add_option("--buildbot",
211 result.add_option("--dcheck-always-on",
214 result.add_option("--novfp3",
217 result.add_option("--cat", help="Print the source of the tests",
219 result.add_option("--flaky-tests",
222 result.add_option("--slow-tests",
225 result.add_option("--pass-fail-tests",
228 result.add_option("--gc-stress",
231 result.add_option("--gcov-coverage",
232 help="Uses executables instrumented for gcov coverage",
234 result.add_option("--command-prefix",
237 result.add_option("--download-data", help="Download missing test suite data",
239 result.add_option("--download-data-only",
242 result.add_option("--extra-flags",
245 result.add_option("--ignition", help="Skip tests which don't run in ignition",
247 result.add_option("--isolates", help="Whether to test isolates",
249 result.add_option("-j", help="The number of parallel tasks to run",
251 result.add_option("-m", "--mode",
252 help="The test modes in which to run (comma-separated,"
255 result.add_option("--no-harness", "--noharness",
258 result.add_option("--no-i18n", "--noi18n",
261 result.add_option("--no-network", "--nonetwork",
265 result.add_option("--no-presubmit", "--nopresubmit",
268 result.add_option("--no-snap", "--nosnap",
271 result.add_option("--no-sorting", "--nosorting",
274 result.add_option("--no-stress", "--nostress",
275 help="Don't run crankshaft --always-opt --stress-op test",
277 result.add_option("--no-variants", "--novariants",
280 result.add_option("--variants",
281 help="Comma-separated list of testing variants: %s" % VARIANTS)
282 result.add_option("--exhaustive-variants",
285 result.add_option("--outdir", help="Base directory with compile output",
287 result.add_option("--predictable",
290 result.add_option("-p", "--progress",
294 result.add_option("--quickcheck", default=False, action="store_true",
296 result.add_option("--report", help="Print a summary of the tests to be run",
298 result.add_option("--json-test-results",
300 result.add_option("--rerun-failures-count",
304 result.add_option("--rerun-failures-max",
307 result.add_option("--shard-count",
310 result.add_option("--shard-run",
313 result.add_option("--shell", help="DEPRECATED! use --shell-dir", default="")
314 result.add_option("--shell-dir", help="Directory containing executables",
316 result.add_option("--dont-skip-slow-simulator-tests",
320 result.add_option("--stress-only",
321 help="Only run tests with --always-opt --stress-opt",
323 result.add_option("--swarming",
326 result.add_option("--time", help="Print timing information after running",
328 result.add_option("-t", "--timeout", help="Timeout in seconds",
329 default= -1, type="int")
330 result.add_option("--tsan",
333 result.add_option("-v", "--verbose", help="Verbose output",
335 result.add_option("--valgrind", help="Run tests through valgrind",
337 result.add_option("--warn-unused", help="Report unused rules",
339 result.add_option("--junitout", help="File name of the JUnit output")
340 result.add_option("--junittestsuite",
343 result.add_option("--random-seed", default=0, dest="random_seed", type="int",
345 result.add_option("--random-seed-stress-count", default=1, type="int",
348 result.add_option("--msan",
357 seed = random.SystemRandom().randint(-2147483648, 2147483647)
367 mode = config[:-4] if config.endswith('_x64') else config
370 def SetupEnvironment(options): argument
374 BASE_DIR, 'third_party', 'llvm-build', 'Release+Asserts', 'bin',
375 'llvm-symbolizer',
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)
434 # Special processing of other options, sorted alphabetically.
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:
443 print("Specifying --command-prefix disables network distribution, "
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:
461 # Other options for manipulating variants still apply afterwards.
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)):
482 print("Use only one of --no-stress, --stress-only, --no-variants, "
483 "or --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:
509 print "Warning: --shell is deprecated, use --shell-dir instead."
510 options.shell_dir = os.path.dirname(options.shell)
511 if options.valgrind:
512 run_valgrind = os.path.join("tools", "run-valgrind.py")
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:
557 print "shard-run not a valid number, should be in [1:shard-count]"
563 if count % shard_count == shard_run - 1:
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
654 if timeout == -1:
663 if options.predictable:
668 # debugging driver-hung-up on XP.
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:
742 yield ["--random-seed=%d" % RandomSeed()]
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)
799 overall_duration = time.time() - start_time
801 if options.time:
807 if exit_code == 1 and options.json_test_results: