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

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: Updated 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
« tools/create_sdk.py ('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 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 completeHandler, 1075 completeHandler,
1076 new Set<String>.from([PASS]))); 1076 new Set<String>.from([PASS])));
1077 doDone(); 1077 doDone();
1078 } 1078 }
1079 1079
1080 void completeHandler(TestCase testCase) { 1080 void completeHandler(TestCase testCase) {
1081 } 1081 }
1082 1082
1083 void computeClassPath() { 1083 void computeClassPath() {
1084 classPath = Strings.join( 1084 classPath = Strings.join(
1085 ['$buildDir/compiler/lib/dartc.jar', 1085 ['$buildDir/analysis/util/analysis/dart-analysis.jar',
1086 '$buildDir/compiler-tests.jar', 1086 '$buildDir/analysis/dartc-analysis-tests.jar',
1087 '$buildDir/closure_out/compiler.jar',
1088 // Third party libraries. 1087 // Third party libraries.
1089 '$dartDir/third_party/args4j/2.0.12/args4j-2.0.12.jar', 1088 '$dartDir/third_party/args4j/2.0.12/args4j-2.0.12.jar',
1090 '$dartDir/third_party/guava/r09/guava-r09.jar', 1089 '$dartDir/third_party/guava/r09/guava-r09.jar',
1091 '$dartDir/third_party/rhino/1_7R3/js.jar', 1090 '$dartDir/third_party/rhino/1_7R3/js.jar',
1092 '$dartDir/third_party/hamcrest/v1_3/hamcrest-core-1.3.0RC2.jar', 1091 '$dartDir/third_party/hamcrest/v1_3/hamcrest-core-1.3.0RC2.jar',
1093 '$dartDir/third_party/hamcrest/v1_3/hamcrest-generator-1.3.0RC2.jar', 1092 '$dartDir/third_party/hamcrest/v1_3/hamcrest-generator-1.3.0RC2.jar',
1094 '$dartDir/third_party/hamcrest/v1_3/hamcrest-integration-1.3.0RC2.jar', 1093 '$dartDir/third_party/hamcrest/v1_3/hamcrest-integration-1.3.0RC2.jar',
1095 '$dartDir/third_party/hamcrest/v1_3/hamcrest-library-1.3.0RC2.jar', 1094 '$dartDir/third_party/hamcrest/v1_3/hamcrest-library-1.3.0RC2.jar',
1096 '$dartDir/third_party/junit/v4_8_2/junit.jar'], 1095 '$dartDir/third_party/junit/v4_8_2/junit.jar'],
1097 ':'); // Path separator. 1096 ':'); // Path separator.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 } 1140 }
1142 return ''; 1141 return '';
1143 } 1142 }
1144 1143
1145 static String executableName(Map configuration) { 1144 static String executableName(Map configuration) {
1146 String suffix = executableSuffix(configuration['compiler']); 1145 String suffix = executableSuffix(configuration['compiler']);
1147 switch (configuration['compiler']) { 1146 switch (configuration['compiler']) {
1148 case 'none': 1147 case 'none':
1149 return 'dart$suffix'; 1148 return 'dart$suffix';
1150 case 'dartc': 1149 case 'dartc':
1151 return 'compiler/bin/dartc$suffix'; 1150 return 'analysis/bin/dart-analysis$suffix';
1152 case 'frog': 1151 case 'frog':
1153 case 'dart2js': 1152 case 'dart2js':
1154 return 'frog/bin/frog$suffix'; 1153 return 'frog/bin/frog$suffix';
1155 case 'frogsh': 1154 case 'frogsh':
1156 return 'frog/bin/frogsh$suffix'; 1155 return 'frog/bin/frogsh$suffix';
1157 default: 1156 default:
1158 throw "Unknown executable for: ${configuration['compiler']}"; 1157 throw "Unknown executable for: ${configuration['compiler']}";
1159 } 1158 }
1160 } 1159 }
1161 1160
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 * $noCrash tests are expected to be flaky but not crash 1289 * $noCrash tests are expected to be flaky but not crash
1291 * $pass tests are expected to pass 1290 * $pass tests are expected to pass
1292 * $failOk tests are expected to fail that we won't fix 1291 * $failOk tests are expected to fail that we won't fix
1293 * $fail tests are expected to fail that we should fix 1292 * $fail tests are expected to fail that we should fix
1294 * $crash tests are expected to crash that we should fix 1293 * $crash tests are expected to crash that we should fix
1295 * $timeout tests are allowed to timeout 1294 * $timeout tests are allowed to timeout
1296 """; 1295 """;
1297 print(report); 1296 print(report);
1298 } 1297 }
1299 } 1298 }
OLDNEW
« tools/create_sdk.py ('K') | « tools/create_sdk.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698