| OLD | NEW |
| 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 Loading... |
| 1121 completeHandler, | 1121 completeHandler, |
| 1122 new Set<String>.from([PASS]))); | 1122 new Set<String>.from([PASS]))); |
| 1123 doDone(); | 1123 doDone(); |
| 1124 } | 1124 } |
| 1125 | 1125 |
| 1126 void completeHandler(TestCase testCase) { | 1126 void completeHandler(TestCase testCase) { |
| 1127 } | 1127 } |
| 1128 | 1128 |
| 1129 void computeClassPath() { | 1129 void computeClassPath() { |
| 1130 classPath = Strings.join( | 1130 classPath = Strings.join( |
| 1131 ['$buildDir/analyzer/util/analyzer/dart_analyzer.jar', | 1131 ['$buildDir/compiler/lib/dartc.jar', |
| 1132 '$buildDir/analyzer/dartc-analyzer-tests.jar', | 1132 '$buildDir/compiler-tests.jar', |
| 1133 '$buildDir/closure_out/compiler.jar', |
| 1133 // Third party libraries. | 1134 // Third party libraries. |
| 1134 '$dartDir/third_party/args4j/2.0.12/args4j-2.0.12.jar', | 1135 '$dartDir/third_party/args4j/2.0.12/args4j-2.0.12.jar', |
| 1135 '$dartDir/third_party/guava/r09/guava-r09.jar', | 1136 '$dartDir/third_party/guava/r09/guava-r09.jar', |
| 1136 '$dartDir/third_party/rhino/1_7R3/js.jar', | 1137 '$dartDir/third_party/rhino/1_7R3/js.jar', |
| 1137 '$dartDir/third_party/hamcrest/v1_3/hamcrest-core-1.3.0RC2.jar', | 1138 '$dartDir/third_party/hamcrest/v1_3/hamcrest-core-1.3.0RC2.jar', |
| 1138 '$dartDir/third_party/hamcrest/v1_3/hamcrest-generator-1.3.0RC2.jar', | 1139 '$dartDir/third_party/hamcrest/v1_3/hamcrest-generator-1.3.0RC2.jar', |
| 1139 '$dartDir/third_party/hamcrest/v1_3/hamcrest-integration-1.3.0RC2.jar', | 1140 '$dartDir/third_party/hamcrest/v1_3/hamcrest-integration-1.3.0RC2.jar', |
| 1140 '$dartDir/third_party/hamcrest/v1_3/hamcrest-library-1.3.0RC2.jar', | 1141 '$dartDir/third_party/hamcrest/v1_3/hamcrest-library-1.3.0RC2.jar', |
| 1141 '$dartDir/third_party/junit/v4_8_2/junit.jar'], | 1142 '$dartDir/third_party/junit/v4_8_2/junit.jar'], |
| 1142 ':'); // Path separator. | 1143 ':'); // Path separator. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1186 } | 1187 } |
| 1187 return ''; | 1188 return ''; |
| 1188 } | 1189 } |
| 1189 | 1190 |
| 1190 static String executableName(Map configuration) { | 1191 static String executableName(Map configuration) { |
| 1191 String suffix = executableSuffix(configuration['compiler']); | 1192 String suffix = executableSuffix(configuration['compiler']); |
| 1192 switch (configuration['compiler']) { | 1193 switch (configuration['compiler']) { |
| 1193 case 'none': | 1194 case 'none': |
| 1194 return 'dart$suffix'; | 1195 return 'dart$suffix'; |
| 1195 case 'dartc': | 1196 case 'dartc': |
| 1196 return 'analyzer/bin/dart_analyzer$suffix'; | 1197 return 'compiler/bin/dartc$suffix'; |
| 1197 case 'frog': | 1198 case 'frog': |
| 1198 case 'dart2js': | 1199 case 'dart2js': |
| 1199 return 'frog/bin/frog$suffix'; | 1200 return 'frog/bin/frog$suffix'; |
| 1200 case 'frogsh': | 1201 case 'frogsh': |
| 1201 return 'frog/bin/frogsh$suffix'; | 1202 return 'frog/bin/frogsh$suffix'; |
| 1202 default: | 1203 default: |
| 1203 throw "Unknown executable for: ${configuration['compiler']}"; | 1204 throw "Unknown executable for: ${configuration['compiler']}"; |
| 1204 } | 1205 } |
| 1205 } | 1206 } |
| 1206 | 1207 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1335 * $noCrash tests are expected to be flaky but not crash | 1336 * $noCrash tests are expected to be flaky but not crash |
| 1336 * $pass tests are expected to pass | 1337 * $pass tests are expected to pass |
| 1337 * $failOk tests are expected to fail that we won't fix | 1338 * $failOk tests are expected to fail that we won't fix |
| 1338 * $fail tests are expected to fail that we should fix | 1339 * $fail tests are expected to fail that we should fix |
| 1339 * $crash tests are expected to crash that we should fix | 1340 * $crash tests are expected to crash that we should fix |
| 1340 * $timeout tests are allowed to timeout | 1341 * $timeout tests are allowed to timeout |
| 1341 """; | 1342 """; |
| 1342 print(report); | 1343 print(report); |
| 1343 } | 1344 } |
| 1344 } | 1345 } |
| OLD | NEW |