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

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

Issue 10031029: Double the timeout for JUnit tests in dartc (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | « no previous file | 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 enumerating and preparing tests. 6 * Classes and methods for enumerating and preparing tests.
7 * 7 *
8 * This library includes: 8 * This library includes:
9 * 9 *
10 * - Creating tests by listing all the Dart files in certain directories, 10 * - Creating tests by listing all the Dart files in certain directories,
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1121 void createTest(successIgnored) { 1121 void createTest(successIgnored) {
1122 var sdkDir = "$buildDir/dart-sdk".trim(); 1122 var sdkDir = "$buildDir/dart-sdk".trim();
1123 List<String> args = <String>[ 1123 List<String> args = <String>[
1124 '-ea', 1124 '-ea',
1125 '-classpath', classPath, 1125 '-classpath', classPath,
1126 '-Dcom.google.dart.sdk=$sdkDir', 1126 '-Dcom.google.dart.sdk=$sdkDir',
1127 '-Dcom.google.dart.corelib.SharedTests.test_py=' + 1127 '-Dcom.google.dart.corelib.SharedTests.test_py=' +
1128 dartDir + '/tools/test.py', 1128 dartDir + '/tools/test.py',
1129 'org.junit.runner.JUnitCore']; 1129 'org.junit.runner.JUnitCore'];
1130 args.addAll(testClasses); 1130 args.addAll(testClasses);
1131 1131
1132 // Lengthen the timeout for JUnit tests. It is normal for them
1133 // to run for a few minutes.
1134 Map updatedConfiguration = new Map();
Bill Hesse 2012/04/10 10:50:56 Why not new Map.from(configuration)?
1135 configuration.forEach((key, value) {
1136 updatedConfiguration[key] = value;
1137 });
1138 updatedConfiguration['timeout'] *= 2;
1132 doTest(new TestCase(suiteName, 1139 doTest(new TestCase(suiteName,
1133 [new Command('java', args)], 1140 [new Command('java', args)],
1134 configuration, 1141 updatedConfiguration,
1135 completeHandler, 1142 completeHandler,
1136 new Set<String>.from([PASS]))); 1143 new Set<String>.from([PASS])));
1137 doDone(); 1144 doDone();
1138 } 1145 }
1139 1146
1140 void completeHandler(TestCase testCase) { 1147 void completeHandler(TestCase testCase) {
1141 } 1148 }
1142 1149
1143 void computeClassPath() { 1150 void computeClassPath() {
1144 classPath = Strings.join( 1151 classPath = Strings.join(
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 * $noCrash tests are expected to be flaky but not crash 1357 * $noCrash tests are expected to be flaky but not crash
1351 * $pass tests are expected to pass 1358 * $pass tests are expected to pass
1352 * $failOk tests are expected to fail that we won't fix 1359 * $failOk tests are expected to fail that we won't fix
1353 * $fail tests are expected to fail that we should fix 1360 * $fail tests are expected to fail that we should fix
1354 * $crash tests are expected to crash that we should fix 1361 * $crash tests are expected to crash that we should fix
1355 * $timeout tests are allowed to timeout 1362 * $timeout tests are allowed to timeout
1356 """; 1363 """;
1357 print(report); 1364 print(report);
1358 } 1365 }
1359 } 1366 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698