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

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

Issue 2602783002: Add flutter_engine runtime to the test script so we can run standard dart tests from the test suite… (Closed)
Patch Set: Address code review comments. Created 3 years, 11 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 String suffix = executableBinarySuffix; 201 String suffix = executableBinarySuffix;
202 dartExecutable = useSdk 202 dartExecutable = useSdk
203 ? '$buildDir/dart-sdk/bin/dart$suffix' 203 ? '$buildDir/dart-sdk/bin/dart$suffix'
204 : '$buildDir/dart$suffix'; 204 : '$buildDir/dart$suffix';
205 } 205 }
206 206
207 TestUtils.ensureExists(dartExecutable, configuration); 207 TestUtils.ensureExists(dartExecutable, configuration);
208 return dartExecutable; 208 return dartExecutable;
209 } 209 }
210 210
211 /// Returns the name of the flutter engine executable.
212 String get flutterEngineBinaryFileName {
213 // Controlled by user with the option "--engine".
zra 2017/01/05 20:59:58 --flutter_engine
siva 2017/01/05 21:27:19 Renamed to flutter.
214 String flutterExecutable = configuration['engine'];
zra 2017/01/05 20:59:58 'engine' -> 'flutter_engine'
siva 2017/01/05 21:27:19 Ditto.
215 TestUtils.ensureExists(flutterExecutable, configuration);
216 return flutterExecutable;
217 }
218
211 String get dartVmNooptBinaryFileName { 219 String get dartVmNooptBinaryFileName {
212 // Controlled by user with the option "--dart". 220 // Controlled by user with the option "--dart".
213 String dartExecutable = configuration['dart']; 221 String dartExecutable = configuration['dart'];
214 222
215 if (dartExecutable == '') { 223 if (dartExecutable == '') {
216 String suffix = executableBinarySuffix; 224 String suffix = executableBinarySuffix;
217 dartExecutable = useSdk 225 dartExecutable = useSdk
218 ? '$buildDir/dart-sdk/bin/dart_noopt$suffix' 226 ? '$buildDir/dart-sdk/bin/dart_noopt$suffix'
219 : '$buildDir/dart_noopt$suffix'; 227 : '$buildDir/dart_noopt$suffix';
220 } 228 }
(...skipping 2316 matching lines...) Expand 10 before | Expand all | Expand 10 after
2537 } 2545 }
2538 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { 2546 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) {
2539 ++shortNameCounter; 2547 ++shortNameCounter;
2540 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); 2548 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH);
2541 path = "short${shortNameCounter}_$pathEnd"; 2549 path = "short${shortNameCounter}_$pathEnd";
2542 } 2550 }
2543 } 2551 }
2544 return path; 2552 return path;
2545 } 2553 }
2546 } 2554 }
OLDNEW
« tools/testing/dart/test_options.dart ('K') | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698