| 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')]; |
| 188 } | 195 } |
| 189 | 196 |
| 190 | 197 |
| 191 /** | 198 /** |
| 192 * Parse a list of strings as test options. | 199 * Parse a list of strings as test options. |
| 193 * | 200 * |
| 194 * Returns a list of configurations in which to run the | 201 * Returns a list of configurations in which to run the |
| 195 * tests. Configurations are maps mapping from option keys to | 202 * tests. Configurations are maps mapping from option keys to |
| 196 * values. When encountering the first non-option string, the rest | 203 * values. When encountering the first non-option string, the rest |
| 197 * of the arguments are stored in the returned Map under the 'rest' | 204 * 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... |
| 496 return option; | 503 return option; |
| 497 } | 504 } |
| 498 } | 505 } |
| 499 print('Unknown test option $name'); | 506 print('Unknown test option $name'); |
| 500 exit(1); | 507 exit(1); |
| 501 } | 508 } |
| 502 | 509 |
| 503 | 510 |
| 504 List<_TestOptionSpecification> _options; | 511 List<_TestOptionSpecification> _options; |
| 505 } | 512 } |
| OLD | NEW |