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

Side by Side Diff: tools/test-runtime.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 // TODO(ager): Get rid of this version of test.dart when we don't have 6 // TODO(ager): Get rid of this version of test.dart when we don't have
7 // to worry about the special runtime checkout anymore. 7 // to worry about the special runtime checkout anymore.
8 8
9 #library("test"); 9 #library("test");
10 10
(...skipping 11 matching lines...) Expand all
22 main() { 22 main() {
23 var startTime = new Date.now(); 23 var startTime = new Date.now();
24 var optionsParser = new TestOptionsParser(); 24 var optionsParser = new TestOptionsParser();
25 var configurations = optionsParser.parse(new Options().arguments); 25 var configurations = optionsParser.parse(new Options().arguments);
26 if (configurations == null) return; 26 if (configurations == null) return;
27 // Extract global options from first configuration. 27 // Extract global options from first configuration.
28 var firstConf = configurations[0]; 28 var firstConf = configurations[0];
29 var queue = new ProcessQueue(firstConf['tasks'], 29 var queue = new ProcessQueue(firstConf['tasks'],
30 firstConf['progress'], 30 firstConf['progress'],
31 startTime); 31 startTime);
32 Map<String, RegExp> selectors = firstConf['selectors'];
32 for (var conf in configurations) { 33 for (var conf in configurations) {
33 queue.addTestSuite(new StandaloneTestSuite(conf)); 34 if (selectors.containsKey('standalone')) {
34 queue.addTestSuite(new CorelibTestSuite(conf)); 35 queue.addTestSuite(new StandaloneTestSuite(conf));
35 queue.addTestSuite(new Co19TestSuite(conf)); 36 }
36 queue.addTestSuite(new LanguageTestSuite(conf)); 37 if (selectors.containsKey('corelib')) {
37 queue.addTestSuite(new IsolateTestSuite(conf)); 38 queue.addTestSuite(new CorelibTestSuite(conf));
38 queue.addTestSuite(new StubGeneratorTestSuite(conf)); 39 }
39 if (conf["component"] == "vm") { 40 if (selectors.containsKey('co19')) {
41 queue.addTestSuite(new Co19TestSuite(conf));
42 }
43 if (selectors.containsKey('language')) {
44 queue.addTestSuite(new LanguageTestSuite(conf));
45 }
46 if (selectors.containsKey('isolate')) {
47 queue.addTestSuite(new IsolateTestSuite(conf));
48 }
49 if (selectors.containsKey('stub-generator')) {
50 queue.addTestSuite(new StubGeneratorTestSuite(conf));
51 }
52 if (conf['component'] == 'vm' && selectors.containsKey('vm')) {
40 queue.addTestSuite(new VMTestSuite(conf)); 53 queue.addTestSuite(new VMTestSuite(conf));
41 } 54 }
42 } 55 }
43 } 56 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698