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

Side by Side Diff: tools/test.dart

Issue 9691045: 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 execution of
58 // test.dart. However, don't do it if any of the components uses
59 // the silent progress indicator. This is only needed because of
60 // the junit tests.
61 if (configurations.every((conf) => conf['progress'] != 'silent')) {
62 StringBuffer sb = new StringBuffer('Test configuration');
63 sb.add(configurations.length > 1 ? 's:' : ':');
64 for (Map conf in configurations) {
65 sb.add(' ${conf["component"]}_${conf["mode"]}_${conf["arch"]}');
66 if (conf['checked']) sb.add('_checked');
67 }
68 print(sb);
69 }
70
57 // Extract global options from first configuration. 71 // Extract global options from first configuration.
58 var firstConf = configurations[0]; 72 var firstConf = configurations[0];
59 Map<String, RegExp> selectors = firstConf['selectors']; 73 Map<String, RegExp> selectors = firstConf['selectors'];
60 var maxProcesses = firstConf['tasks']; 74 var maxProcesses = firstConf['tasks'];
61 var progressIndicator = firstConf['progress']; 75 var progressIndicator = firstConf['progress'];
62 var verbose = firstConf['verbose']; 76 var verbose = firstConf['verbose'];
63 var printTiming = firstConf['time']; 77 var printTiming = firstConf['time'];
64 var listTests = firstConf['list']; 78 var listTests = firstConf['list'];
65 var keepGeneratedTests = firstConf['keep-generated-tests']; 79 var keepGeneratedTests = firstConf['keep-generated-tests'];
66 80
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // Start process queue. 150 // Start process queue.
137 var queue = new ProcessQueue(maxProcesses, 151 var queue = new ProcessQueue(maxProcesses,
138 progressIndicator, 152 progressIndicator,
139 startTime, 153 startTime,
140 printTiming, 154 printTiming,
141 enqueueConfiguration, 155 enqueueConfiguration,
142 verbose, 156 verbose,
143 listTests, 157 listTests,
144 keepGeneratedTests); 158 keepGeneratedTests);
145 } 159 }
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