| OLD | NEW |
| 1 #!/usr/bin/env dart | 1 #!/usr/bin/env dart |
| 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"); | 11 #import("../tests/co19/test_config.dart"); |
| 12 #import("../tests/corelib/test_config.dart"); | 12 #import("../tests/corelib/test_config.dart"); |
| 13 #import("../tests/isolate/test_config.dart"); | 13 #import("../tests/isolate/test_config.dart"); |
| 14 #import("../tests/language/test_config.dart"); | 14 #import("../tests/language/test_config.dart"); |
| 15 #import("../tests/standalone/test_config.dart"); | 15 #import("../tests/standalone/test_config.dart"); |
| 16 #import("../tests/stub-generator/test_config.dart"); | 16 #import("../tests/stub-generator/test_config.dart"); |
| 17 #import("../runtime/tests/vm/test_config.dart"); | 17 #import("../runtime/tests/vm/test_config.dart"); |
| 18 #import("../samples/tests/samples/test_config.dart"); | 18 #import("../samples/tests/samples/test_config.dart"); |
| 19 #import("../frog/tests/frog/test_config.dart"); |
| 20 #import("../frog/tests/leg/test_config.dart"); |
| 21 #import("../frog/tests/leg_only/test_config.dart"); |
| 19 | 22 |
| 20 main() { | 23 main() { |
| 21 var startTime = new Date.now(); | 24 var startTime = new Date.now(); |
| 22 var optionsParser = new TestOptionsParser(); | 25 var optionsParser = new TestOptionsParser(); |
| 23 var configurations = optionsParser.parse(new Options().arguments); | 26 var configurations = optionsParser.parse(new Options().arguments); |
| 24 if (configurations == null) return; | 27 if (configurations == null) return; |
| 25 // Extract global options from first configuration. | 28 // Extract global options from first configuration. |
| 26 var firstConf = configurations[0]; | 29 var firstConf = configurations[0]; |
| 27 var queue = new ProcessQueue(firstConf['tasks'], | 30 var queue = new ProcessQueue(firstConf['tasks'], |
| 28 firstConf['progress'], | 31 firstConf['progress'], |
| 29 startTime); | 32 startTime); |
| 30 for (var conf in configurations) { | 33 for (var conf in configurations) { |
| 31 queue.addTestSuite(new SamplesTestSuite(conf)); | 34 queue.addTestSuite(new SamplesTestSuite(conf)); |
| 32 queue.addTestSuite(new StandaloneTestSuite(conf)); | 35 queue.addTestSuite(new StandaloneTestSuite(conf)); |
| 33 queue.addTestSuite(new CorelibTestSuite(conf)); | 36 queue.addTestSuite(new CorelibTestSuite(conf)); |
| 34 queue.addTestSuite(new Co19TestSuite(conf)); | 37 queue.addTestSuite(new Co19TestSuite(conf)); |
| 35 queue.addTestSuite(new LanguageTestSuite(conf)); | 38 queue.addTestSuite(new LanguageTestSuite(conf)); |
| 36 queue.addTestSuite(new IsolateTestSuite(conf)); | 39 queue.addTestSuite(new IsolateTestSuite(conf)); |
| 37 queue.addTestSuite(new StubGeneratorTestSuite(conf)); | 40 queue.addTestSuite(new StubGeneratorTestSuite(conf)); |
| 38 if (conf["component"] == "vm") { | 41 if (conf["component"] == "vm") { |
| 39 queue.addTestSuite(new VMTestSuite(conf)); | 42 queue.addTestSuite(new VMTestSuite(conf)); |
| 40 } | 43 } |
| 44 if (conf["patterns"].some((regexp) => regexp.pattern == 'frog')) { |
| 45 queue.addTestSuite(new FrogTestSuite(conf)); |
| 46 } |
| 47 if (conf["patterns"].some((regexp) => regexp.pattern == 'leg')) { |
| 48 queue.addTestSuite(new LegTestSuite(conf)); |
| 49 } |
| 50 if (conf["patterns"].some((regexp) => regexp.pattern == 'leg_only')) { |
| 51 queue.addTestSuite(new LegOnlyTestSuite(conf)); |
| 52 } |
| 41 } | 53 } |
| 42 } | 54 } |
| OLD | NEW |