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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 type: 'int'), | 294 type: 'int'), |
295 new _TestOptionSpecification( | 295 new _TestOptionSpecification( |
296 'help', 'Print list of options', ['-h', '--help'], [], false, | 296 'help', 'Print list of options', ['-h', '--help'], [], false, |
297 type: 'bool'), | 297 type: 'bool'), |
298 new _TestOptionSpecification( | 298 new _TestOptionSpecification( |
299 'verbose', 'Verbose output', ['-v', '--verbose'], [], false, | 299 'verbose', 'Verbose output', ['-v', '--verbose'], [], false, |
300 type: 'bool'), | 300 type: 'bool'), |
301 new _TestOptionSpecification( | 301 new _TestOptionSpecification( |
302 'verify-ir', 'Verify kernel IR', ['--verify-ir'], [], false, | 302 'verify-ir', 'Verify kernel IR', ['--verify-ir'], [], false, |
303 type: 'bool'), | 303 type: 'bool'), |
304 new _TestOptionSpecification( | 304 new _TestOptionSpecification('no-tree-shake', |
305 'no-tree-shake', 'Disable kernel IR tree shaking', ['--no-tree-shake']
, [], false, | 305 'Disable kernel IR tree shaking', ['--no-tree-shake'], [], false, |
306 type: 'bool'), | 306 type: 'bool'), |
307 new _TestOptionSpecification( | 307 new _TestOptionSpecification( |
308 'list', 'List tests only, do not run them', ['--list'], [], false, | 308 'list', 'List tests only, do not run them', ['--list'], [], false, |
309 type: 'bool'), | 309 type: 'bool'), |
310 new _TestOptionSpecification( | 310 new _TestOptionSpecification( |
311 'report_in_json', | 311 'report_in_json', |
312 'When doing list, output result summary in json only.', | 312 'When doing list, output result summary in json only.', |
313 ['--report-in-json'], | 313 ['--report-in-json'], |
314 [], | 314 [], |
315 false, | 315 false, |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 return option; | 1004 return option; |
1005 } | 1005 } |
1006 } | 1006 } |
1007 print('Unknown test option $name'); | 1007 print('Unknown test option $name'); |
1008 exit(1); | 1008 exit(1); |
1009 return null; // Unreachable. | 1009 return null; // Unreachable. |
1010 } | 1010 } |
1011 | 1011 |
1012 List<_TestOptionSpecification> _options; | 1012 List<_TestOptionSpecification> _options; |
1013 } | 1013 } |
OLD | NEW |