OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 /// Runs the tests in a batch on the various configurations used on the bots. | 5 /// Runs the tests in a batch on the various configurations used on the bots. |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 | 9 |
10 import 'package:args/args.dart'; | 10 import 'package:args/args.dart'; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 var path = parts.skip(1).join("/"); | 129 var path = parts.skip(1).join("/"); |
130 selectors.putIfAbsent(selector, () => []).add(path); | 130 selectors.putIfAbsent(selector, () => []).add(path); |
131 } | 131 } |
132 | 132 |
133 var failed = <String>[]; | 133 var failed = <String>[]; |
134 var passed = <String>[]; | 134 var passed = <String>[]; |
135 for (var name in configs) { | 135 for (var name in configs) { |
136 var configArgs = allConfigs[name]; | 136 var configArgs = allConfigs[name]; |
137 print("${bold(name)} ${configArgs.join(' ')}:"); | 137 print("${bold(name)} ${configArgs.join(' ')}:"); |
138 | 138 |
139 var args = [ | 139 var args = ["--progress=diff"]; |
140 "--progress=color", | |
141 ]; | |
142 | 140 |
143 args.addAll(configArgs); | 141 args.addAll(configArgs); |
144 | 142 |
145 if (!args.any((arg) => arg.startsWith("--mode"))) { | 143 if (!args.any((arg) => arg.startsWith("--mode"))) { |
146 args.add("--mode=release"); | 144 args.add("--mode=release"); |
147 } | 145 } |
148 | 146 |
149 selectors.forEach((selector, paths) { | 147 selectors.forEach((selector, paths) { |
150 args.add("$selector/${paths.join('|')}"); | 148 args.add("$selector/${paths.join('|')}"); |
151 }); | 149 }); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 process.stdout.listen((bytes) { | 193 process.stdout.listen((bytes) { |
196 stdout.add(bytes); | 194 stdout.add(bytes); |
197 }); | 195 }); |
198 | 196 |
199 process.stderr.listen((bytes) { | 197 process.stderr.listen((bytes) { |
200 stderr.add(bytes); | 198 stderr.add(bytes); |
201 }); | 199 }); |
202 | 200 |
203 return await process.exitCode; | 201 return await process.exitCode; |
204 } | 202 } |
OLD | NEW |