OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 library test_configurations; | 5 library test_configurations; |
6 | 6 |
7 import "dart:async"; | 7 import "dart:async"; |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 import "dart:math" as math; | 9 import "dart:math" as math; |
10 | 10 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 "--use-public-packages with the pkgbuild test suite!"); | 189 "--use-public-packages with the pkgbuild test suite!"); |
190 exit(1); | 190 exit(1); |
191 } | 191 } |
192 if (!conf['use_sdk']) { | 192 if (!conf['use_sdk']) { |
193 print("Running the 'pkgbuild' test suite requires " | 193 print("Running the 'pkgbuild' test suite requires " |
194 "passing the '--use-sdk' to test.py"); | 194 "passing the '--use-sdk' to test.py"); |
195 exit(1); | 195 exit(1); |
196 } | 196 } |
197 testSuites.add( | 197 testSuites.add( |
198 new PkgBuildTestSuite(conf, 'pkgbuild', 'pkg/pkgbuild.status')); | 198 new PkgBuildTestSuite(conf, 'pkgbuild', 'pkg/pkgbuild.status')); |
199 } else if (key == 'pub') { | |
200 // TODO(rnystrom): Move pub back into TEST_SUITE_DIRECTORIES once | |
201 // #104 is fixed. | |
202 testSuites.add(new StandardTestSuite(conf, 'pub', | |
203 new Path('sdk/lib/_internal/pub'), | |
204 ['sdk/lib/_internal/pub/pub.status'], | |
205 isTestFilePredicate: (file) => file.endsWith('_test.dart'), | |
206 recursive: true)); | |
207 } | 199 } |
208 } | 200 } |
209 | 201 |
210 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) { | 202 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) { |
211 final name = testSuiteDir.filename; | 203 final name = testSuiteDir.filename; |
212 if (selectors.containsKey(name)) { | 204 if (selectors.containsKey(name)) { |
213 testSuites.add( | 205 testSuites.add( |
214 new StandardTestSuite.forDirectory(conf, testSuiteDir)); | 206 new StandardTestSuite.forDirectory(conf, testSuiteDir)); |
215 } | 207 } |
216 } | 208 } |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 recordingOutputPath); | 281 recordingOutputPath); |
290 } | 282 } |
291 | 283 |
292 // Start all the HTTP servers required before starting the process queue. | 284 // Start all the HTTP servers required before starting the process queue. |
293 if (serverFutures.isEmpty) { | 285 if (serverFutures.isEmpty) { |
294 startProcessQueue(); | 286 startProcessQueue(); |
295 } else { | 287 } else { |
296 Future.wait(serverFutures).then((_) => startProcessQueue()); | 288 Future.wait(serverFutures).then((_) => startProcessQueue()); |
297 } | 289 } |
298 } | 290 } |
OLD | NEW |