| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 result.add_option("--extra-flags", | 168 result.add_option("--extra-flags", |
| 169 help="Additional flags to pass to each test command", | 169 help="Additional flags to pass to each test command", |
| 170 default="") | 170 default="") |
| 171 result.add_option("--isolates", help="Whether to test isolates", | 171 result.add_option("--isolates", help="Whether to test isolates", |
| 172 default=False, action="store_true") | 172 default=False, action="store_true") |
| 173 result.add_option("-j", help="The number of parallel tasks to run", | 173 result.add_option("-j", help="The number of parallel tasks to run", |
| 174 default=0, type="int") | 174 default=0, type="int") |
| 175 result.add_option("-m", "--mode", | 175 result.add_option("-m", "--mode", |
| 176 help="The test modes in which to run (comma-separated)", | 176 help="The test modes in which to run (comma-separated)", |
| 177 default="release,debug") | 177 default="release,debug") |
| 178 result.add_option("--no-harness", "--noharness", |
| 179 help="Run without test harness of a given suite", |
| 180 default=False, action="store_true") |
| 178 result.add_option("--no-i18n", "--noi18n", | 181 result.add_option("--no-i18n", "--noi18n", |
| 179 help="Skip internationalization tests", | 182 help="Skip internationalization tests", |
| 180 default=False, action="store_true") | 183 default=False, action="store_true") |
| 181 result.add_option("--no-network", "--nonetwork", | 184 result.add_option("--no-network", "--nonetwork", |
| 182 help="Don't distribute tests on the network", | 185 help="Don't distribute tests on the network", |
| 183 default=(utils.GuessOS() != "linux"), | 186 default=(utils.GuessOS() != "linux"), |
| 184 dest="no_network", action="store_true") | 187 dest="no_network", action="store_true") |
| 185 result.add_option("--no-presubmit", "--nopresubmit", | 188 result.add_option("--no-presubmit", "--nopresubmit", |
| 186 help='Skip presubmit checks', | 189 help='Skip presubmit checks', |
| 187 default=False, dest="no_presubmit", action="store_true") | 190 default=False, dest="no_presubmit", action="store_true") |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 ctx = context.Context(arch, mode, shell_dir, | 488 ctx = context.Context(arch, mode, shell_dir, |
| 486 mode_flags, options.verbose, | 489 mode_flags, options.verbose, |
| 487 timeout, options.isolates, | 490 timeout, options.isolates, |
| 488 options.command_prefix, | 491 options.command_prefix, |
| 489 options.extra_flags, | 492 options.extra_flags, |
| 490 options.no_i18n, | 493 options.no_i18n, |
| 491 options.random_seed, | 494 options.random_seed, |
| 492 options.no_sorting, | 495 options.no_sorting, |
| 493 options.rerun_failures_count, | 496 options.rerun_failures_count, |
| 494 options.rerun_failures_max, | 497 options.rerun_failures_max, |
| 495 options.predictable) | 498 options.predictable, |
| 499 options.no_harness) |
| 496 | 500 |
| 497 # TODO(all): Combine "simulator" and "simulator_run". | 501 # TODO(all): Combine "simulator" and "simulator_run". |
| 498 simulator_run = not options.dont_skip_simulator_slow_tests and \ | 502 simulator_run = not options.dont_skip_simulator_slow_tests and \ |
| 499 arch in ['arm64', 'arm', 'mipsel', 'mips', 'mips64el'] and \ | 503 arch in ['arm64', 'arm', 'mipsel', 'mips', 'mips64el'] and \ |
| 500 ARCH_GUESS and arch != ARCH_GUESS | 504 ARCH_GUESS and arch != ARCH_GUESS |
| 501 # Find available test suites and read test cases from them. | 505 # Find available test suites and read test cases from them. |
| 502 variables = { | 506 variables = { |
| 503 "arch": arch, | 507 "arch": arch, |
| 504 "asan": options.asan, | 508 "asan": options.asan, |
| 505 "deopt_fuzzer": False, | 509 "deopt_fuzzer": False, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 exit_code = runner.Run(options.j) | 591 exit_code = runner.Run(options.j) |
| 588 overall_duration = time.time() - start_time | 592 overall_duration = time.time() - start_time |
| 589 | 593 |
| 590 if options.time: | 594 if options.time: |
| 591 verbose.PrintTestDurations(suites, overall_duration) | 595 verbose.PrintTestDurations(suites, overall_duration) |
| 592 return exit_code | 596 return exit_code |
| 593 | 597 |
| 594 | 598 |
| 595 if __name__ == "__main__": | 599 if __name__ == "__main__": |
| 596 sys.exit(Main()) | 600 sys.exit(Main()) |
| OLD | NEW |