| 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 "compiler_configuration.dart" show CompilerConfiguration; | 10 import "compiler_configuration.dart" show CompilerConfiguration; |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 false, | 293 false, |
| 294 type: 'bool'), | 294 type: 'bool'), |
| 295 new _TestOptionSpecification( | 295 new _TestOptionSpecification( |
| 296 'build_directory', | 296 'build_directory', |
| 297 'The name of the build directory, where products are placed.', | 297 'The name of the build directory, where products are placed.', |
| 298 ['--build-directory'], | 298 ['--build-directory'], |
| 299 [], | 299 [], |
| 300 ''), | 300 ''), |
| 301 new _TestOptionSpecification( | 301 new _TestOptionSpecification( |
| 302 'noBatch', | 302 'noBatch', |
| 303 'Do not run browser tests in batch mode', | 303 'Do not run tests in batch mode', |
| 304 ['-n', '--nobatch'], | 304 ['-n', '--nobatch'], |
| 305 [], | 305 [], |
| 306 false, | 306 false, |
| 307 type: 'bool'), | 307 type: 'bool'), |
| 308 new _TestOptionSpecification( | 308 new _TestOptionSpecification( |
| 309 'dart2js_batch', |
| 310 'Run dart2js tests in batch mode', |
| 311 ['--dart2js-batch'], |
| 312 [], |
| 313 false, |
| 314 type: 'bool'), |
| 315 new _TestOptionSpecification( |
| 309 'append_logs', | 316 'append_logs', |
| 310 'Do not delete old logs but rather append to them.', | 317 'Do not delete old logs but rather append to them.', |
| 311 ['--append_logs'], | 318 ['--append_logs'], |
| 312 [], | 319 [], |
| 313 false, | 320 false, |
| 314 type: 'bool'), | 321 type: 'bool'), |
| 315 new _TestOptionSpecification( | 322 new _TestOptionSpecification( |
| 316 'write_debug_log', | 323 'write_debug_log', |
| 317 'Don\'t write debug messages to stdout but rather to a logfile.', | 324 'Don\'t write debug messages to stdout but rather to a logfile.', |
| 318 ['--write-debug-log'], | 325 ['--write-debug-log'], |
| (...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 return option; | 847 return option; |
| 841 } | 848 } |
| 842 } | 849 } |
| 843 print('Unknown test option $name'); | 850 print('Unknown test option $name'); |
| 844 exit(1); | 851 exit(1); |
| 845 } | 852 } |
| 846 | 853 |
| 847 | 854 |
| 848 List<_TestOptionSpecification> _options; | 855 List<_TestOptionSpecification> _options; |
| 849 } | 856 } |
| OLD | NEW |