| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 | 10 |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 false, | 185 false, |
| 186 'bool'), | 186 'bool'), |
| 187 new _TestOptionSpecification( | 187 new _TestOptionSpecification( |
| 188 'list', | 188 'list', |
| 189 'List tests only, do not run them', | 189 'List tests only, do not run them', |
| 190 ['--list'], | 190 ['--list'], |
| 191 [], | 191 [], |
| 192 false, | 192 false, |
| 193 'bool'), | 193 'bool'), |
| 194 new _TestOptionSpecification( | 194 new _TestOptionSpecification( |
| 195 'filter', |
| 196 'Pattern to filter tests by name', |
| 197 ['--filter'], |
| 198 [], |
| 199 ''), |
| 200 new _TestOptionSpecification( |
| 195 'valgrind', | 201 'valgrind', |
| 196 'Run tests through valgrind', | 202 'Run tests through valgrind', |
| 197 ['--valgrind'], | 203 ['--valgrind'], |
| 198 [], | 204 [], |
| 199 false, | 205 false, |
| 200 'bool'), | 206 'bool'), |
| 201 new _TestOptionSpecification( | 207 new _TestOptionSpecification( |
| 202 'special-command', | 208 'special-command', |
| 203 specialCommandHelp, | 209 specialCommandHelp, |
| 204 ['--special-command'], | 210 ['--special-command'], |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 return option; | 644 return option; |
| 639 } | 645 } |
| 640 } | 646 } |
| 641 print('Unknown test option $name'); | 647 print('Unknown test option $name'); |
| 642 exit(1); | 648 exit(1); |
| 643 } | 649 } |
| 644 | 650 |
| 645 | 651 |
| 646 List<_TestOptionSpecification> _options; | 652 List<_TestOptionSpecification> _options; |
| 647 } | 653 } |
| OLD | NEW |