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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 [], | 263 [], |
264 ''), | 264 ''), |
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( | 272 new _TestOptionSpecification( |
273 'append_flaky_log', | 273 'append_logs', |
274 'Do not delete the old flaky log but rather append to it.', | 274 'Do not delete old logs but rather append to them.', |
275 ['--append_flaky_log'], | 275 ['--append_logs'], |
276 [], | 276 [], |
277 false, | 277 false, |
278 'bool' | 278 'bool' |
| 279 ), |
| 280 new _TestOptionSpecification( |
| 281 'write_debug_log', |
| 282 'Don\'t write debug messages to stdout but rather to a logfile.', |
| 283 ['--write-debug-log'], |
| 284 [], |
| 285 false, |
| 286 'bool' |
279 ),]; | 287 ),]; |
280 } | 288 } |
281 | 289 |
282 | 290 |
283 /** | 291 /** |
284 * Parse a list of strings as test options. | 292 * Parse a list of strings as test options. |
285 * | 293 * |
286 * Returns a list of configurations in which to run the | 294 * Returns a list of configurations in which to run the |
287 * tests. Configurations are maps mapping from option keys to | 295 * tests. Configurations are maps mapping from option keys to |
288 * values. When encountering the first non-option string, the rest | 296 * values. When encountering the first non-option string, the rest |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 return option; | 677 return option; |
670 } | 678 } |
671 } | 679 } |
672 print('Unknown test option $name'); | 680 print('Unknown test option $name'); |
673 exit(1); | 681 exit(1); |
674 } | 682 } |
675 | 683 |
676 | 684 |
677 List<_TestOptionSpecification> _options; | 685 List<_TestOptionSpecification> _options; |
678 } | 686 } |
OLD | NEW |