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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 'cps_ir', | 178 'cps_ir', |
179 'Run the compiler with the cps based backend', | 179 'Run the compiler with the cps based backend', |
180 ['--cps-ir'], | 180 ['--cps-ir'], |
181 [], | 181 [], |
182 false, | 182 false, |
183 type: 'bool'), | 183 type: 'bool'), |
184 new _TestOptionSpecification( | 184 new _TestOptionSpecification( |
185 'noopt', 'Run an in-place precompilation', ['--noopt'], [], false, | 185 'noopt', 'Run an in-place precompilation', ['--noopt'], [], false, |
186 type: 'bool'), | 186 type: 'bool'), |
187 new _TestOptionSpecification( | 187 new _TestOptionSpecification( |
| 188 'use_blobs', 'Use mmap instead of shared libraries for precompilation'
, ['--use-blobs'], [], false, |
| 189 type: 'bool'), |
| 190 new _TestOptionSpecification( |
188 'timeout', 'Timeout in seconds', ['-t', '--timeout'], [], -1, | 191 'timeout', 'Timeout in seconds', ['-t', '--timeout'], [], -1, |
189 type: 'int'), | 192 type: 'int'), |
190 new _TestOptionSpecification( | 193 new _TestOptionSpecification( |
191 'progress', | 194 'progress', |
192 'Progress indication mode', | 195 'Progress indication mode', |
193 ['-p', '--progress'], | 196 ['-p', '--progress'], |
194 [ | 197 [ |
195 'compact', | 198 'compact', |
196 'color', | 199 'color', |
197 'line', | 200 'line', |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 if (option.keys.contains(name)) { | 893 if (option.keys.contains(name)) { |
891 return option; | 894 return option; |
892 } | 895 } |
893 } | 896 } |
894 print('Unknown test option $name'); | 897 print('Unknown test option $name'); |
895 exit(1); | 898 exit(1); |
896 } | 899 } |
897 | 900 |
898 List<_TestOptionSpecification> _options; | 901 List<_TestOptionSpecification> _options; |
899 } | 902 } |
OLD | NEW |