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

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

Issue 1126363003: Remove dart2dart support from testing scripts and status files (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address comments Created 5 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 | « 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 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after
1557 List<int> stdout, List<int> stderr, Duration time, 1557 List<int> stdout, List<int> stderr, Duration time,
1558 bool compilationSkipped) 1558 bool compilationSkipped)
1559 : super(command, exitCode, timedOut, stdout, stderr, time, 1559 : super(command, exitCode, timedOut, stdout, stderr, time,
1560 compilationSkipped, 0); 1560 compilationSkipped, 0);
1561 1561
1562 Expectation result(TestCase testCase) { 1562 Expectation result(TestCase testCase) {
1563 // Handle general crash/timeout detection. 1563 // Handle general crash/timeout detection.
1564 if (hasCrashed) return Expectation.CRASH; 1564 if (hasCrashed) return Expectation.CRASH;
1565 if (hasTimedOut) return Expectation.TIMEOUT; 1565 if (hasTimedOut) return Expectation.TIMEOUT;
1566 1566
1567 // Handle dart2js/dart2dart specific crash detection 1567 // Handle dart2js specific crash detection
1568 if (exitCode == DART2JS_EXITCODE_CRASH || 1568 if (exitCode == DART2JS_EXITCODE_CRASH ||
1569 exitCode == VmCommandOutputImpl.DART_VM_EXITCODE_COMPILE_TIME_ERROR || 1569 exitCode == VmCommandOutputImpl.DART_VM_EXITCODE_COMPILE_TIME_ERROR ||
1570 exitCode == VmCommandOutputImpl.DART_VM_EXITCODE_UNCAUGHT_EXCEPTION) { 1570 exitCode == VmCommandOutputImpl.DART_VM_EXITCODE_UNCAUGHT_EXCEPTION) {
1571 return Expectation.CRASH; 1571 return Expectation.CRASH;
1572 } 1572 }
1573 1573
1574 // Multitests are handled specially 1574 // Multitests are handled specially
1575 if (testCase.expectCompileError) { 1575 if (testCase.expectCompileError) {
1576 // Nonzero exit code of the compiler means compilation failed 1576 // Nonzero exit code of the compiler means compilation failed
1577 // TODO(kustermann): Do we have a special exit code in that case??? 1577 // TODO(kustermann): Do we have a special exit code in that case???
(...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after
2960 } 2960 }
2961 } 2961 }
2962 2962
2963 void eventAllTestsDone() { 2963 void eventAllTestsDone() {
2964 for (var listener in _eventListener) { 2964 for (var listener in _eventListener) {
2965 listener.allDone(); 2965 listener.allDone();
2966 } 2966 }
2967 _allDone(); 2967 _allDone();
2968 } 2968 }
2969 } 2969 }
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