| 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/standalone/test_config.dart"); | 11 #import("../tests/standalone/test_config.dart"); |
| 12 #import("../tests/corelib/test_config.dart"); | 12 #import("../tests/corelib/test_config.dart"); |
| 13 #import("../tests/co19/test_config.dart"); |
| 13 | 14 |
| 14 // TODO(ager): This activity tracking is temporary until stdout is | 15 // TODO(ager): This activity tracking is temporary until stdout is |
| 15 // closed implicitly when nothing more can happen. | 16 // closed implicitly when nothing more can happen. |
| 16 int pendingActivities = 0; | 17 int pendingActivities = 0; |
| 17 | 18 |
| 18 void activityStarted() { | 19 void activityStarted() { |
| 19 ++pendingActivities; | 20 ++pendingActivities; |
| 20 } | 21 } |
| 21 | 22 |
| 22 void activityCompleted() { | 23 void activityCompleted() { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 34 var optionsParser = new TestOptionsParser(); | 35 var optionsParser = new TestOptionsParser(); |
| 35 var configurations = optionsParser.parse(new Options().arguments); | 36 var configurations = optionsParser.parse(new Options().arguments); |
| 36 if (configurations == null) return; | 37 if (configurations == null) return; |
| 37 activityStarted(); | 38 activityStarted(); |
| 38 var queue = new ProcessQueue(configurations[0], exitIfLastActivity); | 39 var queue = new ProcessQueue(configurations[0], exitIfLastActivity); |
| 39 for (var conf in configurations) { | 40 for (var conf in configurations) { |
| 40 activityStarted(); | 41 activityStarted(); |
| 41 new StandaloneTestSuite(conf).forEachTest(queue.runTest, activityCompleted); | 42 new StandaloneTestSuite(conf).forEachTest(queue.runTest, activityCompleted); |
| 42 activityStarted(); | 43 activityStarted(); |
| 43 new CorelibTestSuite(conf).forEachTest(queue.runTest, activityCompleted); | 44 new CorelibTestSuite(conf).forEachTest(queue.runTest, activityCompleted); |
| 45 activityStarted(); |
| 46 new Co19TestSuite(conf).forEachTest(queue.runTest, activityCompleted); |
| 44 } | 47 } |
| 45 } | 48 } |
| OLD | NEW |