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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 'cps_ir', | 180 'cps_ir', |
181 'Run the compiler with the cps based backend', | 181 'Run the compiler with the cps based backend', |
182 ['--cps-ir'], | 182 ['--cps-ir'], |
183 [], | 183 [], |
184 false, | 184 false, |
185 type: 'bool'), | 185 type: 'bool'), |
186 new _TestOptionSpecification( | 186 new _TestOptionSpecification( |
187 'noopt', 'Run an in-place precompilation', ['--noopt'], [], false, | 187 'noopt', 'Run an in-place precompilation', ['--noopt'], [], false, |
188 type: 'bool'), | 188 type: 'bool'), |
189 new _TestOptionSpecification( | 189 new _TestOptionSpecification( |
190 'use_blobs', 'Use mmap instead of shared libraries for precompilation'
, ['--use-blobs'], [], false, | 190 'hot_reload', 'Run hot reload stress tests', ['--hot-reload'], [], |
191 type: 'bool'), | 191 false, type: 'bool'), |
| 192 new _TestOptionSpecification( |
| 193 'use_blobs', |
| 194 'Use mmap instead of shared libraries for precompilation', |
| 195 ['--use-blobs'], [], false, type: 'bool'), |
192 new _TestOptionSpecification( | 196 new _TestOptionSpecification( |
193 'timeout', 'Timeout in seconds', ['-t', '--timeout'], [], -1, | 197 'timeout', 'Timeout in seconds', ['-t', '--timeout'], [], -1, |
194 type: 'int'), | 198 type: 'int'), |
195 new _TestOptionSpecification( | 199 new _TestOptionSpecification( |
196 'progress', | 200 'progress', |
197 'Progress indication mode', | 201 'Progress indication mode', |
198 ['-p', '--progress'], | 202 ['-p', '--progress'], |
199 [ | 203 [ |
200 'compact', | 204 'compact', |
201 'color', | 205 'color', |
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
900 if (option.keys.contains(name)) { | 904 if (option.keys.contains(name)) { |
901 return option; | 905 return option; |
902 } | 906 } |
903 } | 907 } |
904 print('Unknown test option $name'); | 908 print('Unknown test option $name'); |
905 exit(1); | 909 exit(1); |
906 } | 910 } |
907 | 911 |
908 List<_TestOptionSpecification> _options; | 912 List<_TestOptionSpecification> _options; |
909 } | 913 } |
OLD | NEW |