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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 } | 209 } |
210 | 210 |
211 /// Returns the name of the flutter engine executable. | 211 /// Returns the name of the flutter engine executable. |
212 String get flutterEngineBinaryFileName { | 212 String get flutterEngineBinaryFileName { |
213 // Controlled by user with the option "--flutter". | 213 // Controlled by user with the option "--flutter". |
214 String flutterExecutable = configuration['flutter']; | 214 String flutterExecutable = configuration['flutter']; |
215 TestUtils.ensureExists(flutterExecutable, configuration); | 215 TestUtils.ensureExists(flutterExecutable, configuration); |
216 return flutterExecutable; | 216 return flutterExecutable; |
217 } | 217 } |
218 | 218 |
219 String get dartVmNooptBinaryFileName { | |
220 // Controlled by user with the option "--dart". | |
221 String dartExecutable = configuration['dart']; | |
222 | |
223 if (dartExecutable == '') { | |
224 String suffix = executableBinarySuffix; | |
225 dartExecutable = useSdk | |
226 ? '$buildDir/dart-sdk/bin/dart_noopt$suffix' | |
227 : '$buildDir/dart_noopt$suffix'; | |
228 } | |
229 | |
230 TestUtils.ensureExists(dartExecutable, configuration); | |
231 return dartExecutable; | |
232 } | |
233 | |
234 String get dartPrecompiledBinaryFileName { | 219 String get dartPrecompiledBinaryFileName { |
235 // Controlled by user with the option "--dart_precompiled". | 220 // Controlled by user with the option "--dart_precompiled". |
236 String dartExecutable = configuration['dart_precompiled']; | 221 String dartExecutable = configuration['dart_precompiled']; |
237 | 222 |
238 if (dartExecutable == null || dartExecutable == '') { | 223 if (dartExecutable == null || dartExecutable == '') { |
239 String suffix = executableBinarySuffix; | 224 String suffix = executableBinarySuffix; |
240 dartExecutable = '$buildDir/dart_precompiled_runtime$suffix'; | 225 dartExecutable = '$buildDir/dart_precompiled_runtime$suffix'; |
241 } | 226 } |
242 | 227 |
243 TestUtils.ensureExists(dartExecutable, configuration); | 228 TestUtils.ensureExists(dartExecutable, configuration); |
(...skipping 2301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2545 } | 2530 } |
2546 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { | 2531 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { |
2547 ++shortNameCounter; | 2532 ++shortNameCounter; |
2548 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); | 2533 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); |
2549 path = "short${shortNameCounter}_$pathEnd"; | 2534 path = "short${shortNameCounter}_$pathEnd"; |
2550 } | 2535 } |
2551 } | 2536 } |
2552 return path; | 2537 return path; |
2553 } | 2538 } |
2554 } | 2539 } |
OLD | NEW |