| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 false, | 140 false, |
| 141 type: 'bool'), | 141 type: 'bool'), |
| 142 new _TestOptionSpecification( | 142 new _TestOptionSpecification( |
| 143 'csp', | 143 'csp', |
| 144 'Run tests under Content Security Policy restrictions', | 144 'Run tests under Content Security Policy restrictions', |
| 145 ['--csp'], | 145 ['--csp'], |
| 146 [], | 146 [], |
| 147 false, | 147 false, |
| 148 type: 'bool'), | 148 type: 'bool'), |
| 149 new _TestOptionSpecification( | 149 new _TestOptionSpecification( |
| 150 'cps_ir', |
| 151 'Run the compiler with the cps based backend', |
| 152 ['--cps-ir'], |
| 153 [], |
| 154 false, |
| 155 type: 'bool'), |
| 156 new _TestOptionSpecification( |
| 150 'timeout', | 157 'timeout', |
| 151 'Timeout in seconds', | 158 'Timeout in seconds', |
| 152 ['-t', '--timeout'], | 159 ['-t', '--timeout'], |
| 153 [], | 160 [], |
| 154 -1, | 161 -1, |
| 155 type: 'int'), | 162 type: 'int'), |
| 156 new _TestOptionSpecification( | 163 new _TestOptionSpecification( |
| 157 'progress', | 164 'progress', |
| 158 'Progress indication mode', | 165 'Progress indication mode', |
| 159 ['-p', '--progress'], | 166 ['-p', '--progress'], |
| (...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 return option; | 897 return option; |
| 891 } | 898 } |
| 892 } | 899 } |
| 893 print('Unknown test option $name'); | 900 print('Unknown test option $name'); |
| 894 exit(1); | 901 exit(1); |
| 895 } | 902 } |
| 896 | 903 |
| 897 | 904 |
| 898 List<_TestOptionSpecification> _options; | 905 List<_TestOptionSpecification> _options; |
| 899 } | 906 } |
| OLD | NEW |