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