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

Side by Side Diff: tools/testing/dart/test_runner.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 | « tools/test-runtime.dart ('k') | no next file » | 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 TestInformation info; 71 TestInformation info;
72 72
73 TestCase(this.displayName, 73 TestCase(this.displayName,
74 this.commands, 74 this.commands,
75 this.configuration, 75 this.configuration,
76 this.completedHandler, 76 this.completedHandler,
77 this.expectedOutcomes, 77 this.expectedOutcomes,
78 [this.isNegative = false, 78 [this.isNegative = false,
79 this.info = null]) { 79 this.info = null]) {
80 if (!isNegative) { 80 if (!isNegative) {
81 // TODO(sigmund): dissallow NegativeTest once the test rename overhaul is 81 // TODO(sigmund): use only 'negative_test' (and not 'NegativeTest') once
82 // done. 82 // the test rename overhaul is done.
83 this.isNegative = displayName.contains("NegativeTest") 83 this.isNegative = displayName.contains("NegativeTest")
84 || displayName.contains("negative_test"); 84 || displayName.contains("negative_test");
85 } 85 }
86 86
87 // Special command handling. If a special command is specified 87 // Special command handling. If a special command is specified
88 // we have to completely rewrite the command that we are using. 88 // we have to completely rewrite the command that we are using.
89 // We generate a new command-line that is the special command 89 // We generate a new command-line that is the special command
90 // where we replace '@' with the original command. 90 // where we replace '@' with the original command.
91 var specialCommand = configuration['special-command']; 91 var specialCommand = configuration['special-command'];
92 if (!specialCommand.isEmpty()) { 92 if (!specialCommand.isEmpty()) {
(...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 // the developer doesn't waste his or her time trying to fix a bunch of 1162 // the developer doesn't waste his or her time trying to fix a bunch of
1163 // tests that appear to be broken but were actually just flakes that 1163 // tests that appear to be broken but were actually just flakes that
1164 // didn't get retried because there had already been one failure. 1164 // didn't get retried because there had already been one failure.
1165 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests; 1165 bool allowRetry = _MAX_FAILED_NO_RETRY > _progress.numFailedTests;
1166 new RunningProcess(test, allowRetry, this).start(); 1166 new RunningProcess(test, allowRetry, this).start();
1167 } 1167 }
1168 _numProcesses++; 1168 _numProcesses++;
1169 } 1169 }
1170 } 1170 }
1171 } 1171 }
OLDNEW
« no previous file with comments | « tools/test-runtime.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698