| Index: tools/test.dart
|
| diff --git a/tools/test.dart b/tools/test.dart
|
| index a9baeff79e6f6fcf2513db47c8083aea8b6c7f3f..655cfb01ded247587c53885e6e43c8bf76dbb935 100755
|
| --- a/tools/test.dart
|
| +++ b/tools/test.dart
|
| @@ -6,12 +6,16 @@
|
| #library("test");
|
|
|
| #import("testing/dart/test_runner.dart");
|
| +#import("testing/dart/test_options_parser.dart");
|
| +
|
| #import("../tests/standalone/test_config.dart");
|
| #import("../tests/corelib/test_config.dart");
|
|
|
| main() {
|
| - int numProcessors = new Platform().numberOfProcessors();
|
| - var queue = new ProcessQueue(numProcessors);
|
| + var optionsParser = new TestOptionsParser();
|
| + var configuration = optionsParser.parse(new Options().arguments);
|
| + if (configuration == null) return;
|
| + var queue = new ProcessQueue(configuration['tasks']);
|
| new StandaloneTestSuite().forEachTest(queue.runTest);
|
| new CorelibTestSuite().forEachTest(queue.runTest);
|
| }
|
|
|