| 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 "dart:math"; | 8 import "dart:math"; |
| 9 import "drt_updater.dart"; | 9 import "drt_updater.dart"; |
| 10 import "test_suite.dart"; | 10 import "test_suite.dart"; |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 -1, | 155 -1, |
| 156 'int'), | 156 'int'), |
| 157 new _TestOptionSpecification( | 157 new _TestOptionSpecification( |
| 158 'progress', | 158 'progress', |
| 159 'Progress indication mode', | 159 'Progress indication mode', |
| 160 ['-p', '--progress'], | 160 ['-p', '--progress'], |
| 161 ['compact', 'color', 'line', 'verbose', | 161 ['compact', 'color', 'line', 'verbose', |
| 162 'silent', 'status', 'buildbot', 'diff'], | 162 'silent', 'status', 'buildbot', 'diff'], |
| 163 'compact'), | 163 'compact'), |
| 164 new _TestOptionSpecification( | 164 new _TestOptionSpecification( |
| 165 'failure-summary', |
| 166 'Print failure summary at the end', |
| 167 ['--failure-summary'], |
| 168 [], |
| 169 false, |
| 170 'bool'), |
| 171 new _TestOptionSpecification( |
| 165 'step_name', | 172 'step_name', |
| 166 'Step name for use by -pbuildbot', | 173 'Step name for use by -pbuildbot', |
| 167 ['--step_name'], | 174 ['--step_name'], |
| 168 [], | 175 [], |
| 169 null), | 176 null), |
| 170 new _TestOptionSpecification( | 177 new _TestOptionSpecification( |
| 171 'report', | 178 'report', |
| 172 'Print a summary report of the number of tests, by expectation', | 179 'Print a summary report of the number of tests, by expectation', |
| 173 ['--report'], | 180 ['--report'], |
| 174 [], | 181 [], |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 return option; | 698 return option; |
| 692 } | 699 } |
| 693 } | 700 } |
| 694 print('Unknown test option $name'); | 701 print('Unknown test option $name'); |
| 695 exit(1); | 702 exit(1); |
| 696 } | 703 } |
| 697 | 704 |
| 698 | 705 |
| 699 List<_TestOptionSpecification> _options; | 706 List<_TestOptionSpecification> _options; |
| 700 } | 707 } |
| OLD | NEW |