| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 String suffix = executableBinarySuffix; | 201 String suffix = executableBinarySuffix; |
| 202 dartExecutable = useSdk | 202 dartExecutable = useSdk |
| 203 ? '$buildDir/dart-sdk/bin/dart$suffix' | 203 ? '$buildDir/dart-sdk/bin/dart$suffix' |
| 204 : '$buildDir/dart$suffix'; | 204 : '$buildDir/dart$suffix'; |
| 205 } | 205 } |
| 206 | 206 |
| 207 TestUtils.ensureExists(dartExecutable, configuration); | 207 TestUtils.ensureExists(dartExecutable, configuration); |
| 208 return dartExecutable; | 208 return dartExecutable; |
| 209 } | 209 } |
| 210 | 210 |
| 211 /// Returns the name of the flutter engine executable. |
| 212 String get flutterEngineBinaryFileName { |
| 213 // Controlled by user with the option "--flutter". |
| 214 String flutterExecutable = configuration['flutter']; |
| 215 TestUtils.ensureExists(flutterExecutable, configuration); |
| 216 return flutterExecutable; |
| 217 } |
| 218 |
| 211 String get dartVmNooptBinaryFileName { | 219 String get dartVmNooptBinaryFileName { |
| 212 // Controlled by user with the option "--dart". | 220 // Controlled by user with the option "--dart". |
| 213 String dartExecutable = configuration['dart']; | 221 String dartExecutable = configuration['dart']; |
| 214 | 222 |
| 215 if (dartExecutable == '') { | 223 if (dartExecutable == '') { |
| 216 String suffix = executableBinarySuffix; | 224 String suffix = executableBinarySuffix; |
| 217 dartExecutable = useSdk | 225 dartExecutable = useSdk |
| 218 ? '$buildDir/dart-sdk/bin/dart_noopt$suffix' | 226 ? '$buildDir/dart-sdk/bin/dart_noopt$suffix' |
| 219 : '$buildDir/dart_noopt$suffix'; | 227 : '$buildDir/dart_noopt$suffix'; |
| 220 } | 228 } |
| (...skipping 2316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2537 } | 2545 } |
| 2538 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { | 2546 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { |
| 2539 ++shortNameCounter; | 2547 ++shortNameCounter; |
| 2540 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); | 2548 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); |
| 2541 path = "short${shortNameCounter}_$pathEnd"; | 2549 path = "short${shortNameCounter}_$pathEnd"; |
| 2542 } | 2550 } |
| 2543 } | 2551 } |
| 2544 return path; | 2552 return path; |
| 2545 } | 2553 } |
| 2546 } | 2554 } |
| OLD | NEW |