| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 var suffix = getExecutableSuffix(configuration['compiler']); | 176 var suffix = getExecutableSuffix(configuration['compiler']); |
| 177 switch (configuration['compiler']) { | 177 switch (configuration['compiler']) { |
| 178 case 'none': | 178 case 'none': |
| 179 if (useSdk) { | 179 if (useSdk) { |
| 180 return '$buildDir/dart-sdk/bin/dart$suffix'; | 180 return '$buildDir/dart-sdk/bin/dart$suffix'; |
| 181 } | 181 } |
| 182 return '$buildDir/dart$suffix'; | 182 return '$buildDir/dart$suffix'; |
| 183 case 'dartc': | 183 case 'dartc': |
| 184 return '$buildDir/analyzer/bin/dart_analyzer$suffix'; | 184 return '$buildDir/analyzer/bin/dart_analyzer$suffix'; |
| 185 case 'new_analyzer': | 185 case 'new_analyzer': |
| 186 var prefix = 'sdk/bin'; | 186 return 'sdk/bin/analyzer$suffix'; |
| 187 return '$prefix/analyzer$suffix'; | |
| 188 default: | 187 default: |
| 189 throw "Unknown executable for: ${configuration['compiler']}"; | 188 throw "Unknown executable for: ${configuration['compiler']}"; |
| 190 } | 189 } |
| 191 } | 190 } |
| 192 | 191 |
| 193 /** | 192 /** |
| 194 * The file name of the d8 executable. | 193 * The file name of the d8 executable. |
| 195 */ | 194 */ |
| 196 String get d8FileName { | 195 String get d8FileName { |
| 197 var suffix = getExecutableSuffix('d8'); | 196 var suffix = getExecutableSuffix('d8'); |
| (...skipping 1762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1960 * $pass tests are expected to pass | 1959 * $pass tests are expected to pass |
| 1961 * $failOk tests are expected to fail that we won't fix | 1960 * $failOk tests are expected to fail that we won't fix |
| 1962 * $fail tests are expected to fail that we should fix | 1961 * $fail tests are expected to fail that we should fix |
| 1963 * $crash tests are expected to crash that we should fix | 1962 * $crash tests are expected to crash that we should fix |
| 1964 * $timeout tests are allowed to timeout | 1963 * $timeout tests are allowed to timeout |
| 1965 * $compileErrorSkip tests are skipped on browsers due to compile-time error | 1964 * $compileErrorSkip tests are skipped on browsers due to compile-time error |
| 1966 """; | 1965 """; |
| 1967 print(report); | 1966 print(report); |
| 1968 } | 1967 } |
| 1969 } | 1968 } |
| OLD | NEW |