| 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 ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language', | 8 const ['dartc', 'samples', 'standalone', 'corelib', 'co19', 'language', |
| 9 'isolate', 'stub-generator', 'vm', 'client']; | 9 'isolate', 'stub-generator', 'vm', 'client']; |
| 10 | 10 |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 // TODO(ager): Get rid of this when there is only one checkout and | 287 // TODO(ager): Get rid of this when there is only one checkout and |
| 288 // we don't have to special case for the runtime checkout. | 288 // we don't have to special case for the runtime checkout. |
| 289 File valgrindFile = new File('runtime/tools/valgrind.py'); | 289 File valgrindFile = new File('runtime/tools/valgrind.py'); |
| 290 if (!valgrindFile.existsSync()) { | 290 if (!valgrindFile.existsSync()) { |
| 291 valgrindFile = new File('../runtime/tools/valgrind.py'); | 291 valgrindFile = new File('../runtime/tools/valgrind.py'); |
| 292 } | 292 } |
| 293 String valgrind = valgrindFile.fullPathSync(); | 293 String valgrind = valgrindFile.fullPathSync(); |
| 294 configuration['special-command'] = 'python -u $valgrind @'; | 294 configuration['special-command'] = 'python -u $valgrind @'; |
| 295 } | 295 } |
| 296 | 296 |
| 297 // Use verbose progress indication for verbose output. | 297 // Use verbose progress indication for verbose output unless buildbot |
| 298 if (configuration['verbose']) { | 298 // progress indication is requested. |
| 299 if (configuration['verbose'] && configuration['progress'] != 'buildbot') { |
| 299 configuration['progress'] = 'verbose'; | 300 configuration['progress'] = 'verbose'; |
| 300 } | 301 } |
| 301 | 302 |
| 302 // Create the artificial 'unchecked' option that test status files | 303 // Create the artificial 'unchecked' option that test status files |
| 303 // expect. | 304 // expect. |
| 304 configuration['unchecked'] = !configuration['checked']; | 305 configuration['unchecked'] = !configuration['checked']; |
| 305 | 306 |
| 306 // Expand the test selectors into a suite name and a simple | 307 // Expand the test selectors into a suite name and a simple |
| 307 // regular expressions to be used on the full path of a test file | 308 // regular expressions to be used on the full path of a test file |
| 308 // in that test suite. If no selectors are explicitly given use | 309 // in that test suite. If no selectors are explicitly given use |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 if (option.keys.some((key) => key == name)) { | 440 if (option.keys.some((key) => key == name)) { |
| 440 return option; | 441 return option; |
| 441 } | 442 } |
| 442 } | 443 } |
| 443 return null; | 444 return null; |
| 444 } | 445 } |
| 445 | 446 |
| 446 | 447 |
| 447 List<_TestOptionSpecification> _options; | 448 List<_TestOptionSpecification> _options; |
| 448 } | 449 } |
| OLD | NEW |