| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 List<String> defaultTestSelectors = | 7 List<String> defaultTestSelectors = |
| 8 const ['samples', 'standalone', 'corelib', 'co19', 'language', | 8 const ['samples', 'standalone', 'corelib', 'co19', 'language', |
| 9 'isolate', 'stub-generator', 'vm']; | 9 'isolate', 'stub-generator', 'vm']; |
| 10 | 10 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 [], | 78 [], |
| 79 -1, | 79 -1, |
| 80 'int'), | 80 'int'), |
| 81 new _TestOptionSpecification( | 81 new _TestOptionSpecification( |
| 82 'progress', | 82 'progress', |
| 83 'Progress indication mode', | 83 'Progress indication mode', |
| 84 ['-p', '--progress'], | 84 ['-p', '--progress'], |
| 85 ['compact', 'line', 'verbose', 'status', 'buildbot'], | 85 ['compact', 'line', 'verbose', 'status', 'buildbot'], |
| 86 'compact'), | 86 'compact'), |
| 87 new _TestOptionSpecification( | 87 new _TestOptionSpecification( |
| 88 'report', |
| 89 'Print a summary report of the number of tests, by expectation.', |
| 90 ['--report'], |
| 91 [], |
| 92 false, |
| 93 'bool'), |
| 94 new _TestOptionSpecification( |
| 88 'tasks', | 95 'tasks', |
| 89 'The number of parallel tasks to run', | 96 'The number of parallel tasks to run', |
| 90 ['-j', '--tasks'], | 97 ['-j', '--tasks'], |
| 91 [], | 98 [], |
| 92 new Platform().numberOfProcessors(), | 99 new Platform().numberOfProcessors(), |
| 93 'int'), | 100 'int'), |
| 94 new _TestOptionSpecification( | 101 new _TestOptionSpecification( |
| 95 'help', | 102 'help', |
| 96 'Print list of options', | 103 'Print list of options', |
| 97 ['-h', '--help'], | 104 ['-h', '--help'], |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 if (option.keys.some((key) => key == name)) { | 348 if (option.keys.some((key) => key == name)) { |
| 342 return option; | 349 return option; |
| 343 } | 350 } |
| 344 } | 351 } |
| 345 return null; | 352 return null; |
| 346 } | 353 } |
| 347 | 354 |
| 348 | 355 |
| 349 List<_TestOptionSpecification> _options; | 356 List<_TestOptionSpecification> _options; |
| 350 } | 357 } |
| OLD | NEW |