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

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

Issue 11343008: Land update to tools directory with new binaries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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/testing/bin/windows/dart.exe ('k') | tools/testing/dart/multitest.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** 5 /**
6 * Tool for running co19 tests. Used when updating co19. 6 * Tool for running co19 tests. Used when updating co19.
7 * 7 *
8 * Currently, this tool is merely a convenience around multiple 8 * Currently, this tool is merely a convenience around multiple
9 * invocations of test.dart. Long term, we hope to evolve this into a 9 * invocations of test.dart. Long term, we hope to evolve this into a
10 * script that can automate most of the tasks necessary when updating 10 * script that can automate most of the tasks necessary when updating
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 var startTime = new Date.now(); 43 var startTime = new Date.now();
44 var optionsParser = new TestOptionsParser(); 44 var optionsParser = new TestOptionsParser();
45 List<Map> configurations = <Map>[]; 45 List<Map> configurations = <Map>[];
46 for (var commandLine in COMMAND_LINES) { 46 for (var commandLine in COMMAND_LINES) {
47 List arguments = <String>[]; 47 List arguments = <String>[];
48 arguments.addAll(COMMON_ARGUMENTS); 48 arguments.addAll(COMMON_ARGUMENTS);
49 arguments.addAll(commandLine); 49 arguments.addAll(commandLine);
50 arguments.add('co19'); 50 arguments.add('co19');
51 configurations.addAll(optionsParser.parse(arguments)); 51 configurations.addAll(optionsParser.parse(arguments));
52 } 52 }
53 if (configurations == null || configurations.isEmpty()) return; 53 if (configurations == null || configurations.isEmpty) return;
54 54
55 var firstConfiguration = configurations[0]; 55 var firstConfiguration = configurations[0];
56 Map<String, RegExp> selectors = firstConfiguration['selectors']; 56 Map<String, RegExp> selectors = firstConfiguration['selectors'];
57 var maxProcesses = firstConfiguration['tasks']; 57 var maxProcesses = firstConfiguration['tasks'];
58 var verbose = firstConfiguration['verbose']; 58 var verbose = firstConfiguration['verbose'];
59 var listTests = firstConfiguration['list']; 59 var listTests = firstConfiguration['list'];
60 60
61 var configurationIterator = configurations.iterator(); 61 var configurationIterator = configurations.iterator();
62 void enqueueConfiguration(ProcessQueue queue) { 62 void enqueueConfiguration(ProcessQueue queue) {
63 if (!configurationIterator.hasNext()) return; 63 if (!configurationIterator.hasNext) return;
64 var configuration = configurationIterator.next(); 64 var configuration = configurationIterator.next();
65 for (String selector in selectors.getKeys()) { 65 for (String selector in selectors.keys) {
66 if (selector == 'co19') { 66 if (selector == 'co19') {
67 queue.addTestSuite(new Co19TestSuite(configuration)); 67 queue.addTestSuite(new Co19TestSuite(configuration));
68 } else { 68 } else {
69 throw 'Error: unexpected selector: "$selector".'; 69 throw 'Error: unexpected selector: "$selector".';
70 } 70 }
71 } 71 }
72 } 72 }
73 73
74 // Start process queue. 74 // Start process queue.
75 var queue = new ProcessQueue(maxProcesses, 75 var queue = new ProcessQueue(maxProcesses,
76 'diff', 76 'diff',
77 startTime, 77 startTime,
78 false, 78 false,
79 enqueueConfiguration, 79 enqueueConfiguration,
80 () {}, 80 () {},
81 verbose, 81 verbose,
82 listTests); 82 listTests);
83 } 83 }
OLDNEW
« no previous file with comments | « tools/testing/bin/windows/dart.exe ('k') | tools/testing/dart/multitest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698