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

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

Issue 2692203010: Remove older deprecated flags; more cleanup to the cli help args. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « pkg/analyzer_cli/test/driver_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after
1478 List<String> commonArgumentsFromFile(Path filePath, Map optionsFromFile) { 1478 List<String> commonArgumentsFromFile(Path filePath, Map optionsFromFile) {
1479 List args = TestUtils.standardOptions(configuration); 1479 List args = TestUtils.standardOptions(configuration);
1480 1480
1481 String packages = packagesArgument(optionsFromFile['packageRoot'], 1481 String packages = packagesArgument(optionsFromFile['packageRoot'],
1482 optionsFromFile['packages']); 1482 optionsFromFile['packages']);
1483 if (packages != null) { 1483 if (packages != null) {
1484 args.add(packages); 1484 args.add(packages);
1485 } 1485 }
1486 args.addAll(additionalOptions(filePath)); 1486 args.addAll(additionalOptions(filePath));
1487 if (configuration['analyzer']) { 1487 if (configuration['analyzer']) {
1488 args.add('--machine'); 1488 args.add('--format=machine');
1489 args.add('--no-hints'); 1489 args.add('--no-hints');
1490 } 1490 }
1491 1491
1492 if (configuration["compiler"] == "dart2analyzer" && 1492 if (configuration["compiler"] == "dart2analyzer" &&
1493 (filePath.filename.contains("dart2js") || 1493 (filePath.filename.contains("dart2js") ||
1494 filePath.directoryPath.segments().last.contains('html_common'))) { 1494 filePath.directoryPath.segments().last.contains('html_common'))) {
1495 args.add("--use-dart2js-libraries"); 1495 args.add("--use-dart2js-libraries");
1496 } 1496 }
1497 1497
1498 bool isMultitest = optionsFromFile["isMultitest"]; 1498 bool isMultitest = optionsFromFile["isMultitest"];
(...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
2421 } 2421 }
2422 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { 2422 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) {
2423 ++shortNameCounter; 2423 ++shortNameCounter;
2424 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); 2424 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH);
2425 path = "short${shortNameCounter}_$pathEnd"; 2425 path = "short${shortNameCounter}_$pathEnd";
2426 } 2426 }
2427 } 2427 }
2428 return path; 2428 return path;
2429 } 2429 }
2430 } 2430 }
OLDNEW
« no previous file with comments | « pkg/analyzer_cli/test/driver_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698