| OLD | NEW |
| 1 #!/usr/bin/env dart | 1 #!/usr/bin/env dart |
| 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2012, 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/utils/test_config.dart"); | 16 #import("../tests/utils/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("../client/tests/dartc/test_config.dart"); | 19 #import("../client/tests/dartc/test_config.dart"); |
| 20 #import("../compiler/tests/dartc/test_config.dart"); | 20 #import("../compiler/tests/dartc/test_config.dart"); |
| 21 #import("../client/tests/client/test_config.dart"); | 21 #import("../client/tests/client/test_config.dart"); |
| 22 #import("../frog/tests/frog/test_config.dart"); | 22 #import("../frog/tests/frog/test_config.dart"); |
| 23 #import("../frog/tests/leg/test_config.dart"); | 23 #import("../frog/tests/leg/test_config.dart"); |
| 24 #import("../frog/tests/leg_only/test_config.dart"); | 24 #import("../frog/tests/leg_only/test_config.dart"); |
| 25 #import("../frog/tests/native/test_config.dart"); |
| 25 #import("../frog/tests/await/test_config.dart"); | 26 #import("../frog/tests/await/test_config.dart"); |
| 26 #import("../utils/tests/css/test_config.dart"); | 27 #import("../utils/tests/css/test_config.dart"); |
| 27 #import("../utils/tests/dartdoc/test_config.dart"); | 28 #import("../utils/tests/dartdoc/test_config.dart"); |
| 28 #import("../utils/tests/import_mapper/test_config.dart"); | 29 #import("../utils/tests/import_mapper/test_config.dart"); |
| 29 #import("../utils/tests/peg/test_config.dart"); | 30 #import("../utils/tests/peg/test_config.dart"); |
| 30 | 31 |
| 31 main() { | 32 main() { |
| 32 var startTime = new Date.now(); | 33 var startTime = new Date.now(); |
| 33 var optionsParser = new TestOptionsParser(); | 34 var optionsParser = new TestOptionsParser(); |
| 34 List<Map> configurations = optionsParser.parse(new Options().arguments); | 35 List<Map> configurations = optionsParser.parse(new Options().arguments); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 } | 78 } |
| 78 if (selectors.containsKey('frog')) { | 79 if (selectors.containsKey('frog')) { |
| 79 queue.addTestSuite(new FrogTestSuite(conf)); | 80 queue.addTestSuite(new FrogTestSuite(conf)); |
| 80 } | 81 } |
| 81 if (selectors.containsKey('leg')) { | 82 if (selectors.containsKey('leg')) { |
| 82 queue.addTestSuite(new LegTestSuite(conf)); | 83 queue.addTestSuite(new LegTestSuite(conf)); |
| 83 } | 84 } |
| 84 if (selectors.containsKey('leg_only')) { | 85 if (selectors.containsKey('leg_only')) { |
| 85 queue.addTestSuite(new LegOnlyTestSuite(conf)); | 86 queue.addTestSuite(new LegOnlyTestSuite(conf)); |
| 86 } | 87 } |
| 88 if (selectors.containsKey('frog_native')) { |
| 89 queue.addTestSuite(new FrogNativeTestSuite(conf)); |
| 90 } |
| 87 if (conf['component'] == 'dartc' && selectors.containsKey('dartc')) { | 91 if (conf['component'] == 'dartc' && selectors.containsKey('dartc')) { |
| 88 queue.addTestSuite(new ClientDartcTestSuite(conf)); | 92 queue.addTestSuite(new ClientDartcTestSuite(conf)); |
| 89 } | 93 } |
| 90 if (conf['component'] == 'dartc' && selectors.containsKey('dartc')) { | 94 if (conf['component'] == 'dartc' && selectors.containsKey('dartc')) { |
| 91 queue.addTestSuite(new JUnitDartcTestSuite(conf)); | 95 queue.addTestSuite(new JUnitDartcTestSuite(conf)); |
| 92 } | 96 } |
| 93 if (selectors.containsKey('css')) { | 97 if (selectors.containsKey('css')) { |
| 94 queue.addTestSuite(new CssTestSuite(conf)); | 98 queue.addTestSuite(new CssTestSuite(conf)); |
| 95 } | 99 } |
| 96 if (selectors.containsKey('dartdoc')) { | 100 if (selectors.containsKey('dartdoc')) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 115 // Start process queue. | 119 // Start process queue. |
| 116 var queue = new ProcessQueue(maxProcesses, | 120 var queue = new ProcessQueue(maxProcesses, |
| 117 progressIndicator, | 121 progressIndicator, |
| 118 startTime, | 122 startTime, |
| 119 printTiming, | 123 printTiming, |
| 120 enqueueConfiguration, | 124 enqueueConfiguration, |
| 121 verbose, | 125 verbose, |
| 122 listTests, | 126 listTests, |
| 123 keepGeneratedTests); | 127 keepGeneratedTests); |
| 124 } | 128 } |
| OLD | NEW |