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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 [], | 280 [], |
281 1, | 281 1, |
282 type: 'int'), | 282 type: 'int'), |
283 new _TestOptionSpecification( | 283 new _TestOptionSpecification( |
284 'help', 'Print list of options', ['-h', '--help'], [], false, | 284 'help', 'Print list of options', ['-h', '--help'], [], false, |
285 type: 'bool'), | 285 type: 'bool'), |
286 new _TestOptionSpecification( | 286 new _TestOptionSpecification( |
287 'verbose', 'Verbose output', ['-v', '--verbose'], [], false, | 287 'verbose', 'Verbose output', ['-v', '--verbose'], [], false, |
288 type: 'bool'), | 288 type: 'bool'), |
289 new _TestOptionSpecification( | 289 new _TestOptionSpecification( |
| 290 'verify-ir', 'Verify kernel IR', ['--verify-ir'], [], false, |
| 291 type: 'bool'), |
| 292 new _TestOptionSpecification( |
290 'list', 'List tests only, do not run them', ['--list'], [], false, | 293 'list', 'List tests only, do not run them', ['--list'], [], false, |
291 type: 'bool'), | 294 type: 'bool'), |
292 new _TestOptionSpecification( | 295 new _TestOptionSpecification( |
293 'report_in_json', | 296 'report_in_json', |
294 'When doing list, output result summary in json only.', | 297 'When doing list, output result summary in json only.', |
295 ['--report-in-json'], | 298 ['--report-in-json'], |
296 [], | 299 [], |
297 false, | 300 false, |
298 type: 'bool'), | 301 type: 'bool'), |
299 new _TestOptionSpecification('time', | 302 new _TestOptionSpecification('time', |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 if (option.keys.contains(name)) { | 989 if (option.keys.contains(name)) { |
987 return option; | 990 return option; |
988 } | 991 } |
989 } | 992 } |
990 print('Unknown test option $name'); | 993 print('Unknown test option $name'); |
991 exit(1); | 994 exit(1); |
992 } | 995 } |
993 | 996 |
994 List<_TestOptionSpecification> _options; | 997 List<_TestOptionSpecification> _options; |
995 } | 998 } |
OLD | NEW |