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

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

Issue 10091038: Revert "Renamed the 'dartc' launch script to 'dart_analyzer' and adds it to dart-sdk" (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 | « tools/create_sdk.py ('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 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 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 completeHandler, 1164 completeHandler,
1165 new Set<String>.from([PASS]))); 1165 new Set<String>.from([PASS])));
1166 doDone(); 1166 doDone();
1167 } 1167 }
1168 1168
1169 void completeHandler(TestCase testCase) { 1169 void completeHandler(TestCase testCase) {
1170 } 1170 }
1171 1171
1172 void computeClassPath() { 1172 void computeClassPath() {
1173 classPath = Strings.join( 1173 classPath = Strings.join(
1174 ['$buildDir/analyzer/util/analyzer/dart_analyzer.jar', 1174 ['$buildDir/compiler/lib/dartc.jar',
1175 '$buildDir/analyzer/dart_analyzer_tests.jar', 1175 '$buildDir/compiler-tests.jar',
1176 '$buildDir/closure_out/compiler.jar',
1176 // Third party libraries. 1177 // Third party libraries.
1177 '$dartDir/third_party/args4j/2.0.12/args4j-2.0.12.jar', 1178 '$dartDir/third_party/args4j/2.0.12/args4j-2.0.12.jar',
1178 '$dartDir/third_party/guava/r09/guava-r09.jar', 1179 '$dartDir/third_party/guava/r09/guava-r09.jar',
1179 '$dartDir/third_party/rhino/1_7R3/js.jar', 1180 '$dartDir/third_party/rhino/1_7R3/js.jar',
1180 '$dartDir/third_party/hamcrest/v1_3/hamcrest-core-1.3.0RC2.jar', 1181 '$dartDir/third_party/hamcrest/v1_3/hamcrest-core-1.3.0RC2.jar',
1181 '$dartDir/third_party/hamcrest/v1_3/hamcrest-generator-1.3.0RC2.jar', 1182 '$dartDir/third_party/hamcrest/v1_3/hamcrest-generator-1.3.0RC2.jar',
1182 '$dartDir/third_party/hamcrest/v1_3/hamcrest-integration-1.3.0RC2.jar', 1183 '$dartDir/third_party/hamcrest/v1_3/hamcrest-integration-1.3.0RC2.jar',
1183 '$dartDir/third_party/hamcrest/v1_3/hamcrest-library-1.3.0RC2.jar', 1184 '$dartDir/third_party/hamcrest/v1_3/hamcrest-library-1.3.0RC2.jar',
1184 '$dartDir/third_party/junit/v4_8_2/junit.jar'], 1185 '$dartDir/third_party/junit/v4_8_2/junit.jar'],
1185 ':'); // Path separator. 1186 ':'); // Path separator.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1229 } 1230 }
1230 return ''; 1231 return '';
1231 } 1232 }
1232 1233
1233 static String executableName(Map configuration) { 1234 static String executableName(Map configuration) {
1234 String suffix = executableSuffix(configuration['compiler']); 1235 String suffix = executableSuffix(configuration['compiler']);
1235 switch (configuration['compiler']) { 1236 switch (configuration['compiler']) {
1236 case 'none': 1237 case 'none':
1237 return 'dart$suffix'; 1238 return 'dart$suffix';
1238 case 'dartc': 1239 case 'dartc':
1239 return 'analyzer/bin/dart_analyzer$suffix'; 1240 return 'compiler/bin/dartc$suffix';
1240 case 'frog': 1241 case 'frog':
1241 case 'dart2js': 1242 case 'dart2js':
1242 return 'frog/bin/frog$suffix'; 1243 return 'frog/bin/frog$suffix';
1243 case 'frogsh': 1244 case 'frogsh':
1244 return 'frog/bin/frogsh$suffix'; 1245 return 'frog/bin/frogsh$suffix';
1245 default: 1246 default:
1246 throw "Unknown executable for: ${configuration['compiler']}"; 1247 throw "Unknown executable for: ${configuration['compiler']}";
1247 } 1248 }
1248 } 1249 }
1249 1250
1250 static String compilerName(Map configuration) { 1251 static String compilerName(Map configuration) {
1251 String suffix = executableSuffix(configuration['compiler']); 1252 String suffix = executableSuffix(configuration['compiler']);
1252 switch (configuration['compiler']) { 1253 switch (configuration['compiler']) {
1253 case 'dartc': 1254 case 'dartc':
1254 return 'analyzer/bin/dart_analyzer$suffix'; 1255 return 'compiler/bin/dartc$suffix';
1255 case 'frog': 1256 case 'frog':
1256 case 'dart2js': 1257 case 'dart2js':
1257 return 'frog/bin/frog$suffix'; 1258 return 'frog/bin/frog$suffix';
1258 default: 1259 default:
1259 throw "Unknown compiler for: ${configuration['compiler']}"; 1260 throw "Unknown compiler for: ${configuration['compiler']}";
1260 } 1261 }
1261 } 1262 }
1262 1263
1263 static String dartShellFileName(Map configuration) { 1264 static String dartShellFileName(Map configuration) {
1264 var name = '${buildDir(configuration)}/${executableName(configuration)}'; 1265 var name = '${buildDir(configuration)}/${executableName(configuration)}';
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1379 * $noCrash tests are expected to be flaky but not crash 1380 * $noCrash tests are expected to be flaky but not crash
1380 * $pass tests are expected to pass 1381 * $pass tests are expected to pass
1381 * $failOk tests are expected to fail that we won't fix 1382 * $failOk tests are expected to fail that we won't fix
1382 * $fail tests are expected to fail that we should fix 1383 * $fail tests are expected to fail that we should fix
1383 * $crash tests are expected to crash that we should fix 1384 * $crash tests are expected to crash that we should fix
1384 * $timeout tests are allowed to timeout 1385 * $timeout tests are allowed to timeout
1385 """; 1386 """;
1386 print(report); 1387 print(report);
1387 } 1388 }
1388 } 1389 }
OLDNEW
« no previous file with comments | « tools/create_sdk.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698