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

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

Issue 10627008: Added the ability to filter which tests are run by name, using a --filter (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698