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

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

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

Powered by Google App Engine
This is Rietveld 408576698