| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 false, | 200 false, |
| 201 type: 'bool'), | 201 type: 'bool'), |
| 202 new _TestOptionSpecification( | 202 new _TestOptionSpecification( |
| 203 'cps_ir', | 203 'cps_ir', |
| 204 'Run the compiler with the cps based backend', | 204 'Run the compiler with the cps based backend', |
| 205 ['--cps-ir'], | 205 ['--cps-ir'], |
| 206 [], | 206 [], |
| 207 false, | 207 false, |
| 208 type: 'bool'), | 208 type: 'bool'), |
| 209 new _TestOptionSpecification( | 209 new _TestOptionSpecification( |
| 210 'noopt', 'Run an in-place precompilation', ['--noopt'], [], false, | |
| 211 type: 'bool'), | |
| 212 new _TestOptionSpecification( | |
| 213 'fast_startup', | 210 'fast_startup', |
| 214 'Pass the --fast-startup flag to dart2js', | 211 'Pass the --fast-startup flag to dart2js', |
| 215 ['--fast-startup'], | 212 ['--fast-startup'], |
| 216 [], | 213 [], |
| 217 false, | 214 false, |
| 218 type: 'bool'), | 215 type: 'bool'), |
| 219 new _TestOptionSpecification('hot_reload', 'Run hot reload stress tests', | 216 new _TestOptionSpecification('hot_reload', 'Run hot reload stress tests', |
| 220 ['--hot-reload'], [], false, | 217 ['--hot-reload'], [], false, |
| 221 type: 'bool'), | 218 type: 'bool'), |
| 222 new _TestOptionSpecification( | 219 new _TestOptionSpecification( |
| (...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1015 if (option.keys.contains(name)) { | 1012 if (option.keys.contains(name)) { |
| 1016 return option; | 1013 return option; |
| 1017 } | 1014 } |
| 1018 } | 1015 } |
| 1019 print('Unknown test option $name'); | 1016 print('Unknown test option $name'); |
| 1020 exit(1); | 1017 exit(1); |
| 1021 } | 1018 } |
| 1022 | 1019 |
| 1023 List<_TestOptionSpecification> _options; | 1020 List<_TestOptionSpecification> _options; |
| 1024 } | 1021 } |
| OLD | NEW |