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

Side by Side Diff: tools/test.dart

Issue 12776004: Add support for the new analyzer to the testing scripts (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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
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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 maxBrowserProcesses = 1; 137 maxBrowserProcesses = 1;
138 } 138 }
139 139
140 for (String key in selectors.keys) { 140 for (String key in selectors.keys) {
141 if (key == 'co19') { 141 if (key == 'co19') {
142 testSuites.add(new Co19TestSuite(conf)); 142 testSuites.add(new Co19TestSuite(conf));
143 } else if (conf['runtime'] == 'vm' && key == 'vm') { 143 } else if (conf['runtime'] == 'vm' && key == 'vm') {
144 // vm tests contain both cc tests (added here) and dart tests (added in 144 // vm tests contain both cc tests (added here) and dart tests (added in
145 // [TEST_SUITE_DIRECTORIES]). 145 // [TEST_SUITE_DIRECTORIES]).
146 testSuites.add(new VMTestSuite(conf)); 146 testSuites.add(new VMTestSuite(conf));
147 } else if (conf['analyzer'] && key == 'dartc') {
148 testSuites.add(new SamplesDartcTestSuite(conf));
149 testSuites.add(new JUnitDartcTestSuite(conf));
kustermann 2013/03/12 17:55:23 Why do we add these TestSuite's in case of the old
ricow1 2013/03/12 18:06:06 we do add them for the new one, but we actually do
147 } else if (conf['compiler'] == 'dartc') { 150 } else if (conf['compiler'] == 'dartc') {
148 if (key == 'dartc') { 151 if (key == 'dartc') {
149 testSuites.add(new SamplesDartcTestSuite(conf)); 152 testSuites.add(new SamplesDartcTestSuite(conf));
150 testSuites.add(new JUnitDartcTestSuite(conf)); 153 testSuites.add(new JUnitDartcTestSuite(conf));
151 } 154 }
152 if (key == 'analyze_library') { 155 if (key == 'analyze_library') {
153 testSuites.add(new AnalyzeLibraryTestSuite(conf)); 156 testSuites.add(new AnalyzeLibraryTestSuite(conf));
154 } 157 }
155 } 158 }
156 } 159 }
(...skipping 20 matching lines...) Expand all
177 new ProcessQueue(maxProcesses, 180 new ProcessQueue(maxProcesses,
178 maxBrowserProcesses, 181 maxBrowserProcesses,
179 progressIndicator, 182 progressIndicator,
180 startTime, 183 startTime,
181 printTiming, 184 printTiming,
182 testSuites, 185 testSuites,
183 allTestsFinished, 186 allTestsFinished,
184 verbose, 187 verbose,
185 listTests); 188 listTests);
186 } 189 }
OLDNEW
« no previous file with comments | « no previous file | tools/testing/dart/test_options.dart » ('j') | tools/testing/dart/test_options.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698