| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2006-2009 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 """Run layout tests using the test_shell. | 6 """Run layout tests using the test_shell. |
| 7 | 7 |
| 8 This is a port of the existing webkit test script run-webkit-tests. | 8 This is a port of the existing webkit test script run-webkit-tests. |
| 9 | 9 |
| 10 The TestRunner class runs a series of tests (TestType interface) against a set | 10 The TestRunner class runs a series of tests (TestType interface) against a set |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 | 70 |
| 71 class TestRunner: | 71 class TestRunner: |
| 72 """A class for managing running a series of tests on a series of test | 72 """A class for managing running a series of tests on a series of test |
| 73 files.""" | 73 files.""" |
| 74 | 74 |
| 75 # When collecting test cases, we include any file with these extensions. | 75 # When collecting test cases, we include any file with these extensions. |
| 76 _supported_file_extensions = set(['.html', '.shtml', '.xml', '.xhtml', '.pl', | 76 _supported_file_extensions = set(['.html', '.shtml', '.xml', '.xhtml', '.pl', |
| 77 '.php', '.svg']) | 77 '.php', '.svg']) |
| 78 # When collecting test cases, skip these directories | 78 # When collecting test cases, skip these directories |
| 79 _skipped_directories = set(['.svn', '_svn', 'resources']) | 79 _skipped_directories = set(['.svn', '_svn', 'resources', 'script-tests']) |
| 80 | 80 |
| 81 # Top-level directories to shard when running tests. | 81 # Top-level directories to shard when running tests. |
| 82 _shardable_directories = set(['chrome', 'LayoutTests', 'pending']) | 82 _shardable_directories = set(['chrome', 'LayoutTests', 'pending']) |
| 83 | 83 |
| 84 HTTP_SUBDIR = os.sep.join(['', 'http', '']) | 84 HTTP_SUBDIR = os.sep.join(['', 'http', '']) |
| 85 | 85 |
| 86 # The per-test timeout in milliseconds, if no --time-out-ms option was given | 86 # The per-test timeout in milliseconds, if no --time-out-ms option was given |
| 87 # to run_webkit_tests. This should correspond to the default timeout in | 87 # to run_webkit_tests. This should correspond to the default timeout in |
| 88 # test_shell.exe. | 88 # test_shell.exe. |
| 89 DEFAULT_TEST_TIMEOUT_MS = 10 * 1000 | 89 DEFAULT_TEST_TIMEOUT_MS = 10 * 1000 |
| (...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1180 option_parser.add_option("", "--build-number", | 1180 option_parser.add_option("", "--build-number", |
| 1181 default="DUMMY_BUILD_NUMBER", | 1181 default="DUMMY_BUILD_NUMBER", |
| 1182 help=("The build number of the builder running" | 1182 help=("The build number of the builder running" |
| 1183 "this script.")) | 1183 "this script.")) |
| 1184 option_parser.add_option("", "--find-baselines", action="store_true", | 1184 option_parser.add_option("", "--find-baselines", action="store_true", |
| 1185 default=False, | 1185 default=False, |
| 1186 help="Prints a table mapping tests to their " | 1186 help="Prints a table mapping tests to their " |
| 1187 "expected results") | 1187 "expected results") |
| 1188 options, args = option_parser.parse_args() | 1188 options, args = option_parser.parse_args() |
| 1189 main(options, args) | 1189 main(options, args) |
| OLD | NEW |