Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: tools/test_compiler.dart

Issue 9139017: Make test_wrapper.py and test_compiler.dart that will work for a deps.compiler checkout. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/test_wrapper.py » ('j') | tools/test_wrapper.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
Søren Gjesse 2012/01/12 13:54:26 I think we should have a comment here (and in all
6 #library("test");
7
8 #import("testing/dart/test_runner.dart");
9 #import("testing/dart/test_options.dart");
10
11 #import("../tests/co19/test_config.dart");
12 #import("../tests/corelib/test_config.dart");
13 #import("../tests/isolate/test_config.dart");
14 #import("../tests/language/test_config.dart");
15 #import("../tests/standalone/test_config.dart");
16 #import("../tests/stub-generator/test_config.dart");
17 #import("../runtime/tests/vm/test_config.dart");
18 #import("../samples/tests/samples/test_config.dart");
19 #import("../client/tests/dartc/test_config.dart");
20 #import("../compiler/tests/dartc/test_config.dart");
21 #import("../client/tests/client/test_config.dart");
22
23
24 main() {
25 var startTime = new Date.now();
26 var optionsParser = new TestOptionsParser();
27 List<Map> configurations = optionsParser.parse(new Options().arguments);
28 if (configurations == null) return;
29
30 // Extract global options from first configuration.
31 var firstConf = configurations[0];
32 Map<String, RegExp> selectors = firstConf['selectors'];
33 var maxProcesses = firstConf['tasks'];
34 var progressIndicator = firstConf['progress'];
35 var verbose = firstConf['verbose'];
36 var printTiming = firstConf['time'];
37 var listTests = firstConf['list'];
38
39 var configurationIterator = configurations.iterator();
40 bool enqueueConfiguration(ProcessQueue queue) {
41 if (!configurationIterator.hasNext()) {
42 return false;
43 }
44
45 var conf = configurationIterator.next();
46 if (selectors.containsKey('samples')) {
47 queue.addTestSuite(new SamplesTestSuite(conf));
48 }
49 if (selectors.containsKey('standalone')) {
50 queue.addTestSuite(new StandaloneTestSuite(conf));
51 }
52 if (selectors.containsKey('corelib')) {
53 queue.addTestSuite(new CorelibTestSuite(conf));
54 }
55 if (selectors.containsKey('co19')) {
56 queue.addTestSuite(new Co19TestSuite(conf));
57 }
58 if (selectors.containsKey('language')) {
59 queue.addTestSuite(new LanguageTestSuite(conf));
60 }
61 if (selectors.containsKey('isolate')) {
62 queue.addTestSuite(new IsolateTestSuite(conf));
63 }
64 if (selectors.containsKey('stub-generator')) {
65 queue.addTestSuite(new StubGeneratorTestSuite(conf));
66 }
67 if (conf['component'] == 'dartc' && selectors.containsKey('dartc')) {
68 queue.addTestSuite(new ClientDartcTestSuite(conf));
69 }
70 if (conf['component'] == 'dartc' && selectors.containsKey('dartc')) {
71 queue.addTestSuite(new JUnitDartcTestSuite(conf));
72 }
73 if (selectors.containsKey('client')) {
74 queue.addTestSuite(new ClientTestSuite(conf));
75 }
76
77 return true;
78 }
79
80 // Start process queue.
81 var queue = new ProcessQueue(maxProcesses,
82 progressIndicator,
83 startTime,
84 printTiming,
85 enqueueConfiguration,
86 verbose: verbose,
87 listTests: listTests);
88 }
OLDNEW
« no previous file with comments | « no previous file | tools/test_wrapper.py » ('j') | tools/test_wrapper.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698