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

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

Issue 18174010: Test running changes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 | « tests/language/language_analyzer.status ('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 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 842
843 // Read the returned list of errors and stuff them away. 843 // Read the returned list of errors and stuff them away.
844 var stderrLines = decodeUtf8(super.stderr).split("\n"); 844 var stderrLines = decodeUtf8(super.stderr).split("\n");
845 for (String line in stderrLines) { 845 for (String line in stderrLines) {
846 if (line.length == 0) continue; 846 if (line.length == 0) continue;
847 List<String> fields = splitMachineError(line); 847 List<String> fields = splitMachineError(line);
848 if (fields[ERROR_LEVEL] == 'ERROR') { 848 if (fields[ERROR_LEVEL] == 'ERROR') {
849 errors.add(fields[FORMATTED_ERROR]); 849 errors.add(fields[FORMATTED_ERROR]);
850 } else if (fields[ERROR_LEVEL] == 'WARNING') { 850 } else if (fields[ERROR_LEVEL] == 'WARNING') {
851 // We only care about testing Static type warnings 851 // We only care about testing Static type warnings
852 // ignore all others 852 // ignore all others
kustermann 2013/07/01 06:24:17 This comment seems to be wrong now. Is there a re
scheglov 2013/07/01 07:04:30 Thank you, fixed.
853 if (fields[ERROR_TYPE] == 'STATIC_TYPE' || fields[ERROR_TYPE] == 'STATIC _TYPE_WARNING') { 853 if (fields[ERROR_TYPE] == 'STATIC_TYPE' ||
854 fields[ERROR_TYPE] == 'STATIC_WARNING' ||
855 fields[ERROR_TYPE] == 'STATIC_TYPE_WARNING') {
854 staticWarnings.add(fields[FORMATTED_ERROR]); 856 staticWarnings.add(fields[FORMATTED_ERROR]);
855 } 857 }
856 } 858 }
857 // OK to Skip error output that doesn't match the machine format 859 // OK to Skip error output that doesn't match the machine format
858 } 860 }
859 if (testCase.info != null 861 if (testCase.info != null
860 && testCase.info.optionsFromFile['isMultitest']) { 862 && testCase.info.optionsFromFile['isMultitest']) {
861 return _didMultitestFail(errors, staticWarnings); 863 return _didMultitestFail(errors, staticWarnings);
862 } 864 }
863 return _didStandardTestFail(errors, staticWarnings); 865 return _didStandardTestFail(errors, staticWarnings);
(...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after
1913 } 1915 }
1914 } 1916 }
1915 1917
1916 void eventAllTestsDone() { 1918 void eventAllTestsDone() {
1917 for (var listener in _eventListener) { 1919 for (var listener in _eventListener) {
1918 listener.allDone(); 1920 listener.allDone();
1919 } 1921 }
1920 } 1922 }
1921 } 1923 }
1922 1924
OLDNEW
« no previous file with comments | « tests/language/language_analyzer.status ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698