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

Side by Side Diff: tools/testing/dart/test_runner.dart

Issue 12475004: Add dart analyzer test suite 'analyze_library' that fails if we (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased 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
« no previous file with comments | « tools/testing/dart/test_options.dart ('k') | tools/testing/dart/test_suite.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 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Classes and methods for executing tests. 6 * Classes and methods for executing tests.
7 * 7 *
8 * This module includes: 8 * This module includes:
9 * - Managing parallel execution of tests, including timeout checks. 9 * - Managing parallel execution of tests, including timeout checks.
10 * - Evaluating the output of each test as pass/fail/crash/timeout. 10 * - Evaluating the output of each test as pass/fail/crash/timeout.
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1194 while (stream.readLine() != null) { 1194 while (stream.readLine() != null) {
1195 // Do nothing. 1195 // Do nothing.
1196 } 1196 }
1197 return; 1197 return;
1198 } 1198 }
1199 // Otherwise, process output and call _reportResult() when done. 1199 // Otherwise, process output and call _reportResult() when done.
1200 var line = stream.readLine(); 1200 var line = stream.readLine();
1201 while (line != null) { 1201 while (line != null) {
1202 if (line.startsWith('>>> TEST')) { 1202 if (line.startsWith('>>> TEST')) {
1203 _status = line; 1203 _status = line;
1204 } else if (line.startsWith('>>> BATCH START')) { 1204 } else if (line.startsWith('>>> BATCH')) {
1205 // ignore 1205 // ignore
1206 } else if (line.startsWith('>>> ')) { 1206 } else if (line.startsWith('>>> ')) {
1207 throw new Exception('Unexpected command from dartc batch runner.'); 1207 throw new Exception('Unexpected command from dartc batch runner.');
1208 } else { 1208 } else {
1209 buffer.addAll(encodeUtf8(line)); 1209 buffer.addAll(encodeUtf8(line));
1210 buffer.addAll("\n".charCodes); 1210 buffer.addAll("\n".charCodes);
1211 } 1211 }
1212 line = stream.readLine(); 1212 line = stream.readLine();
1213 } 1213 }
1214 if (_status != null) { 1214 if (_status != null) {
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
1746 completer.complete(testCase); 1746 completer.complete(testCase);
1747 } 1747 }
1748 }); 1748 });
1749 } 1749 }
1750 runCommand(); 1750 runCommand();
1751 1751
1752 return completer.future; 1752 return completer.future;
1753 } 1753 }
1754 } 1754 }
1755 1755
OLDNEW
« no previous file with comments | « tools/testing/dart/test_options.dart ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698