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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 new _TestOptionSpecification( | 284 new _TestOptionSpecification( |
285 'help', 'Print list of options', ['-h', '--help'], [], false, | 285 'help', 'Print list of options', ['-h', '--help'], [], false, |
286 type: 'bool'), | 286 type: 'bool'), |
287 new _TestOptionSpecification( | 287 new _TestOptionSpecification( |
288 'verbose', 'Verbose output', ['-v', '--verbose'], [], false, | 288 'verbose', 'Verbose output', ['-v', '--verbose'], [], false, |
289 type: 'bool'), | 289 type: 'bool'), |
290 new _TestOptionSpecification( | 290 new _TestOptionSpecification( |
291 'verify-ir', 'Verify kernel IR', ['--verify-ir'], [], false, | 291 'verify-ir', 'Verify kernel IR', ['--verify-ir'], [], false, |
292 type: 'bool'), | 292 type: 'bool'), |
293 new _TestOptionSpecification( | 293 new _TestOptionSpecification( |
| 294 'use-standalone-dartk', 'Generate Kernel binaries with a standalone da
rtk compiler', ['--use-standalone-dartk'], [], false, |
| 295 type: 'bool'), |
| 296 new _TestOptionSpecification( |
294 'list', 'List tests only, do not run them', ['--list'], [], false, | 297 'list', 'List tests only, do not run them', ['--list'], [], false, |
295 type: 'bool'), | 298 type: 'bool'), |
296 new _TestOptionSpecification( | 299 new _TestOptionSpecification( |
297 'report_in_json', | 300 'report_in_json', |
298 'When doing list, output result summary in json only.', | 301 'When doing list, output result summary in json only.', |
299 ['--report-in-json'], | 302 ['--report-in-json'], |
300 [], | 303 [], |
301 false, | 304 false, |
302 type: 'bool'), | 305 type: 'bool'), |
303 new _TestOptionSpecification('time', | 306 new _TestOptionSpecification('time', |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1013 return option; | 1016 return option; |
1014 } | 1017 } |
1015 } | 1018 } |
1016 print('Unknown test option $name'); | 1019 print('Unknown test option $name'); |
1017 exit(1); | 1020 exit(1); |
1018 return null; // Unreachable. | 1021 return null; // Unreachable. |
1019 } | 1022 } |
1020 | 1023 |
1021 List<_TestOptionSpecification> _options; | 1024 List<_TestOptionSpecification> _options; |
1022 } | 1025 } |
OLD | NEW |