Chromium Code Reviews| 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 #import("dart:io"); | 7 #import("dart:io"); |
| 8 #import("dart:builtin"); | 8 #import("dart:builtin"); |
| 9 #import("drt_updater.dart"); | 9 #import("drt_updater.dart"); |
| 10 | 10 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 144 'Print a summary report of the number of tests, by expectation', | 144 'Print a summary report of the number of tests, by expectation', |
| 145 ['--report'], | 145 ['--report'], |
| 146 [], | 146 [], |
| 147 false, | 147 false, |
| 148 'bool'), | 148 'bool'), |
| 149 new _TestOptionSpecification( | 149 new _TestOptionSpecification( |
| 150 'tasks', | 150 'tasks', |
| 151 'The number of parallel tasks to run', | 151 'The number of parallel tasks to run', |
| 152 ['-j', '--tasks'], | 152 ['-j', '--tasks'], |
| 153 [], | 153 [], |
| 154 new Platform().numberOfProcessors(), | 154 new Platform().numberOfProcessors(), |
|
Bill Hesse
2012/03/23 22:33:56
Fix this stray indentation.
| |
| 155 'int'), | |
| 156 new _TestOptionSpecification( | |
| 157 'shards', | |
| 158 'The number of instances that the tests will be sharded over', | |
| 159 ['--shards'], | |
| 160 [], | |
| 161 1, | |
| 162 'int'), | |
| 163 new _TestOptionSpecification( | |
| 164 'shard', | |
| 165 'The index of this instance when running in sharded mode', | |
|
Mads Ager (google)
2012/03/23 23:38:20
Maybe we should add an early bailout check somewhe
| |
| 166 ['--shard'], | |
| 167 [], | |
| 168 1, | |
| 155 'int'), | 169 'int'), |
| 156 new _TestOptionSpecification( | 170 new _TestOptionSpecification( |
| 157 'help', | 171 'help', |
| 158 'Print list of options', | 172 'Print list of options', |
| 159 ['-h', '--help'], | 173 ['-h', '--help'], |
| 160 [], | 174 [], |
| 161 false, | 175 false, |
| 162 'bool'), | 176 'bool'), |
| 163 new _TestOptionSpecification( | 177 new _TestOptionSpecification( |
| 164 'verbose', | 178 'verbose', |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 543 return option; | 557 return option; |
| 544 } | 558 } |
| 545 } | 559 } |
| 546 print('Unknown test option $name'); | 560 print('Unknown test option $name'); |
| 547 exit(1); | 561 exit(1); |
| 548 } | 562 } |
| 549 | 563 |
| 550 | 564 |
| 551 List<_TestOptionSpecification> _options; | 565 List<_TestOptionSpecification> _options; |
| 552 } | 566 } |
| OLD | NEW |