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

Side by Side Diff: tools/test-runtime.dart

Issue 9252009: Synchronize test-runtime.dart and test-compiler.dart with changed test.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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-compiler.dart ('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 #!/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 // This file is identical to test.dart with test suites in the 8 // This file is identical to test.dart with test suites in the
9 // directories samples, client, compiler, frog, and utils removed. 9 // directories samples, client, compiler, frog, and utils removed.
10 10
(...skipping 17 matching lines...) Expand all
28 if (configurations == null) return; 28 if (configurations == null) return;
29 29
30 // Extract global options from first configuration. 30 // Extract global options from first configuration.
31 var firstConf = configurations[0]; 31 var firstConf = configurations[0];
32 Map<String, RegExp> selectors = firstConf['selectors']; 32 Map<String, RegExp> selectors = firstConf['selectors'];
33 var maxProcesses = firstConf['tasks']; 33 var maxProcesses = firstConf['tasks'];
34 var progressIndicator = firstConf['progress']; 34 var progressIndicator = firstConf['progress'];
35 var verbose = firstConf['verbose']; 35 var verbose = firstConf['verbose'];
36 var printTiming = firstConf['time']; 36 var printTiming = firstConf['time'];
37 var listTests = firstConf['list']; 37 var listTests = firstConf['list'];
38 var keepGeneratedTests = firstConf['keep-generated-tests'];
38 39
39 var configurationIterator = configurations.iterator(); 40 var configurationIterator = configurations.iterator();
40 bool enqueueConfiguration(ProcessQueue queue) { 41 bool enqueueConfiguration(ProcessQueue queue) {
41 if (!configurationIterator.hasNext()) { 42 if (!configurationIterator.hasNext()) {
42 return false; 43 return false;
43 } 44 }
44 45
45 var conf = configurationIterator.next(); 46 var conf = configurationIterator.next();
46 if (selectors.containsKey('standalone')) { 47 if (selectors.containsKey('standalone')) {
47 queue.addTestSuite(new StandaloneTestSuite(conf)); 48 queue.addTestSuite(new StandaloneTestSuite(conf));
(...skipping 19 matching lines...) Expand all
67 68
68 return true; 69 return true;
69 } 70 }
70 71
71 // Start process queue. 72 // Start process queue.
72 var queue = new ProcessQueue(maxProcesses, 73 var queue = new ProcessQueue(maxProcesses,
73 progressIndicator, 74 progressIndicator,
74 startTime, 75 startTime,
75 printTiming, 76 printTiming,
76 enqueueConfiguration, 77 enqueueConfiguration,
77 verbose: verbose, 78 verbose,
78 listTests: listTests); 79 listTests,
80 keepGeneratedTests);
79 } 81 }
OLDNEW
« no previous file with comments | « tools/test-compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698