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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 TestUtils.ensureExists(dartExecutable, configuration); | 211 TestUtils.ensureExists(dartExecutable, configuration); |
212 return dartExecutable; | 212 return dartExecutable; |
213 } | 213 } |
214 | 214 |
215 String get dartPrecompiledBinaryFileName { | 215 String get dartPrecompiledBinaryFileName { |
216 // Controlled by user with the option "--dart_precompiled". | 216 // Controlled by user with the option "--dart_precompiled". |
217 String dartExecutable = configuration['dart_precompiled']; | 217 String dartExecutable = configuration['dart_precompiled']; |
218 | 218 |
219 if (dartExecutable == null || dartExecutable == '') { | 219 if (dartExecutable == null || dartExecutable == '') { |
220 String suffix = executableBinarySuffix; | 220 String suffix = executableBinarySuffix; |
221 dartExecutable = '$buildDir/dart_precompiled$suffix'; | 221 dartExecutable = '$buildDir/dart_precompiled_runtime$suffix'; |
222 } | 222 } |
223 | 223 |
224 TestUtils.ensureExists(dartExecutable, configuration); | 224 TestUtils.ensureExists(dartExecutable, configuration); |
225 return dartExecutable; | 225 return dartExecutable; |
226 } | 226 } |
227 | 227 |
228 String get d8FileName { | 228 String get d8FileName { |
229 var suffix = getExecutableSuffix('d8'); | 229 var suffix = getExecutableSuffix('d8'); |
230 var d8Dir = TestUtils.dartDir.append('third_party/d8'); | 230 var d8Dir = TestUtils.dartDir.append('third_party/d8'); |
231 var d8Path = d8Dir.append('${Platform.operatingSystem}/d8$suffix'); | 231 var d8Path = d8Dir.append('${Platform.operatingSystem}/d8$suffix'); |
(...skipping 2211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2443 for (var key in PATH_REPLACEMENTS.keys) { | 2443 for (var key in PATH_REPLACEMENTS.keys) { |
2444 if (path.startsWith(key)) { | 2444 if (path.startsWith(key)) { |
2445 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); | 2445 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); |
2446 break; | 2446 break; |
2447 } | 2447 } |
2448 } | 2448 } |
2449 } | 2449 } |
2450 return path; | 2450 return path; |
2451 } | 2451 } |
2452 } | 2452 } |
OLD | NEW |