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 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:io'; | 6 import 'dart:io'; |
7 import 'dart:math' as math; | 7 import 'dart:math' as math; |
8 | 8 |
9 import 'android.dart'; | 9 import 'android.dart'; |
10 import 'browser_controller.dart'; | 10 import 'browser_controller.dart'; |
(...skipping 15 matching lines...) Expand all Loading... |
26 */ | 26 */ |
27 final TEST_SUITE_DIRECTORIES = [ | 27 final TEST_SUITE_DIRECTORIES = [ |
28 new Path('third_party/pkg/dartdoc'), | 28 new Path('third_party/pkg/dartdoc'), |
29 new Path('pkg'), | 29 new Path('pkg'), |
30 new Path('third_party/pkg_tested'), | 30 new Path('third_party/pkg_tested'), |
31 new Path('runtime/tests/vm'), | 31 new Path('runtime/tests/vm'), |
32 new Path('runtime/observatory/tests/service'), | 32 new Path('runtime/observatory/tests/service'), |
33 new Path('runtime/observatory/tests/observatory_ui'), | 33 new Path('runtime/observatory/tests/observatory_ui'), |
34 new Path('samples'), | 34 new Path('samples'), |
35 new Path('samples-dev'), | 35 new Path('samples-dev'), |
36 new Path('tests/benchmark_smoke'), | |
37 new Path('tests/chrome'), | |
38 new Path('tests/compiler/dart2js'), | 36 new Path('tests/compiler/dart2js'), |
39 new Path('tests/compiler/dart2js_extra'), | 37 new Path('tests/compiler/dart2js_extra'), |
40 new Path('tests/compiler/dart2js_native'), | 38 new Path('tests/compiler/dart2js_native'), |
41 new Path('tests/corelib'), | 39 new Path('tests/corelib'), |
42 new Path('tests/corelib_2'), | 40 new Path('tests/corelib_2'), |
43 new Path('tests/corelib_strong'), | 41 new Path('tests/corelib_strong'), |
44 new Path('tests/html'), | 42 new Path('tests/html'), |
45 new Path('tests/isolate'), | 43 new Path('tests/isolate'), |
46 new Path('tests/kernel'), | 44 new Path('tests/kernel'), |
47 new Path('tests/language'), | 45 new Path('tests/language'), |
48 new Path('tests/language_strong'), | 46 new Path('tests/language_strong'), |
49 new Path('tests/language_2'), | 47 new Path('tests/language_2'), |
50 new Path('tests/lib'), | 48 new Path('tests/lib'), |
51 new Path('tests/lib_strong'), | 49 new Path('tests/lib_strong'), |
52 new Path('tests/lib_2'), | 50 new Path('tests/lib_2'), |
53 new Path('tests/standalone'), | 51 new Path('tests/standalone'), |
54 new Path('tests/utils'), | |
55 new Path('utils/tests/css'), | |
56 new Path('utils/tests/peg'), | 52 new Path('utils/tests/peg'), |
57 ]; | 53 ]; |
58 | 54 |
59 // This file is created by gclient runhooks. | 55 // This file is created by gclient runhooks. |
60 final VS_TOOLCHAIN_FILE = new Path("build/win_toolchain.json"); | 56 final VS_TOOLCHAIN_FILE = new Path("build/win_toolchain.json"); |
61 | 57 |
62 Future testConfigurations(List<Configuration> configurations) async { | 58 Future testConfigurations(List<Configuration> configurations) async { |
63 var startTime = new DateTime.now(); | 59 var startTime = new DateTime.now(); |
64 // Extract global options from first configuration. | 60 // Extract global options from first configuration. |
65 var firstConf = configurations[0]; | 61 var firstConf = configurations[0]; |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 // Start all the HTTP servers required before starting the process queue. | 259 // Start all the HTTP servers required before starting the process queue. |
264 if (!serverFutures.isEmpty) { | 260 if (!serverFutures.isEmpty) { |
265 await Future.wait(serverFutures); | 261 await Future.wait(serverFutures); |
266 } | 262 } |
267 | 263 |
268 // [firstConf] is needed here, since the ProcessQueue needs to know the | 264 // [firstConf] is needed here, since the ProcessQueue needs to know the |
269 // settings of 'noBatch' and 'local_ip' | 265 // settings of 'noBatch' and 'local_ip' |
270 new ProcessQueue(firstConf, maxProcesses, maxBrowserProcesses, startTime, | 266 new ProcessQueue(firstConf, maxProcesses, maxBrowserProcesses, startTime, |
271 testSuites, eventListener, allTestsFinished, verbose, adbDevicePool); | 267 testSuites, eventListener, allTestsFinished, verbose, adbDevicePool); |
272 } | 268 } |
OLD | NEW |