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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 print("Running the 'pkgbuild' test suite requires " | 192 print("Running the 'pkgbuild' test suite requires " |
193 "passing the '--use-sdk' to test.py"); | 193 "passing the '--use-sdk' to test.py"); |
194 exit(1); | 194 exit(1); |
195 } | 195 } |
196 testSuites.add( | 196 testSuites.add( |
197 new PkgBuildTestSuite(conf, 'pkgbuild', 'pkg/pkgbuild.status')); | 197 new PkgBuildTestSuite(conf, 'pkgbuild', 'pkg/pkgbuild.status')); |
198 } else if (key == 'pub') { | 198 } else if (key == 'pub') { |
199 // TODO(rnystrom): Move pub back into TEST_SUITE_DIRECTORIES once | 199 // TODO(rnystrom): Move pub back into TEST_SUITE_DIRECTORIES once |
200 // #104 is fixed. | 200 // #104 is fixed. |
201 testSuites.add(new StandardTestSuite(conf, 'pub', | 201 testSuites.add(new StandardTestSuite(conf, 'pub', |
202 new Path('sdk/lib/_internal/pub'), | 202 new Path('sdk/lib/_internal/pub_generated'), |
203 ['sdk/lib/_internal/pub/pub.status'], | 203 ['sdk/lib/_internal/pub/pub.status'], |
204 isTestFilePredicate: (file) => file.endsWith('_test.dart'), | 204 isTestFilePredicate: (file) => file.endsWith('_test.dart'), |
205 recursive: true)); | 205 recursive: true)); |
206 } | 206 } |
207 } | 207 } |
208 | 208 |
209 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) { | 209 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) { |
210 final name = testSuiteDir.filename; | 210 final name = testSuiteDir.filename; |
211 if (selectors.containsKey(name)) { | 211 if (selectors.containsKey(name)) { |
212 testSuites.add( | 212 testSuites.add( |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 recordingOutputPath); | 288 recordingOutputPath); |
289 } | 289 } |
290 | 290 |
291 // Start all the HTTP servers required before starting the process queue. | 291 // Start all the HTTP servers required before starting the process queue. |
292 if (serverFutures.isEmpty) { | 292 if (serverFutures.isEmpty) { |
293 startProcessQueue(); | 293 startProcessQueue(); |
294 } else { | 294 } else { |
295 Future.wait(serverFutures).then((_) => startProcessQueue()); | 295 Future.wait(serverFutures).then((_) => startProcessQueue()); |
296 } | 296 } |
297 } | 297 } |
OLD | NEW |