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

Side by Side Diff: tools/test.dart

Issue 9689059: By popular demand, print the configurations being tested by test.dart at startup. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | « no previous file | tools/test-compiler.dart » ('j') | tools/test-compiler.dart » ('J')
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) 2012, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2012, 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 /** 6 /**
7 * This file is the entrypoint of the dart test suite. This suite is used 7 * This file is the entrypoint of the dart test suite. This suite is used
8 * to test: 8 * to test:
9 * 9 *
10 * 1. the dart vm 10 * 1. the dart vm
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #import("../utils/tests/css/test_config.dart"); 47 #import("../utils/tests/css/test_config.dart");
48 #import("../utils/tests/import_mapper/test_config.dart"); 48 #import("../utils/tests/import_mapper/test_config.dart");
49 #import("../utils/tests/peg/test_config.dart"); 49 #import("../utils/tests/peg/test_config.dart");
50 50
51 main() { 51 main() {
52 var startTime = new Date.now(); 52 var startTime = new Date.now();
53 var optionsParser = new TestOptionsParser(); 53 var optionsParser = new TestOptionsParser();
54 List<Map> configurations = optionsParser.parse(new Options().arguments); 54 List<Map> configurations = optionsParser.parse(new Options().arguments);
55 if (configurations == null) return; 55 if (configurations == null) return;
56 56
57 // Print the configurations being run by this excution of test.dart.
58 StringBuffer sb = new StringBuffer('Test configuration(s):');
59 for (Map conf in configurations) {
60 sb.add(' ${conf["component"]}_${conf["mode"]}_${conf["arch"]}');
61 if (conf['checked']) sb.add('_checked');
62 }
63 print(sb);
64
57 // Extract global options from first configuration. 65 // Extract global options from first configuration.
58 var firstConf = configurations[0]; 66 var firstConf = configurations[0];
59 Map<String, RegExp> selectors = firstConf['selectors']; 67 Map<String, RegExp> selectors = firstConf['selectors'];
60 var maxProcesses = firstConf['tasks']; 68 var maxProcesses = firstConf['tasks'];
61 var progressIndicator = firstConf['progress']; 69 var progressIndicator = firstConf['progress'];
62 var verbose = firstConf['verbose']; 70 var verbose = firstConf['verbose'];
63 var printTiming = firstConf['time']; 71 var printTiming = firstConf['time'];
64 var listTests = firstConf['list']; 72 var listTests = firstConf['list'];
65 var keepGeneratedTests = firstConf['keep-generated-tests']; 73 var keepGeneratedTests = firstConf['keep-generated-tests'];
66 74
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // Start process queue. 144 // Start process queue.
137 var queue = new ProcessQueue(maxProcesses, 145 var queue = new ProcessQueue(maxProcesses,
138 progressIndicator, 146 progressIndicator,
139 startTime, 147 startTime,
140 printTiming, 148 printTiming,
141 enqueueConfiguration, 149 enqueueConfiguration,
142 verbose, 150 verbose,
143 listTests, 151 listTests,
144 keepGeneratedTests); 152 keepGeneratedTests);
145 } 153 }
OLDNEW
« no previous file with comments | « no previous file | tools/test-compiler.dart » ('j') | tools/test-compiler.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698