| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #import("dart:math"); | 8 #import("dart:math"); |
| 9 #import("drt_updater.dart"); | 9 #import("drt_updater.dart"); |
| 10 #import("test_suite.dart"); | 10 #import("test_suite.dart"); |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 ['--use-sdk'], | 261 ['--use-sdk'], |
| 262 [], | 262 [], |
| 263 false, | 263 false, |
| 264 'bool'), | 264 'bool'), |
| 265 new _TestOptionSpecification( | 265 new _TestOptionSpecification( |
| 266 'noBatch', | 266 'noBatch', |
| 267 'Do not run browser tests in batch mode', | 267 'Do not run browser tests in batch mode', |
| 268 ['-n', '--nobatch'], | 268 ['-n', '--nobatch'], |
| 269 [], | 269 [], |
| 270 false, | 270 false, |
| 271 'bool')]; | 271 'bool'), |
| 272 new _TestOptionSpecification( |
| 273 'append_flaky_log', |
| 274 'Do not delete the old flaky log but rather append to it.', |
| 275 ['--append_flaky_log'], |
| 276 [], |
| 277 false, |
| 278 'bool' |
| 279 ),]; |
| 272 } | 280 } |
| 273 | 281 |
| 274 | 282 |
| 275 /** | 283 /** |
| 276 * Parse a list of strings as test options. | 284 * Parse a list of strings as test options. |
| 277 * | 285 * |
| 278 * Returns a list of configurations in which to run the | 286 * Returns a list of configurations in which to run the |
| 279 * tests. Configurations are maps mapping from option keys to | 287 * tests. Configurations are maps mapping from option keys to |
| 280 * values. When encountering the first non-option string, the rest | 288 * values. When encountering the first non-option string, the rest |
| 281 * of the arguments are stored in the returned Map under the 'rest' | 289 * of the arguments are stored in the returned Map under the 'rest' |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 return option; | 666 return option; |
| 659 } | 667 } |
| 660 } | 668 } |
| 661 print('Unknown test option $name'); | 669 print('Unknown test option $name'); |
| 662 exit(1); | 670 exit(1); |
| 663 } | 671 } |
| 664 | 672 |
| 665 | 673 |
| 666 List<_TestOptionSpecification> _options; | 674 List<_TestOptionSpecification> _options; |
| 667 } | 675 } |
| OLD | NEW |