| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #library("test_options_parser"); | 5 #library("test_options_parser"); |
| 6 | 6 |
| 7 #import("dart:io"); | 7 #import("dart:io"); |
| 8 | 8 |
| 9 List<String> defaultTestSelectors = | 9 List<String> defaultTestSelectors = |
| 10 const ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language', | 10 const ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language', |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 'drt', | 177 'drt', |
| 178 'Path to DumpRenderTree executable', | 178 'Path to DumpRenderTree executable', |
| 179 ['--drt'], | 179 ['--drt'], |
| 180 [], | 180 [], |
| 181 ''), | 181 ''), |
| 182 new _TestOptionSpecification( | 182 new _TestOptionSpecification( |
| 183 'froglib', | 183 'froglib', |
| 184 'Path to frog library', | 184 'Path to frog library', |
| 185 ['--froglib'], | 185 ['--froglib'], |
| 186 [], | 186 [], |
| 187 ''), | 187 '')]; |
| 188 new _TestOptionSpecification( | |
| 189 'noBatch', | |
| 190 'Do not run browser tests in batch mode', | |
| 191 ['-n', '--nobatch'], | |
| 192 [], | |
| 193 false, | |
| 194 'bool')]; | |
| 195 } | 188 } |
| 196 | 189 |
| 197 | 190 |
| 198 /** | 191 /** |
| 199 * Parse a list of strings as test options. | 192 * Parse a list of strings as test options. |
| 200 * | 193 * |
| 201 * Returns a list of configurations in which to run the | 194 * Returns a list of configurations in which to run the |
| 202 * tests. Configurations are maps mapping from option keys to | 195 * tests. Configurations are maps mapping from option keys to |
| 203 * values. When encountering the first non-option string, the rest | 196 * values. When encountering the first non-option string, the rest |
| 204 * of the arguments are stored in the returned Map under the 'rest' | 197 * of the arguments are stored in the returned Map under the 'rest' |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 return option; | 496 return option; |
| 504 } | 497 } |
| 505 } | 498 } |
| 506 print('Unknown test option $name'); | 499 print('Unknown test option $name'); |
| 507 exit(1); | 500 exit(1); |
| 508 } | 501 } |
| 509 | 502 |
| 510 | 503 |
| 511 List<_TestOptionSpecification> _options; | 504 List<_TestOptionSpecification> _options; |
| 512 } | 505 } |
| OLD | NEW |