OLD | NEW |
---|---|
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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
228 help="Prepended to each shell command used to run a test", | 228 help="Prepended to each shell command used to run a test", |
229 default="") | 229 default="") |
230 result.add_option("--download-data", help="Download missing test suite data", | 230 result.add_option("--download-data", help="Download missing test suite data", |
231 default=False, action="store_true") | 231 default=False, action="store_true") |
232 result.add_option("--download-data-only", | 232 result.add_option("--download-data-only", |
233 help="Download missing test suite data and exit", | 233 help="Download missing test suite data and exit", |
234 default=False, action="store_true") | 234 default=False, action="store_true") |
235 result.add_option("--extra-flags", | 235 result.add_option("--extra-flags", |
236 help="Additional flags to pass to each test command", | 236 help="Additional flags to pass to each test command", |
237 default="") | 237 default="") |
238 result.add_option("--ignition", help="Skip tests which don't run in ignition", | |
239 default=False, action="store_true") | |
238 result.add_option("--isolates", help="Whether to test isolates", | 240 result.add_option("--isolates", help="Whether to test isolates", |
239 default=False, action="store_true") | 241 default=False, action="store_true") |
240 result.add_option("-j", help="The number of parallel tasks to run", | 242 result.add_option("-j", help="The number of parallel tasks to run", |
241 default=0, type="int") | 243 default=0, type="int") |
242 result.add_option("-m", "--mode", | 244 result.add_option("-m", "--mode", |
243 help="The test modes in which to run (comma-separated," | 245 help="The test modes in which to run (comma-separated," |
244 " uppercase for ninja and buildbot builds): %s" % MODES.keys (), | 246 " uppercase for ninja and buildbot builds): %s" % MODES.keys (), |
245 default="release,debug") | 247 default="release,debug") |
246 result.add_option("--no-harness", "--noharness", | 248 result.add_option("--no-harness", "--noharness", |
247 help="Run without test harness of a given suite", | 249 help="Run without test harness of a given suite", |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
674 simulator_run = not options.dont_skip_simulator_slow_tests and \ | 676 simulator_run = not options.dont_skip_simulator_slow_tests and \ |
675 arch in ['arm64', 'arm', 'mipsel', 'mips', 'mips64', 'mips64el', \ | 677 arch in ['arm64', 'arm', 'mipsel', 'mips', 'mips64', 'mips64el', \ |
676 'ppc', 'ppc64'] and \ | 678 'ppc', 'ppc64'] and \ |
677 ARCH_GUESS and arch != ARCH_GUESS | 679 ARCH_GUESS and arch != ARCH_GUESS |
678 # Find available test suites and read test cases from them. | 680 # Find available test suites and read test cases from them. |
679 variables = { | 681 variables = { |
680 "arch": arch, | 682 "arch": arch, |
681 "asan": options.asan, | 683 "asan": options.asan, |
682 "deopt_fuzzer": False, | 684 "deopt_fuzzer": False, |
683 "gc_stress": options.gc_stress, | 685 "gc_stress": options.gc_stress, |
686 "ignition": options.ignition, | |
Michael Achenbach
2015/11/06 10:58:46
Please add a "ignition": False to run-deopt-fuzzer
rmcilroy
2015/11/06 17:40:02
Done.
| |
684 "isolates": options.isolates, | 687 "isolates": options.isolates, |
685 "mode": MODES[mode]["status_mode"], | 688 "mode": MODES[mode]["status_mode"], |
686 "no_i18n": options.no_i18n, | 689 "no_i18n": options.no_i18n, |
687 "no_snap": options.no_snap, | 690 "no_snap": options.no_snap, |
688 "simulator_run": simulator_run, | 691 "simulator_run": simulator_run, |
689 "simulator": utils.UseSimulator(arch), | 692 "simulator": utils.UseSimulator(arch), |
690 "system": utils.GuessOS(), | 693 "system": utils.GuessOS(), |
691 "tsan": options.tsan, | 694 "tsan": options.tsan, |
692 "msan": options.msan, | 695 "msan": options.msan, |
693 "dcheck_always_on": options.dcheck_always_on, | 696 "dcheck_always_on": options.dcheck_always_on, |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
791 if exit_code == 1 and options.json_test_results: | 794 if exit_code == 1 and options.json_test_results: |
792 print("Force exit code 0 after failures. Json test results file generated " | 795 print("Force exit code 0 after failures. Json test results file generated " |
793 "with failure information.") | 796 "with failure information.") |
794 exit_code = 0 | 797 exit_code = 0 |
795 | 798 |
796 return exit_code | 799 return exit_code |
797 | 800 |
798 | 801 |
799 if __name__ == "__main__": | 802 if __name__ == "__main__": |
800 sys.exit(Main()) | 803 sys.exit(Main()) |
OLD | NEW |