| 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 #import("testing/dart/test_progress.dart"); |
| 10 | 11 |
| 11 #import("../tests/standalone/test_config.dart"); | 12 #import("../tests/standalone/test_config.dart"); |
| 12 #import("../tests/corelib/test_config.dart"); | 13 #import("../tests/corelib/test_config.dart"); |
| 13 | 14 |
| 14 main() { | 15 main() { |
| 15 var optionsParser = new TestOptionsParser(); | 16 var optionsParser = new TestOptionsParser(); |
| 16 var configuration = optionsParser.parse(new Options().arguments); | 17 var configuration = optionsParser.parse(new Options().arguments); |
| 17 if (configuration == null) return; | 18 if (configuration == null) return; |
| 18 var queue = new ProcessQueue(configuration['tasks']); | 19 var queue = new ProcessQueue(configuration['tasks'], |
| 20 new CompactProgressIndicator()); |
| 19 new StandaloneTestSuite().forEachTest(queue.runTest); | 21 new StandaloneTestSuite().forEachTest(queue.runTest); |
| 20 new CorelibTestSuite().forEachTest(queue.runTest); | 22 new CorelibTestSuite().forEachTest(queue.runTest); |
| 21 } | 23 } |
| OLD | NEW |