Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: tools/testing/dart/test_suite.dart

Issue 1902073003: VM: Remove redundant build target dart_product. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 dartVmProductBinaryFileName {
238 // Controlled by user with the option "--dart".
239 String dartExecutable = configuration['dart'];
240
241 if (dartExecutable == '') {
242 String suffix = executableBinarySuffix;
243 dartExecutable = useSdk
244 ? '$buildDir/dart-sdk/bin/dart_product$suffix'
245 : '$buildDir/dart_product$suffix';
246 }
247
248 TestUtils.ensureExists(dartExecutable, configuration);
249 return dartExecutable;
250 }
251
252 String get d8FileName { 237 String get d8FileName {
253 var suffix = getExecutableSuffix('d8'); 238 var suffix = getExecutableSuffix('d8');
254 var d8Dir = TestUtils.dartDir.append('third_party/d8'); 239 var d8Dir = TestUtils.dartDir.append('third_party/d8');
255 var d8Path = d8Dir.append('${Platform.operatingSystem}/d8$suffix'); 240 var d8Path = d8Dir.append('${Platform.operatingSystem}/d8$suffix');
256 var d8 = d8Path.toNativePath(); 241 var d8 = d8Path.toNativePath();
257 TestUtils.ensureExists(d8, configuration); 242 TestUtils.ensureExists(d8, configuration);
258 return d8; 243 return d8;
259 } 244 }
260 245
261 String get jsShellFileName { 246 String get jsShellFileName {
(...skipping 2190 matching lines...) Expand 10 before | Expand all | Expand 10 after
2452 for (var key in PATH_REPLACEMENTS.keys) { 2437 for (var key in PATH_REPLACEMENTS.keys) {
2453 if (path.startsWith(key)) { 2438 if (path.startsWith(key)) {
2454 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); 2439 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]);
2455 break; 2440 break;
2456 } 2441 }
2457 } 2442 }
2458 } 2443 }
2459 return path; 2444 return path;
2460 } 2445 }
2461 } 2446 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698