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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 result.add_option("--shell", help="DEPRECATED! use --shell-dir", default="") | 306 result.add_option("--shell", help="DEPRECATED! use --shell-dir", default="") |
307 result.add_option("--shell-dir", help="Directory containing executables", | 307 result.add_option("--shell-dir", help="Directory containing executables", |
308 default="") | 308 default="") |
309 result.add_option("--dont-skip-slow-simulator-tests", | 309 result.add_option("--dont-skip-slow-simulator-tests", |
310 help="Don't skip more slow tests when using a simulator.", | 310 help="Don't skip more slow tests when using a simulator.", |
311 default=False, action="store_true", | 311 default=False, action="store_true", |
312 dest="dont_skip_simulator_slow_tests") | 312 dest="dont_skip_simulator_slow_tests") |
313 result.add_option("--stress-only", | 313 result.add_option("--stress-only", |
314 help="Only run tests with --always-opt --stress-opt", | 314 help="Only run tests with --always-opt --stress-opt", |
315 default=False, action="store_true") | 315 default=False, action="store_true") |
| 316 result.add_option("--swarming", |
| 317 help="Indicates running test driver on swarming.", |
| 318 default=False, action="store_true") |
316 result.add_option("--time", help="Print timing information after running", | 319 result.add_option("--time", help="Print timing information after running", |
317 default=False, action="store_true") | 320 default=False, action="store_true") |
318 result.add_option("-t", "--timeout", help="Timeout in seconds", | 321 result.add_option("-t", "--timeout", help="Timeout in seconds", |
319 default= -1, type="int") | 322 default= -1, type="int") |
320 result.add_option("--tsan", | 323 result.add_option("--tsan", |
321 help="Regard test expectations for TSAN", | 324 help="Regard test expectations for TSAN", |
322 default=False, action="store_true") | 325 default=False, action="store_true") |
323 result.add_option("-v", "--verbose", help="Verbose output", | 326 result.add_option("-v", "--verbose", help="Verbose output", |
324 default=False, action="store_true") | 327 default=False, action="store_true") |
325 result.add_option("--valgrind", help="Run tests through valgrind", | 328 result.add_option("--valgrind", help="Run tests through valgrind", |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 mode_flags, verbose_output, | 666 mode_flags, verbose_output, |
664 timeout, options.isolates, | 667 timeout, options.isolates, |
665 options.command_prefix, | 668 options.command_prefix, |
666 options.extra_flags, | 669 options.extra_flags, |
667 options.no_i18n, | 670 options.no_i18n, |
668 options.random_seed, | 671 options.random_seed, |
669 options.no_sorting, | 672 options.no_sorting, |
670 options.rerun_failures_count, | 673 options.rerun_failures_count, |
671 options.rerun_failures_max, | 674 options.rerun_failures_max, |
672 options.predictable, | 675 options.predictable, |
673 options.no_harness) | 676 options.no_harness, |
| 677 use_perf_data=not options.swarming) |
674 | 678 |
675 # TODO(all): Combine "simulator" and "simulator_run". | 679 # TODO(all): Combine "simulator" and "simulator_run". |
676 simulator_run = not options.dont_skip_simulator_slow_tests and \ | 680 simulator_run = not options.dont_skip_simulator_slow_tests and \ |
677 arch in ['arm64', 'arm', 'mipsel', 'mips', 'mips64', 'mips64el', \ | 681 arch in ['arm64', 'arm', 'mipsel', 'mips', 'mips64', 'mips64el', \ |
678 'ppc', 'ppc64'] and \ | 682 'ppc', 'ppc64'] and \ |
679 ARCH_GUESS and arch != ARCH_GUESS | 683 ARCH_GUESS and arch != ARCH_GUESS |
680 # Find available test suites and read test cases from them. | 684 # Find available test suites and read test cases from them. |
681 variables = { | 685 variables = { |
682 "arch": arch, | 686 "arch": arch, |
683 "asan": options.asan, | 687 "asan": options.asan, |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 if exit_code == 1 and options.json_test_results: | 798 if exit_code == 1 and options.json_test_results: |
795 print("Force exit code 0 after failures. Json test results file generated " | 799 print("Force exit code 0 after failures. Json test results file generated " |
796 "with failure information.") | 800 "with failure information.") |
797 exit_code = 0 | 801 exit_code = 0 |
798 | 802 |
799 return exit_code | 803 return exit_code |
800 | 804 |
801 | 805 |
802 if __name__ == "__main__": | 806 if __name__ == "__main__": |
803 sys.exit(Main()) | 807 sys.exit(Main()) |
OLD | NEW |