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

Side by Side Diff: tools/test-compiler.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 | « tools/test.dart ('k') | tools/test-runtime.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 #!/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 #library("test"); 6 #library("test");
7 7
8 #import("testing/dart/test_runner.dart"); 8 #import("testing/dart/test_runner.dart");
9 #import("testing/dart/test_options.dart"); 9 #import("testing/dart/test_options.dart");
10 10
11 // This file is identical to test.dart with suites in frog and utils removed. 11 // This file is identical to test.dart with suites in frog and utils removed.
12 #import("../tests/co19/test_config.dart"); 12 #import("../tests/co19/test_config.dart");
13 #import("../tests/corelib/test_config.dart"); 13 #import("../tests/corelib/test_config.dart");
14 #import("../tests/isolate/test_config.dart"); 14 #import("../tests/isolate/test_config.dart");
15 #import("../tests/language/test_config.dart"); 15 #import("../tests/language/test_config.dart");
16 #import("../tests/standalone/test_config.dart"); 16 #import("../tests/standalone/test_config.dart");
17 #import("../tests/utils/test_config.dart"); 17 #import("../tests/utils/test_config.dart");
18 #import("../runtime/tests/vm/test_config.dart"); 18 #import("../runtime/tests/vm/test_config.dart");
19 #import("../samples/tests/samples/test_config.dart"); 19 #import("../samples/tests/samples/test_config.dart");
20 #import("../client/tests/dartc/test_config.dart"); 20 #import("../client/tests/dartc/test_config.dart");
21 #import("../compiler/tests/dartc/test_config.dart"); 21 #import("../compiler/tests/dartc/test_config.dart");
22 #import("../client/tests/client/test_config.dart"); 22 #import("../client/tests/client/test_config.dart");
23 23
24 main() { 24 main() {
25 var startTime = new Date.now(); 25 var startTime = new Date.now();
26 var optionsParser = new TestOptionsParser(); 26 var optionsParser = new TestOptionsParser();
27 List<Map> configurations = optionsParser.parse(new Options().arguments); 27 List<Map> configurations = optionsParser.parse(new Options().arguments);
28 if (configurations == null) return; 28 if (configurations == null) return;
29 29
30 // Print the configurations being run by this execution of
31 // test.dart. However, don't do it if any of the components uses
32 // the silent progress indicator. This is only needed because of
33 // the junit tests.
34 if (configurations.every((conf) => conf['progress'] != 'silent')) {
Bill Hesse 2012/03/13 14:15:39 The .every seems like overkill. But it works. Ev
Mads Ager (google) 2012/03/13 14:17:47 You are right. I have moved it below the extractio
35 StringBuffer sb = new StringBuffer('Test configuration');
36 sb.add(configurations.length > 1 ? 's:' : ':');
37 for (Map conf in configurations) {
38 sb.add(' ${conf["component"]}_${conf["mode"]}_${conf["arch"]}');
39 if (conf['checked']) sb.add('_checked');
40 }
41 print(sb);
42 }
43
30 // Extract global options from first configuration. 44 // Extract global options from first configuration.
31 var firstConf = configurations[0]; 45 var firstConf = configurations[0];
32 Map<String, RegExp> selectors = firstConf['selectors']; 46 Map<String, RegExp> selectors = firstConf['selectors'];
33 var maxProcesses = firstConf['tasks']; 47 var maxProcesses = firstConf['tasks'];
34 var progressIndicator = firstConf['progress']; 48 var progressIndicator = firstConf['progress'];
35 var verbose = firstConf['verbose']; 49 var verbose = firstConf['verbose'];
36 var printTiming = firstConf['time']; 50 var printTiming = firstConf['time'];
37 var listTests = firstConf['list']; 51 var listTests = firstConf['list'];
38 var keepGeneratedTests = firstConf['keep-generated-tests']; 52 var keepGeneratedTests = firstConf['keep-generated-tests'];
39 53
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // Start process queue. 95 // Start process queue.
82 var queue = new ProcessQueue(maxProcesses, 96 var queue = new ProcessQueue(maxProcesses,
83 progressIndicator, 97 progressIndicator,
84 startTime, 98 startTime,
85 printTiming, 99 printTiming,
86 enqueueConfiguration, 100 enqueueConfiguration,
87 verbose, 101 verbose,
88 listTests, 102 listTests,
89 keepGeneratedTests); 103 keepGeneratedTests);
90 } 104 }
OLDNEW
« no previous file with comments | « tools/test.dart ('k') | tools/test-runtime.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698