| 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 294 'no-tree-shake', 'Disable kernel IR tree shaking', ['--no-tree-shake']
, [], false, |
| 295 type: 'bool'), | 295 type: 'bool'), |
| 296 new _TestOptionSpecification( | 296 new _TestOptionSpecification( |
| 297 'use-standalone-dartk', 'Generate Kernel binaries with a standalone da
rtk compiler', ['--use-standalone-dartk'], [], false, | 297 'useDFE', 'Use Kernel Isolate', ['--use-dfe'], [], true, |
| 298 type: 'bool'), |
| 299 new _TestOptionSpecification( |
| 300 'useFasta', 'Use Fasta in Kernel Isolate', ['--use-fasta'], [], false, |
| 298 type: 'bool'), | 301 type: 'bool'), |
| 299 new _TestOptionSpecification( | 302 new _TestOptionSpecification( |
| 300 'list', 'List tests only, do not run them', ['--list'], [], false, | 303 'list', 'List tests only, do not run them', ['--list'], [], false, |
| 301 type: 'bool'), | 304 type: 'bool'), |
| 302 new _TestOptionSpecification( | 305 new _TestOptionSpecification( |
| 303 'report_in_json', | 306 'report_in_json', |
| 304 'When doing list, output result summary in json only.', | 307 'When doing list, output result summary in json only.', |
| 305 ['--report-in-json'], | 308 ['--report-in-json'], |
| 306 [], | 309 [], |
| 307 false, | 310 false, |
| (...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 996 return option; | 999 return option; |
| 997 } | 1000 } |
| 998 } | 1001 } |
| 999 print('Unknown test option $name'); | 1002 print('Unknown test option $name'); |
| 1000 exit(1); | 1003 exit(1); |
| 1001 return null; // Unreachable. | 1004 return null; // Unreachable. |
| 1002 } | 1005 } |
| 1003 | 1006 |
| 1004 List<_TestOptionSpecification> _options; | 1007 List<_TestOptionSpecification> _options; |
| 1005 } | 1008 } |
| OLD | NEW |