Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: tools/run-tests.py

Issue 1828433002: wasm: hook module dump to run-tests.py (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/run-deopt-fuzzer.py ('k') | tools/testrunner/local/execution.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2012 the V8 project authors. All rights reserved. 3 # Copyright 2012 the V8 project authors. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 help="The testsuite name in the JUnit output file", 350 help="The testsuite name in the JUnit output file",
351 default="v8tests") 351 default="v8tests")
352 result.add_option("--random-seed", default=0, dest="random_seed", type="int", 352 result.add_option("--random-seed", default=0, dest="random_seed", type="int",
353 help="Default seed for initializing random generator") 353 help="Default seed for initializing random generator")
354 result.add_option("--random-seed-stress-count", default=1, type="int", 354 result.add_option("--random-seed-stress-count", default=1, type="int",
355 dest="random_seed_stress_count", 355 dest="random_seed_stress_count",
356 help="Number of runs with different random seeds") 356 help="Number of runs with different random seeds")
357 result.add_option("--msan", 357 result.add_option("--msan",
358 help="Regard test expectations for MSAN", 358 help="Regard test expectations for MSAN",
359 default=False, action="store_true") 359 default=False, action="store_true")
360 result.add_option("--dump-wasm-module", dest="dump_wasm_module",
361 help="dump WASM module bytes",
362 default=False, action="store_true")
363 result.add_option("--dump-wasm-module-path", dest="dump_wasm_module_path",
364 help="directory to dump wasm modules to",
365 default="")
360 return result 366 return result
361 367
362 368
363 def RandomSeed(): 369 def RandomSeed():
364 seed = 0 370 seed = 0
365 while not seed: 371 while not seed:
366 seed = random.SystemRandom().randint(-2147483648, 2147483647) 372 seed = random.SystemRandom().randint(-2147483648, 2147483647)
367 return seed 373 return seed
368 374
369 375
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 timeout, options.isolates, 694 timeout, options.isolates,
689 options.command_prefix, 695 options.command_prefix,
690 options.extra_flags, 696 options.extra_flags,
691 options.no_i18n, 697 options.no_i18n,
692 options.random_seed, 698 options.random_seed,
693 options.no_sorting, 699 options.no_sorting,
694 options.rerun_failures_count, 700 options.rerun_failures_count,
695 options.rerun_failures_max, 701 options.rerun_failures_max,
696 options.predictable, 702 options.predictable,
697 options.no_harness, 703 options.no_harness,
704 options.dump_wasm_module,
705 options.dump_wasm_module_path,
698 use_perf_data=not options.swarming, 706 use_perf_data=not options.swarming,
699 sancov_dir=options.sancov_dir) 707 sancov_dir=options.sancov_dir)
700 708
701 # TODO(all): Combine "simulator" and "simulator_run". 709 # TODO(all): Combine "simulator" and "simulator_run".
702 simulator_run = not options.dont_skip_simulator_slow_tests and \ 710 simulator_run = not options.dont_skip_simulator_slow_tests and \
703 arch in ['arm64', 'arm', 'mipsel', 'mips', 'mips64', 'mips64el', \ 711 arch in ['arm64', 'arm', 'mipsel', 'mips', 'mips64', 'mips64el', \
704 'ppc', 'ppc64'] and \ 712 'ppc', 'ppc64'] and \
705 ARCH_GUESS and arch != ARCH_GUESS 713 ARCH_GUESS and arch != ARCH_GUESS
706 # Find available test suites and read test cases from them. 714 # Find available test suites and read test cases from them.
707 variables = { 715 variables = {
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 "--coverage-dir=%s" % options.sancov_dir]) 841 "--coverage-dir=%s" % options.sancov_dir])
834 except: 842 except:
835 print >> sys.stderr, "Error: Merging sancov files failed." 843 print >> sys.stderr, "Error: Merging sancov files failed."
836 exit_code = 1 844 exit_code = 1
837 845
838 return exit_code 846 return exit_code
839 847
840 848
841 if __name__ == "__main__": 849 if __name__ == "__main__":
842 sys.exit(Main()) 850 sys.exit(Main())
OLDNEW
« no previous file with comments | « tools/run-deopt-fuzzer.py ('k') | tools/testrunner/local/execution.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698