| OLD | NEW |
| 1 #!/usr/bin/env dart_bin | 1 #!/usr/bin/env dart_bin |
| 2 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2011, 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 #library("test"); | 6 #library("test"); |
| 7 | 7 |
| 8 #import("testing/dart/test_runner.dart"); | 8 #import("testing/dart/test_runner.dart"); |
| 9 #import("testing/dart/test_options.dart"); | 9 #import("testing/dart/test_options.dart"); |
| 10 | 10 |
| 11 #import("../tests/co19/test_config.dart"); |
| 12 #import("../tests/corelib/test_config.dart"); |
| 13 #import("../tests/isolate/test_config.dart"); |
| 14 #import("../tests/language/test_config.dart"); |
| 11 #import("../tests/standalone/test_config.dart"); | 15 #import("../tests/standalone/test_config.dart"); |
| 12 #import("../tests/corelib/test_config.dart"); | |
| 13 #import("../tests/co19/test_config.dart"); | |
| 14 | 16 |
| 15 // TODO(ager): This activity tracking is temporary until stdout is | 17 // TODO(ager): This activity tracking is temporary until stdout is |
| 16 // closed implicitly when nothing more can happen. | 18 // closed implicitly when nothing more can happen. |
| 17 int pendingActivities = 0; | 19 int pendingActivities = 0; |
| 18 | 20 |
| 19 void activityStarted() { | 21 void activityStarted() { |
| 20 ++pendingActivities; | 22 ++pendingActivities; |
| 21 } | 23 } |
| 22 | 24 |
| 23 void activityCompleted() { | 25 void activityCompleted() { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 37 if (configurations == null) return; | 39 if (configurations == null) return; |
| 38 activityStarted(); | 40 activityStarted(); |
| 39 var queue = new ProcessQueue(configurations[0], exitIfLastActivity); | 41 var queue = new ProcessQueue(configurations[0], exitIfLastActivity); |
| 40 for (var conf in configurations) { | 42 for (var conf in configurations) { |
| 41 activityStarted(); | 43 activityStarted(); |
| 42 new StandaloneTestSuite(conf).forEachTest(queue.runTest, activityCompleted); | 44 new StandaloneTestSuite(conf).forEachTest(queue.runTest, activityCompleted); |
| 43 activityStarted(); | 45 activityStarted(); |
| 44 new CorelibTestSuite(conf).forEachTest(queue.runTest, activityCompleted); | 46 new CorelibTestSuite(conf).forEachTest(queue.runTest, activityCompleted); |
| 45 activityStarted(); | 47 activityStarted(); |
| 46 new Co19TestSuite(conf).forEachTest(queue.runTest, activityCompleted); | 48 new Co19TestSuite(conf).forEachTest(queue.runTest, activityCompleted); |
| 49 activityStarted(); |
| 50 new LanguageTestSuite(conf).forEachTest(queue.runTest, activityCompleted); |
| 51 activityStarted(); |
| 52 new IsolateTestSuite(conf).forEachTest(queue.runTest, activityCompleted); |
| 47 } | 53 } |
| 48 } | 54 } |
| OLD | NEW |