| 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("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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 'Progress indication mode', | 149 'Progress indication mode', |
| 150 ['-p', '--progress'], | 150 ['-p', '--progress'], |
| 151 ['compact', 'color', 'line', 'verbose', | 151 ['compact', 'color', 'line', 'verbose', |
| 152 'silent', 'status', 'buildbot'], | 152 'silent', 'status', 'buildbot'], |
| 153 'compact'), | 153 'compact'), |
| 154 new _TestOptionSpecification( | 154 new _TestOptionSpecification( |
| 155 'step_name', | 155 'step_name', |
| 156 'Step name for use by -pbuildbot', | 156 'Step name for use by -pbuildbot', |
| 157 ['--step_name'], | 157 ['--step_name'], |
| 158 [], | 158 [], |
| 159 'string'), | 159 null), |
| 160 new _TestOptionSpecification( | 160 new _TestOptionSpecification( |
| 161 'report', | 161 'report', |
| 162 'Print a summary report of the number of tests, by expectation', | 162 'Print a summary report of the number of tests, by expectation', |
| 163 ['--report'], | 163 ['--report'], |
| 164 [], | 164 [], |
| 165 false, | 165 false, |
| 166 'bool'), | 166 'bool'), |
| 167 new _TestOptionSpecification( | 167 new _TestOptionSpecification( |
| 168 'tasks', | 168 'tasks', |
| 169 'The number of parallel tasks to run', | 169 'The number of parallel tasks to run', |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | 250 |
| 251 Normally, the compiler or runtimes in PRODUCT_DIR is tested, with this | 251 Normally, the compiler or runtimes in PRODUCT_DIR is tested, with this |
| 252 option, the compiler or runtime in PRODUCT_DIR/dart-sdk/bin is tested. | 252 option, the compiler or runtime in PRODUCT_DIR/dart-sdk/bin is tested. |
| 253 | 253 |
| 254 Note: currently only implemented for dart2js.''', | 254 Note: currently only implemented for dart2js.''', |
| 255 ['--use-sdk'], | 255 ['--use-sdk'], |
| 256 [], | 256 [], |
| 257 false, | 257 false, |
| 258 'bool'), | 258 'bool'), |
| 259 new _TestOptionSpecification( | 259 new _TestOptionSpecification( |
| 260 'build_directory', |
| 261 'The name of the build directory, where products are placed.', |
| 262 ['--build-directory'], |
| 263 [], |
| 264 ''), |
| 265 new _TestOptionSpecification( |
| 260 'noBatch', | 266 'noBatch', |
| 261 'Do not run browser tests in batch mode', | 267 'Do not run browser tests in batch mode', |
| 262 ['-n', '--nobatch'], | 268 ['-n', '--nobatch'], |
| 263 [], | 269 [], |
| 264 false, | 270 false, |
| 265 'bool'), | 271 'bool'), |
| 266 new _TestOptionSpecification( | 272 new _TestOptionSpecification( |
| 267 'append_flaky_log', | 273 'append_flaky_log', |
| 268 'Do not delete the old flaky log but rather append to it.', | 274 'Do not delete the old flaky log but rather append to it.', |
| 269 ['--append_flaky_log'], | 275 ['--append_flaky_log'], |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 return option; | 669 return option; |
| 664 } | 670 } |
| 665 } | 671 } |
| 666 print('Unknown test option $name'); | 672 print('Unknown test option $name'); |
| 667 exit(1); | 673 exit(1); |
| 668 } | 674 } |
| 669 | 675 |
| 670 | 676 |
| 671 List<_TestOptionSpecification> _options; | 677 List<_TestOptionSpecification> _options; |
| 672 } | 678 } |
| OLD | NEW |