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

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

Issue 8845001: Add --time option to dart test scripts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Runtime test script Created 9 years 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
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']; 9 'isolate', 'stub-generator', 'vm'];
10 10
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 'Run tests through valgrind', 128 'Run tests through valgrind',
129 ['--valgrind'], 129 ['--valgrind'],
130 [], 130 [],
131 false, 131 false,
132 'bool'), 132 'bool'),
133 new _TestOptionSpecification( 133 new _TestOptionSpecification(
134 'special-command', 134 'special-command',
135 specialCommandHelp, 135 specialCommandHelp,
136 ['--special-command'], 136 ['--special-command'],
137 [], 137 [],
138 '')]; 138 ''),
139 new _TestOptionSpecification(
140 'time',
141 'Print timing information after running tests',
142 ['--time'],
143 [],
144 false,
145 'bool')];
139 } 146 }
140 147
141 148
142 /** 149 /**
143 * Parse a list of strings as test options. 150 * Parse a list of strings as test options.
144 * 151 *
145 * Returns a list of configurations in which to run the 152 * Returns a list of configurations in which to run the
146 * tests. Configurations are maps mapping from option keys to 153 * tests. Configurations are maps mapping from option keys to
147 * values. When encountering the first non-option string, the rest 154 * values. When encountering the first non-option string, the rest
148 * of the arguments are stored in the returned Map under the 'rest' 155 * of the arguments are stored in the returned Map under the 'rest'
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 if (option.keys.some((key) => key == name)) { 424 if (option.keys.some((key) => key == name)) {
418 return option; 425 return option;
419 } 426 }
420 } 427 }
421 return null; 428 return null;
422 } 429 }
423 430
424 431
425 List<_TestOptionSpecification> _options; 432 List<_TestOptionSpecification> _options;
426 } 433 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698