| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """A tool to run the v8 tests. | 6 """A tool to run the v8 tests. |
| 7 | 7 |
| 8 For a list of command-line options, call this script with '--help'. | 8 For a list of command-line options, call this script with '--help'. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 help='Run isolates tests') | 64 help='Run isolates tests') |
| 65 option_parser.add_option('--buildbot', | 65 option_parser.add_option('--buildbot', |
| 66 default='True', | 66 default='True', |
| 67 help='Resolve paths to executables for buildbots') | 67 help='Resolve paths to executables for buildbots') |
| 68 option_parser.add_option('--no-presubmit', | 68 option_parser.add_option('--no-presubmit', |
| 69 default=False, action='store_true', | 69 default=False, action='store_true', |
| 70 help='Skip presubmit checks') | 70 help='Skip presubmit checks') |
| 71 option_parser.add_option("--no-i18n", "--noi18n", | 71 option_parser.add_option("--no-i18n", "--noi18n", |
| 72 default=False, action='store_true', | 72 default=False, action='store_true', |
| 73 help='Skip internationalization tests') | 73 help='Skip internationalization tests') |
| 74 option_parser.add_option("--no-snap", "--nosnap", |
| 75 default=False, action="store_true", |
| 76 help='Test a build compiled without snapshot.') |
| 74 option_parser.add_option("--no-variants", | 77 option_parser.add_option("--no-variants", |
| 75 default=False, action='store_true', | 78 default=False, action='store_true', |
| 76 help='Skip testing variants') | 79 help='Skip testing variants') |
| 77 option_parser.add_option('--flaky-tests', | 80 option_parser.add_option('--flaky-tests', |
| 78 help=('Regard tests marked as flaky ' | 81 help=('Regard tests marked as flaky ' |
| 79 '(run|skip|dontcare)')) | 82 '(run|skip|dontcare)')) |
| 80 option_parser.add_option("--gc-stress", | 83 option_parser.add_option("--gc-stress", |
| 81 default=False, action='store_true', | 84 default=False, action='store_true', |
| 82 help='Switch on GC stress mode') | 85 help='Switch on GC stress mode') |
| 83 option_parser.add_option("--quickcheck", | 86 option_parser.add_option("--quickcheck", |
| (...skipping 21 matching lines...) Expand all Loading... |
| 105 else: | 108 else: |
| 106 options.testname = [] | 109 options.testname = [] |
| 107 if options.asan: | 110 if options.asan: |
| 108 cmd.extend(['--asan']) | 111 cmd.extend(['--asan']) |
| 109 if options.buildbot == 'True': | 112 if options.buildbot == 'True': |
| 110 cmd.extend(['--buildbot']) | 113 cmd.extend(['--buildbot']) |
| 111 if options.no_presubmit: | 114 if options.no_presubmit: |
| 112 cmd.extend(['--no-presubmit']) | 115 cmd.extend(['--no-presubmit']) |
| 113 if options.no_i18n: | 116 if options.no_i18n: |
| 114 cmd.extend(['--no-i18n']) | 117 cmd.extend(['--no-i18n']) |
| 118 if options.no_snap: |
| 119 cmd.extend(['--no-snap']) |
| 115 if options.no_variants: | 120 if options.no_variants: |
| 116 cmd.extend(['--no-variants']) | 121 cmd.extend(['--no-variants']) |
| 117 if 'benchmarks' in options.testname: | 122 if 'benchmarks' in options.testname: |
| 118 cmd.extend(['--download-data']) | 123 cmd.extend(['--download-data']) |
| 119 if 'test262' in options.testname: | 124 if 'test262' in options.testname: |
| 120 cmd.extend(['--download-data']) | 125 cmd.extend(['--download-data']) |
| 121 if 'mozilla' in options.testname: | 126 if 'mozilla' in options.testname: |
| 122 # Mozilla tests requires a number of tests to timeout, set it a bit lower. | 127 # Mozilla tests requires a number of tests to timeout, set it a bit lower. |
| 123 if options.arch in ('arm', 'mipsel'): | 128 if options.arch in ('arm', 'mipsel'): |
| 124 cmd.extend(['--timeout=180']) | 129 cmd.extend(['--timeout=180']) |
| (...skipping 25 matching lines...) Expand all Loading... |
| 150 | 155 |
| 151 if options.shard_count > 1: | 156 if options.shard_count > 1: |
| 152 cmd.extend(['--shard-count=%s' % options.shard_count, | 157 cmd.extend(['--shard-count=%s' % options.shard_count, |
| 153 '--shard-run=%s' % options.shard_run]) | 158 '--shard-run=%s' % options.shard_run]) |
| 154 | 159 |
| 155 return chromium_utils.RunCommand(cmd) | 160 return chromium_utils.RunCommand(cmd) |
| 156 | 161 |
| 157 | 162 |
| 158 if __name__ == '__main__': | 163 if __name__ == '__main__': |
| 159 sys.exit(main()) | 164 sys.exit(main()) |
| OLD | NEW |