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

Side by Side Diff: tools/test.dart

Issue 8772007: Allow single-dash options to be specified without a space before value. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update a couple of comment.s 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 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 #library("test"); 6 #library("test");
7 7
8 #import("testing/dart/test_runner.dart"); 8 #import("testing/dart/test_runner.dart");
9 #import("testing/dart/test_options.dart"); 9 #import("testing/dart/test_options.dart");
10 10
(...skipping 12 matching lines...) Expand all
23 main() { 23 main() {
24 var startTime = new Date.now(); 24 var startTime = new Date.now();
25 var optionsParser = new TestOptionsParser(); 25 var optionsParser = new TestOptionsParser();
26 var configurations = optionsParser.parse(new Options().arguments); 26 var configurations = optionsParser.parse(new Options().arguments);
27 if (configurations == null) return; 27 if (configurations == null) return;
28 // Extract global options from first configuration. 28 // Extract global options from first configuration.
29 var firstConf = configurations[0]; 29 var firstConf = configurations[0];
30 var queue = new ProcessQueue(firstConf['tasks'], 30 var queue = new ProcessQueue(firstConf['tasks'],
31 firstConf['progress'], 31 firstConf['progress'],
32 startTime); 32 startTime);
33 Map<String, RegExp> selectors = firstConf['selectors'];
33 for (var conf in configurations) { 34 for (var conf in configurations) {
34 queue.addTestSuite(new SamplesTestSuite(conf)); 35 if (selectors.containsKey('samples')) {
35 queue.addTestSuite(new StandaloneTestSuite(conf)); 36 queue.addTestSuite(new SamplesTestSuite(conf));
36 queue.addTestSuite(new CorelibTestSuite(conf)); 37 }
37 queue.addTestSuite(new Co19TestSuite(conf)); 38 if (selectors.containsKey('standalone')) {
38 queue.addTestSuite(new LanguageTestSuite(conf)); 39 queue.addTestSuite(new StandaloneTestSuite(conf));
39 queue.addTestSuite(new IsolateTestSuite(conf)); 40 }
40 queue.addTestSuite(new StubGeneratorTestSuite(conf)); 41 if (selectors.containsKey('corelib')) {
41 if (conf["component"] == "vm") { 42 queue.addTestSuite(new CorelibTestSuite(conf));
43 }
44 if (selectors.containsKey('co19')) {
45 queue.addTestSuite(new Co19TestSuite(conf));
46 }
47 if (selectors.containsKey('language')) {
48 queue.addTestSuite(new LanguageTestSuite(conf));
49 }
50 if (selectors.containsKey('isolate')) {
51 queue.addTestSuite(new IsolateTestSuite(conf));
52 }
53 if (selectors.containsKey('stub-generator')) {
54 queue.addTestSuite(new StubGeneratorTestSuite(conf));
55 }
56 if (conf['component'] == 'vm' && selectors.containsKey('vm')) {
42 queue.addTestSuite(new VMTestSuite(conf)); 57 queue.addTestSuite(new VMTestSuite(conf));
43 } 58 }
44 if (conf["patterns"].some((regexp) => regexp.pattern == 'frog')) { 59 if (selectors.containsKey('frog')) {
45 queue.addTestSuite(new FrogTestSuite(conf)); 60 queue.addTestSuite(new FrogTestSuite(conf));
46 } 61 }
47 if (conf["patterns"].some((regexp) => regexp.pattern == 'leg')) { 62 if (selectors.containsKey('leg')) {
48 queue.addTestSuite(new LegTestSuite(conf)); 63 queue.addTestSuite(new LegTestSuite(conf));
49 } 64 }
50 if (conf["patterns"].some((regexp) => regexp.pattern == 'leg_only')) { 65 if (selectors.containsKey('leg_only')) {
51 queue.addTestSuite(new LegOnlyTestSuite(conf)); 66 queue.addTestSuite(new LegOnlyTestSuite(conf));
52 } 67 }
53 } 68 }
54 } 69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698