Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: tools/testing/dart/test_options.dart

Issue 9086008: Add python wrapper for test.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/test_wrapper.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « tools/test_wrapper.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698