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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 227 |
228 if (dartExecutable == null || dartExecutable == '') { | 228 if (dartExecutable == null || dartExecutable == '') { |
229 String suffix = executableBinarySuffix; | 229 String suffix = executableBinarySuffix; |
230 dartExecutable = '$buildDir/dart_precompiled_runtime$suffix'; | 230 dartExecutable = '$buildDir/dart_precompiled_runtime$suffix'; |
231 } | 231 } |
232 | 232 |
233 TestUtils.ensureExists(dartExecutable, configuration); | 233 TestUtils.ensureExists(dartExecutable, configuration); |
234 return dartExecutable; | 234 return dartExecutable; |
235 } | 235 } |
236 | 236 |
| 237 String get processTestBinaryFileName { |
| 238 String suffix = executableBinarySuffix; |
| 239 String processTestExecutable = '$buildDir/process_test$suffix'; |
| 240 TestUtils.ensureExists(processTestExecutable, configuration); |
| 241 return processTestExecutable; |
| 242 } |
| 243 |
237 String get d8FileName { | 244 String get d8FileName { |
238 var suffix = getExecutableSuffix('d8'); | 245 var suffix = getExecutableSuffix('d8'); |
239 var d8Dir = TestUtils.dartDir.append('third_party/d8'); | 246 var d8Dir = TestUtils.dartDir.append('third_party/d8'); |
240 var d8Path = d8Dir.append('${Platform.operatingSystem}/d8$suffix'); | 247 var d8Path = d8Dir.append('${Platform.operatingSystem}/d8$suffix'); |
241 var d8 = d8Path.toNativePath(); | 248 var d8 = d8Path.toNativePath(); |
242 TestUtils.ensureExists(d8, configuration); | 249 TestUtils.ensureExists(d8, configuration); |
243 return d8; | 250 return d8; |
244 } | 251 } |
245 | 252 |
246 String get jsShellFileName { | 253 String get jsShellFileName { |
(...skipping 2279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2526 } | 2533 } |
2527 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { | 2534 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { |
2528 ++shortNameCounter; | 2535 ++shortNameCounter; |
2529 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); | 2536 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); |
2530 path = "short${shortNameCounter}_$pathEnd"; | 2537 path = "short${shortNameCounter}_$pathEnd"; |
2531 } | 2538 } |
2532 } | 2539 } |
2533 return path; | 2540 return path; |
2534 } | 2541 } |
2535 } | 2542 } |
OLD | NEW |