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

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

Issue 1690303002: Add dart_product binary (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 233
234 if (dartExecutable == null || dartExecutable == '') { 234 if (dartExecutable == null || dartExecutable == '') {
235 String suffix = executableBinarySuffix; 235 String suffix = executableBinarySuffix;
236 dartExecutable = '$buildDir/dart_precompiled_runtime$suffix'; 236 dartExecutable = '$buildDir/dart_precompiled_runtime$suffix';
237 } 237 }
238 238
239 TestUtils.ensureExists(dartExecutable, configuration); 239 TestUtils.ensureExists(dartExecutable, configuration);
240 return dartExecutable; 240 return dartExecutable;
241 } 241 }
242 242
243 String get dartVmProductBinaryFileName {
244 // Controlled by user with the option "--dart".
245 String dartExecutable = configuration['dart'];
246
247 if (dartExecutable == '') {
248 String suffix = executableBinarySuffix;
249 dartExecutable = useSdk
250 ? '$buildDir/dart-sdk/bin/dart_product$suffix'
251 : '$buildDir/dart_product$suffix';
252 }
253
254 TestUtils.ensureExists(dartExecutable, configuration);
255 return dartExecutable;
256 }
257
243 String get d8FileName { 258 String get d8FileName {
244 var suffix = getExecutableSuffix('d8'); 259 var suffix = getExecutableSuffix('d8');
245 var d8Dir = TestUtils.dartDir.append('third_party/d8'); 260 var d8Dir = TestUtils.dartDir.append('third_party/d8');
246 var d8Path = d8Dir.append('${Platform.operatingSystem}/d8$suffix'); 261 var d8Path = d8Dir.append('${Platform.operatingSystem}/d8$suffix');
247 var d8 = d8Path.toNativePath(); 262 var d8 = d8Path.toNativePath();
248 TestUtils.ensureExists(d8, configuration); 263 TestUtils.ensureExists(d8, configuration);
249 return d8; 264 return d8;
250 } 265 }
251 266
252 String get jsShellFileName { 267 String get jsShellFileName {
(...skipping 2218 matching lines...) Expand 10 before | Expand all | Expand 10 after
2471 for (var key in PATH_REPLACEMENTS.keys) { 2486 for (var key in PATH_REPLACEMENTS.keys) {
2472 if (path.startsWith(key)) { 2487 if (path.startsWith(key)) {
2473 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); 2488 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]);
2474 break; 2489 break;
2475 } 2490 }
2476 } 2491 }
2477 } 2492 }
2478 return path; 2493 return path;
2479 } 2494 }
2480 } 2495 }
OLDNEW
« runtime/bin/main.cc ('K') | « tools/testing/dart/runtime_configuration.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698