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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 default="dontcare") | 217 default="dontcare") |
218 result.add_option("--slow-tests", | 218 result.add_option("--slow-tests", |
219 help="Regard slow tests (run|skip|dontcare)", | 219 help="Regard slow tests (run|skip|dontcare)", |
220 default="dontcare") | 220 default="dontcare") |
221 result.add_option("--pass-fail-tests", | 221 result.add_option("--pass-fail-tests", |
222 help="Regard pass|fail tests (run|skip|dontcare)", | 222 help="Regard pass|fail tests (run|skip|dontcare)", |
223 default="dontcare") | 223 default="dontcare") |
224 result.add_option("--gc-stress", | 224 result.add_option("--gc-stress", |
225 help="Switch on GC stress mode", | 225 help="Switch on GC stress mode", |
226 default=False, action="store_true") | 226 default=False, action="store_true") |
| 227 result.add_option("--gcov-coverage", |
| 228 help="Uses executables instrumented for gcov coverage", |
| 229 default=False, action="store_true") |
227 result.add_option("--command-prefix", | 230 result.add_option("--command-prefix", |
228 help="Prepended to each shell command used to run a test", | 231 help="Prepended to each shell command used to run a test", |
229 default="") | 232 default="") |
230 result.add_option("--download-data", help="Download missing test suite data", | 233 result.add_option("--download-data", help="Download missing test suite data", |
231 default=False, action="store_true") | 234 default=False, action="store_true") |
232 result.add_option("--download-data-only", | 235 result.add_option("--download-data-only", |
233 help="Download missing test suite data and exit", | 236 help="Download missing test suite data and exit", |
234 default=False, action="store_true") | 237 default=False, action="store_true") |
235 result.add_option("--extra-flags", | 238 result.add_option("--extra-flags", |
236 help="Additional flags to pass to each test command", | 239 help="Additional flags to pass to each test command", |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 simulator_run = not options.dont_skip_simulator_slow_tests and \ | 684 simulator_run = not options.dont_skip_simulator_slow_tests and \ |
682 arch in ['arm64', 'arm', 'mipsel', 'mips', 'mips64', 'mips64el', \ | 685 arch in ['arm64', 'arm', 'mipsel', 'mips', 'mips64', 'mips64el', \ |
683 'ppc', 'ppc64'] and \ | 686 'ppc', 'ppc64'] and \ |
684 ARCH_GUESS and arch != ARCH_GUESS | 687 ARCH_GUESS and arch != ARCH_GUESS |
685 # Find available test suites and read test cases from them. | 688 # Find available test suites and read test cases from them. |
686 variables = { | 689 variables = { |
687 "arch": arch, | 690 "arch": arch, |
688 "asan": options.asan, | 691 "asan": options.asan, |
689 "deopt_fuzzer": False, | 692 "deopt_fuzzer": False, |
690 "gc_stress": options.gc_stress, | 693 "gc_stress": options.gc_stress, |
| 694 "gcov_coverage": options.gcov_coverage, |
691 "ignition": options.ignition, | 695 "ignition": options.ignition, |
692 "isolates": options.isolates, | 696 "isolates": options.isolates, |
693 "mode": MODES[mode]["status_mode"], | 697 "mode": MODES[mode]["status_mode"], |
694 "no_i18n": options.no_i18n, | 698 "no_i18n": options.no_i18n, |
695 "no_snap": options.no_snap, | 699 "no_snap": options.no_snap, |
696 "simulator_run": simulator_run, | 700 "simulator_run": simulator_run, |
697 "simulator": utils.UseSimulator(arch), | 701 "simulator": utils.UseSimulator(arch), |
698 "system": utils.GuessOS(), | 702 "system": utils.GuessOS(), |
699 "tsan": options.tsan, | 703 "tsan": options.tsan, |
700 "msan": options.msan, | 704 "msan": options.msan, |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 if exit_code == 1 and options.json_test_results: | 803 if exit_code == 1 and options.json_test_results: |
800 print("Force exit code 0 after failures. Json test results file generated " | 804 print("Force exit code 0 after failures. Json test results file generated " |
801 "with failure information.") | 805 "with failure information.") |
802 exit_code = 0 | 806 exit_code = 0 |
803 | 807 |
804 return exit_code | 808 return exit_code |
805 | 809 |
806 | 810 |
807 if __name__ == "__main__": | 811 if __name__ == "__main__": |
808 sys.exit(Main()) | 812 sys.exit(Main()) |
OLD | NEW |