OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 "drt_updater.dart"; | 8 import "drt_updater.dart"; |
9 import "test_suite.dart"; | 9 import "test_suite.dart"; |
10 import "path.dart"; | 10 import "path.dart"; |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 new _TestOptionSpecification( | 365 new _TestOptionSpecification( |
366 'write_debug_log', | 366 'write_debug_log', |
367 'Don\'t write debug messages to stdout but rather to a logfile.', | 367 'Don\'t write debug messages to stdout but rather to a logfile.', |
368 ['--write-debug-log'], | 368 ['--write-debug-log'], |
369 [], | 369 [], |
370 false, | 370 false, |
371 type: 'bool'), | 371 type: 'bool'), |
372 new _TestOptionSpecification( | 372 new _TestOptionSpecification( |
373 'write_test_outcome_log', | 373 'write_test_outcome_log', |
374 'Write the outcome of all tests executed to a ' | 374 'Write the outcome of all tests executed to a ' |
375 '"${TestUtils.flakyFileName()}" file.', | 375 '"${TestUtils.testOutcomeFileName()}" file.', |
376 ['--write-test-outcome-log'], | 376 ['--write-test-outcome-log'], |
377 [], | 377 [], |
378 false, | 378 false, |
379 type: 'bool'), | 379 type: 'bool'), |
380 new _TestOptionSpecification( | 380 new _TestOptionSpecification( |
381 'reset_browser_configuration', | 381 'reset_browser_configuration', |
382 'Browser specific reset of configuration. ' | 382 'Browser specific reset of configuration. ' |
383 'WARNING: Using this option may remove your bookmarks and ' | 383 'WARNING: Using this option may remove your bookmarks and ' |
384 'other settings.', | 384 'other settings.', |
385 ['--reset-browser-configuration'], | 385 ['--reset-browser-configuration'], |
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1000 return option; | 1000 return option; |
1001 } | 1001 } |
1002 } | 1002 } |
1003 print('Unknown test option $name'); | 1003 print('Unknown test option $name'); |
1004 exit(1); | 1004 exit(1); |
1005 return null; // Unreachable. | 1005 return null; // Unreachable. |
1006 } | 1006 } |
1007 | 1007 |
1008 List<_TestOptionSpecification> _options; | 1008 List<_TestOptionSpecification> _options; |
1009 } | 1009 } |
OLD | NEW |