| OLD | NEW |
| (Empty) | |
| 1 #!/usr/bin/env dart |
| 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 |
| 4 // BSD-style license that can be found in the LICENSE file. |
| 5 |
| 6 // TODO(ager): Get rid of this version of test.dart when we don't have |
| 7 // to worry about the special runtime checkout anymore. |
| 8 |
| 9 #library("test"); |
| 10 |
| 11 #import("testing/dart/test_runner.dart"); |
| 12 #import("testing/dart/test_options.dart"); |
| 13 |
| 14 #import("../tests/co19/test_config.dart"); |
| 15 #import("../tests/corelib/test_config.dart"); |
| 16 #import("../tests/isolate/test_config.dart"); |
| 17 #import("../tests/language/test_config.dart"); |
| 18 #import("../tests/standalone/test_config.dart"); |
| 19 #import("../tests/stub-generator/test_config.dart"); |
| 20 #import("../runtime/tests/vm/test_config.dart"); |
| 21 |
| 22 main() { |
| 23 var startTime = new Date.now(); |
| 24 var optionsParser = new TestOptionsParser(); |
| 25 var configurations = optionsParser.parse(new Options().arguments); |
| 26 if (configurations == null) return; |
| 27 // Extract global options from first configuration. |
| 28 var firstConf = configurations[0]; |
| 29 var queue = new ProcessQueue(firstConf['tasks'], |
| 30 firstConf['progress'], |
| 31 startTime); |
| 32 for (var conf in configurations) { |
| 33 queue.addTestSuite(new StandaloneTestSuite(conf)); |
| 34 queue.addTestSuite(new CorelibTestSuite(conf)); |
| 35 queue.addTestSuite(new Co19TestSuite(conf)); |
| 36 queue.addTestSuite(new LanguageTestSuite(conf)); |
| 37 queue.addTestSuite(new IsolateTestSuite(conf)); |
| 38 queue.addTestSuite(new StubGeneratorTestSuite(conf)); |
| 39 if (conf["component"] == "vm") { |
| 40 queue.addTestSuite(new VMTestSuite(conf)); |
| 41 } |
| 42 } |
| 43 } |
| OLD | NEW |