| 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 new _TestOptionSpecification( | 294 new _TestOptionSpecification( |
| 295 'verbose', 'Verbose output', ['-v', '--verbose'], [], false, | 295 'verbose', 'Verbose output', ['-v', '--verbose'], [], false, |
| 296 type: 'bool'), | 296 type: 'bool'), |
| 297 new _TestOptionSpecification( | 297 new _TestOptionSpecification( |
| 298 'verify-ir', 'Verify kernel IR', ['--verify-ir'], [], false, | 298 'verify-ir', 'Verify kernel IR', ['--verify-ir'], [], false, |
| 299 type: 'bool'), | 299 type: 'bool'), |
| 300 new _TestOptionSpecification( | 300 new _TestOptionSpecification( |
| 301 'no-tree-shake', 'Disable kernel IR tree shaking', ['--no-tree-shake']
, [], false, | 301 'no-tree-shake', 'Disable kernel IR tree shaking', ['--no-tree-shake']
, [], false, |
| 302 type: 'bool'), | 302 type: 'bool'), |
| 303 new _TestOptionSpecification( | 303 new _TestOptionSpecification( |
| 304 'noDFE', 'Do not use Kernel Isolate', ['--no-dfe'], [], false, | |
| 305 type: 'bool'), | |
| 306 new _TestOptionSpecification( | |
| 307 'noUseFasta', 'Use Fasta in Kernel Isolate', ['--no-use-fasta'], [], f
alse, | |
| 308 type: 'bool'), | |
| 309 new _TestOptionSpecification( | |
| 310 'list', 'List tests only, do not run them', ['--list'], [], false, | 304 'list', 'List tests only, do not run them', ['--list'], [], false, |
| 311 type: 'bool'), | 305 type: 'bool'), |
| 312 new _TestOptionSpecification( | 306 new _TestOptionSpecification( |
| 313 'report_in_json', | 307 'report_in_json', |
| 314 'When doing list, output result summary in json only.', | 308 'When doing list, output result summary in json only.', |
| 315 ['--report-in-json'], | 309 ['--report-in-json'], |
| 316 [], | 310 [], |
| 317 false, | 311 false, |
| 318 type: 'bool'), | 312 type: 'bool'), |
| 319 new _TestOptionSpecification('time', | 313 new _TestOptionSpecification('time', |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1006 return option; | 1000 return option; |
| 1007 } | 1001 } |
| 1008 } | 1002 } |
| 1009 print('Unknown test option $name'); | 1003 print('Unknown test option $name'); |
| 1010 exit(1); | 1004 exit(1); |
| 1011 return null; // Unreachable. | 1005 return null; // Unreachable. |
| 1012 } | 1006 } |
| 1013 | 1007 |
| 1014 List<_TestOptionSpecification> _options; | 1008 List<_TestOptionSpecification> _options; |
| 1015 } | 1009 } |
| OLD | NEW |