| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 'hot_reload', 'Run hot reload stress tests', ['--hot-reload'], [], | 190 'hot_reload', 'Run hot reload stress tests', ['--hot-reload'], [], |
| 191 false, type: 'bool'), | 191 false, type: 'bool'), |
| 192 new _TestOptionSpecification( | 192 new _TestOptionSpecification( |
| 193 'hot_reload_rollback', |
| 194 'Run hot reload rollback stress tests', ['--hot-reload-rollback'], |
| 195 [], |
| 196 false, type: 'bool'), |
| 197 new _TestOptionSpecification( |
| 193 'use_blobs', | 198 'use_blobs', |
| 194 'Use mmap instead of shared libraries for precompilation', | 199 'Use mmap instead of shared libraries for precompilation', |
| 195 ['--use-blobs'], [], false, type: 'bool'), | 200 ['--use-blobs'], [], false, type: 'bool'), |
| 196 new _TestOptionSpecification( | 201 new _TestOptionSpecification( |
| 197 'timeout', 'Timeout in seconds', ['-t', '--timeout'], [], -1, | 202 'timeout', 'Timeout in seconds', ['-t', '--timeout'], [], -1, |
| 198 type: 'int'), | 203 type: 'int'), |
| 199 new _TestOptionSpecification( | 204 new _TestOptionSpecification( |
| 200 'progress', | 205 'progress', |
| 201 'Progress indication mode', | 206 'Progress indication mode', |
| 202 ['-p', '--progress'], | 207 ['-p', '--progress'], |
| (...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 if (option.keys.contains(name)) { | 909 if (option.keys.contains(name)) { |
| 905 return option; | 910 return option; |
| 906 } | 911 } |
| 907 } | 912 } |
| 908 print('Unknown test option $name'); | 913 print('Unknown test option $name'); |
| 909 exit(1); | 914 exit(1); |
| 910 } | 915 } |
| 911 | 916 |
| 912 List<_TestOptionSpecification> _options; | 917 List<_TestOptionSpecification> _options; |
| 913 } | 918 } |
| OLD | NEW |