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 'no-tree-shake', 'Disable kernel IR tree shaking', ['--no-tree-shake']
, [], false, |
| 295 type: 'bool'), |
| 296 new _TestOptionSpecification( |
294 'use-standalone-dartk', 'Generate Kernel binaries with a standalone da
rtk compiler', ['--use-standalone-dartk'], [], false, | 297 'use-standalone-dartk', 'Generate Kernel binaries with a standalone da
rtk compiler', ['--use-standalone-dartk'], [], false, |
295 type: 'bool'), | 298 type: 'bool'), |
296 new _TestOptionSpecification( | 299 new _TestOptionSpecification( |
297 'list', 'List tests only, do not run them', ['--list'], [], false, | 300 'list', 'List tests only, do not run them', ['--list'], [], false, |
298 type: 'bool'), | 301 type: 'bool'), |
299 new _TestOptionSpecification( | 302 new _TestOptionSpecification( |
300 'report_in_json', | 303 'report_in_json', |
301 'When doing list, output result summary in json only.', | 304 'When doing list, output result summary in json only.', |
302 ['--report-in-json'], | 305 ['--report-in-json'], |
303 [], | 306 [], |
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1016 return option; | 1019 return option; |
1017 } | 1020 } |
1018 } | 1021 } |
1019 print('Unknown test option $name'); | 1022 print('Unknown test option $name'); |
1020 exit(1); | 1023 exit(1); |
1021 return null; // Unreachable. | 1024 return null; // Unreachable. |
1022 } | 1025 } |
1023 | 1026 |
1024 List<_TestOptionSpecification> _options; | 1027 List<_TestOptionSpecification> _options; |
1025 } | 1028 } |
OLD | NEW |