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

Side by Side Diff: tools/test.dart

Issue 10271014: test rename overhaul: step 14 - vm tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 | « runtime/tests/vm/vm_dart.status ('k') | tools/test-runtime.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 /** 6 /**
7 * This file is the entrypoint of the dart test suite. This suite is used 7 * This file is the entrypoint of the dart test suite. This suite is used
8 * to test: 8 * to test:
9 * 9 *
10 * 1. the dart vm 10 * 1. the dart vm
(...skipping 29 matching lines...) Expand all
40 * required by [StandardTestSuite]'s forDirectory constructor. 40 * required by [StandardTestSuite]'s forDirectory constructor.
41 * New test suites should follow this convention because it makes it much 41 * New test suites should follow this convention because it makes it much
42 * simpler to add them to test.dart. Existing test suites should be 42 * simpler to add them to test.dart. Existing test suites should be
43 * moved to here, if possible. 43 * moved to here, if possible.
44 */ 44 */
45 final TEST_SUITE_DIRECTORIES = const [ 45 final TEST_SUITE_DIRECTORIES = const [
46 'frog/tests/frog', 46 'frog/tests/frog',
47 'frog/tests/frog_native', 47 'frog/tests/frog_native',
48 'frog/tests/leg', 48 'frog/tests/leg',
49 'frog/tests/leg_only', 49 'frog/tests/leg_only',
50 'runtime/tests/vm',
50 'samples/tests/samples', 51 'samples/tests/samples',
51 'tests/benchmark_smoke', 52 'tests/benchmark_smoke',
52 'tests/corelib', 53 'tests/corelib',
53 'tests/dom', 54 'tests/dom',
54 'tests/html', 55 'tests/html',
55 'tests/isolate', 56 'tests/isolate',
56 'tests/json', 57 'tests/json',
57 'tests/language', 58 'tests/language',
58 'tests/lib', 59 'tests/lib',
59 'tests/standalone', 60 'tests/standalone',
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 bool enqueueConfiguration(ProcessQueue queue) { 98 bool enqueueConfiguration(ProcessQueue queue) {
98 if (!configurationIterator.hasNext()) { 99 if (!configurationIterator.hasNext()) {
99 return false; 100 return false;
100 } 101 }
101 102
102 var conf = configurationIterator.next(); 103 var conf = configurationIterator.next();
103 for (String key in selectors.getKeys()) { 104 for (String key in selectors.getKeys()) {
104 if (key == 'co19') { 105 if (key == 'co19') {
105 queue.addTestSuite(new Co19TestSuite(conf)); 106 queue.addTestSuite(new Co19TestSuite(conf));
106 } else if (conf['runtime'] == 'vm' && key == 'vm') { 107 } else if (conf['runtime'] == 'vm' && key == 'vm') {
108 // vm tests contain both cc tests (added here) and dart tests (added in
109 // [TEST_SUITE_DIRECTORIES]).
107 queue.addTestSuite(new VMTestSuite(conf)); 110 queue.addTestSuite(new VMTestSuite(conf));
108 queue.addTestSuite(new VMDartTestSuite(conf));
109 } else if (conf['compiler'] == 'dartc' && key == 'dartc') { 111 } else if (conf['compiler'] == 'dartc' && key == 'dartc') {
110 queue.addTestSuite(new ClientDartcTestSuite(conf)); 112 queue.addTestSuite(new ClientDartcTestSuite(conf));
111 } else if (conf['compiler'] == 'dartc' && key == 'dartc') { 113 } else if (conf['compiler'] == 'dartc' && key == 'dartc') {
112 queue.addTestSuite(new JUnitDartcTestSuite(conf)); 114 queue.addTestSuite(new JUnitDartcTestSuite(conf));
113 } else if (key == 'await') { 115 } else if (key == 'await') {
114 queue.addTestSuite(new AwaitTestSuite(conf)); 116 queue.addTestSuite(new AwaitTestSuite(conf));
115 } 117 }
116 } 118 }
117 119
118 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) { 120 for (final testSuiteDir in TEST_SUITE_DIRECTORIES) {
(...skipping 10 matching lines...) Expand all
129 // Start process queue. 131 // Start process queue.
130 var queue = new ProcessQueue(maxProcesses, 132 var queue = new ProcessQueue(maxProcesses,
131 progressIndicator, 133 progressIndicator,
132 startTime, 134 startTime,
133 printTiming, 135 printTiming,
134 enqueueConfiguration, 136 enqueueConfiguration,
135 verbose, 137 verbose,
136 listTests, 138 listTests,
137 keepGeneratedTests); 139 keepGeneratedTests);
138 } 140 }
OLDNEW
« no previous file with comments | « runtime/tests/vm/vm_dart.status ('k') | tools/test-runtime.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698