| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 return '$buildDir/dart$suffix'; | 181 return '$buildDir/dart$suffix'; |
| 182 case 'dartc': | 182 case 'dartc': |
| 183 return '$buildDir/analyzer/bin/dart_analyzer$suffix'; | 183 return '$buildDir/analyzer/bin/dart_analyzer$suffix'; |
| 184 case 'dartanalyzer': | 184 case 'dartanalyzer': |
| 185 return 'sdk/bin/dartanalyzer_developer$suffix'; | 185 return 'sdk/bin/dartanalyzer_developer$suffix'; |
| 186 default: | 186 default: |
| 187 throw "Unknown executable for: ${configuration['compiler']}"; | 187 throw "Unknown executable for: ${configuration['compiler']}"; |
| 188 } | 188 } |
| 189 } | 189 } |
| 190 | 190 |
| 191 /** | |
| 192 * The file name of the d8 executable. | |
| 193 */ | |
| 194 String get d8FileName { | |
| 195 var suffix = getExecutableSuffix('d8'); | |
| 196 var d8 = '$buildDir/d8$suffix'; | |
| 197 TestUtils.ensureExists(d8, configuration); | |
| 198 return d8; | |
| 199 } | |
| 200 | |
| 201 String get dartShellFileName { | 191 String get dartShellFileName { |
| 202 var name = configuration['dart']; | 192 var name = configuration['dart']; |
| 203 if (name == '') { | 193 if (name == '') { |
| 204 name = executablePath; | 194 name = executablePath; |
| 205 } | 195 } |
| 206 | 196 |
| 207 TestUtils.ensureExists(name, configuration); | 197 TestUtils.ensureExists(name, configuration); |
| 208 return name; | 198 return name; |
| 209 } | 199 } |
| 210 | 200 |
| 201 String get d8FileName { |
| 202 var suffix = getExecutableSuffix('d8'); |
| 203 var d8Dir = '${TestUtils.dartDir()}/third_party/d8'; |
| 204 var d8 = '$d8Dir/${Platform.operatingSystem}/d8$suffix'; |
| 205 TestUtils.ensureExists(d8, configuration); |
| 206 return d8; |
| 207 } |
| 208 |
| 211 String get jsShellFileName { | 209 String get jsShellFileName { |
| 212 var executableSuffix = getExecutableSuffix('jsshell'); | 210 var executableSuffix = getExecutableSuffix('jsshell'); |
| 213 var executable = 'jsshell$executableSuffix'; | 211 var executable = 'jsshell$executableSuffix'; |
| 214 var jsshellDir = '${TestUtils.dartDir()}/tools/testing/bin'; | 212 var jsshellDir = '${TestUtils.dartDir()}/tools/testing/bin'; |
| 215 return '$jsshellDir/$executable'; | 213 return '$jsshellDir/$executable'; |
| 216 } | 214 } |
| 217 | 215 |
| 218 /** | 216 /** |
| 219 * The file name of the Dart VM executable. | 217 * The file name of the Dart VM executable. |
| 220 */ | 218 */ |
| (...skipping 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1925 * $pass tests are expected to pass | 1923 * $pass tests are expected to pass |
| 1926 * $failOk tests are expected to fail that we won't fix | 1924 * $failOk tests are expected to fail that we won't fix |
| 1927 * $fail tests are expected to fail that we should fix | 1925 * $fail tests are expected to fail that we should fix |
| 1928 * $crash tests are expected to crash that we should fix | 1926 * $crash tests are expected to crash that we should fix |
| 1929 * $timeout tests are allowed to timeout | 1927 * $timeout tests are allowed to timeout |
| 1930 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 1928 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 1931 """; | 1929 """; |
| 1932 print(report); | 1930 print(report); |
| 1933 } | 1931 } |
| 1934 } | 1932 } |
| OLD | NEW |