OLD | NEW |
---|---|
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
68 var startTime = new Date.now(); | 68 var startTime = new Date.now(); |
69 var optionsParser = new TestOptionsParser(); | 69 var optionsParser = new TestOptionsParser(); |
70 List<Map> configurations = optionsParser.parse(new Options().arguments); | 70 List<Map> configurations = optionsParser.parse(new Options().arguments); |
71 if (configurations == null || configurations.length == 0) return; | 71 if (configurations == null || configurations.length == 0) return; |
72 | 72 |
73 // Extract global options from first configuration. | 73 // Extract global options from first configuration. |
74 var firstConf = configurations[0]; | 74 var firstConf = configurations[0]; |
75 Map<String, RegExp> selectors = firstConf['selectors']; | 75 Map<String, RegExp> selectors = firstConf['selectors']; |
76 var maxProcesses = firstConf['tasks']; | 76 var maxProcesses = firstConf['tasks']; |
77 var progressIndicator = firstConf['progress']; | 77 var progressIndicator = firstConf['progress']; |
78 var stepName = firstConf['step_name']; | |
Bill Hesse
2012/09/11 10:26:53
How about BuildbotProgressIndicator.stepName = fir
| |
78 var verbose = firstConf['verbose']; | 79 var verbose = firstConf['verbose']; |
79 var printTiming = firstConf['time']; | 80 var printTiming = firstConf['time']; |
80 var listTests = firstConf['list']; | 81 var listTests = firstConf['list']; |
81 | 82 |
83 if (progressIndicator == 'buildbot' && stepName !== null) { | |
ricow1
2012/09/11 08:14:38
I am not particularly happy about having buildbot
| |
84 print('@@@BUILD_STEP $stepName@@@'); | |
85 } | |
86 | |
82 // Print the configurations being run by this execution of | 87 // Print the configurations being run by this execution of |
83 // test.dart. However, don't do it if the silent progress indicator | 88 // test.dart. However, don't do it if the silent progress indicator |
84 // is used. This is only needed because of the junit tests. | 89 // is used. This is only needed because of the junit tests. |
85 if (progressIndicator != 'silent') { | 90 if (progressIndicator != 'silent') { |
86 List output_words = configurations.length > 1 ? | 91 List output_words = configurations.length > 1 ? |
87 ['Test configurations:'] : ['Test configuration:']; | 92 ['Test configurations:'] : ['Test configuration:']; |
88 for (Map conf in configurations) { | 93 for (Map conf in configurations) { |
89 List settings = | 94 List settings = |
90 ['compiler', 'runtime', 'mode', 'arch'].map((name) => conf[name]); | 95 ['compiler', 'runtime', 'mode', 'arch'].map((name) => conf[name]); |
91 if (conf['checked']) settings.add('checked'); | 96 if (conf['checked']) settings.add('checked'); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
125 return true; | 130 return true; |
126 } | 131 } |
127 | 132 |
128 // Start process queue. | 133 // Start process queue. |
129 var queue = new ProcessQueue(maxProcesses, | 134 var queue = new ProcessQueue(maxProcesses, |
130 progressIndicator, | 135 progressIndicator, |
131 startTime, | 136 startTime, |
132 printTiming, | 137 printTiming, |
133 enqueueConfiguration, | 138 enqueueConfiguration, |
134 verbose, | 139 verbose, |
135 listTests); | 140 listTests, |
141 stepName); | |
136 } | 142 } |
OLD | NEW |