| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2015 The Chromium Authors. All rights reserved. | 2 # Copyright 2015 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 if options.no_variants: | 133 if options.no_variants: |
| 134 cmd.extend(['--no-variants']) | 134 cmd.extend(['--no-variants']) |
| 135 if options.turbo_variant: | 135 if options.turbo_variant: |
| 136 cmd.extend(['--variants=turbofan']) | 136 cmd.extend(['--variants=turbofan']) |
| 137 if 'benchmarks' in options.testname: | 137 if 'benchmarks' in options.testname: |
| 138 cmd.extend(['--download-data']) | 138 cmd.extend(['--download-data']) |
| 139 if 'test262' in options.testname: | 139 if 'test262' in options.testname: |
| 140 cmd.extend(['--download-data']) | 140 cmd.extend(['--download-data']) |
| 141 if 'test262-es6' in options.testname: | 141 if 'test262-es6' in options.testname: |
| 142 cmd.extend(['--download-data']) | 142 cmd.extend(['--download-data']) |
| 143 if 'simdjs' in options.testname: |
| 144 cmd.extend(['--download-data']) |
| 145 if 'simdjs/shell_test_runner' in options.testname: |
| 146 cmd.extend(['--download-data']) |
| 143 if 'mozilla' in options.testname: | 147 if 'mozilla' in options.testname: |
| 144 # Mozilla tests requires a number of tests to timeout, set it a bit lower. | 148 # Mozilla tests requires a number of tests to timeout, set it a bit lower. |
| 145 if options.arch in ('arm', 'mipsel'): | 149 if options.arch in ('arm', 'mipsel'): |
| 146 cmd.extend(['--timeout=180']) | 150 cmd.extend(['--timeout=180']) |
| 147 else: | 151 else: |
| 148 cmd.extend(['--timeout=120']) | 152 cmd.extend(['--timeout=120']) |
| 149 elif options.shell_flags and '--gc-interval' in options.shell_flags: | 153 elif options.shell_flags and '--gc-interval' in options.shell_flags: |
| 150 # GC Stress testing takes much longer, set generous timeout. | 154 # GC Stress testing takes much longer, set generous timeout. |
| 151 if options.arch in ('arm', 'mipsel'): | 155 if options.arch in ('arm', 'mipsel'): |
| 152 cmd.extend(['--timeout=1200']) | 156 cmd.extend(['--timeout=1200']) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 180 | 184 |
| 181 if options.shard_count > 1: | 185 if options.shard_count > 1: |
| 182 cmd.extend(['--shard-count=%s' % options.shard_count, | 186 cmd.extend(['--shard-count=%s' % options.shard_count, |
| 183 '--shard-run=%s' % options.shard_run]) | 187 '--shard-run=%s' % options.shard_run]) |
| 184 | 188 |
| 185 return chromium_utils.RunCommand(cmd) | 189 return chromium_utils.RunCommand(cmd) |
| 186 | 190 |
| 187 | 191 |
| 188 if __name__ == '__main__': | 192 if __name__ == '__main__': |
| 189 sys.exit(main()) | 193 sys.exit(main()) |
| OLD | NEW |