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

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

Issue 1537653002: Remove old java-based analyzer from test scripts and status files (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 * Tool for running co19 tests. Used when updating co19. 6 * Tool for running co19 tests. Used when updating co19.
7 * 7 *
8 * Currently, this tool is merely a convenience around multiple 8 * Currently, this tool is merely a convenience around multiple
9 * invocations of test.dart. Long term, we hope to evolve this into a 9 * invocations of test.dart. Long term, we hope to evolve this into a
10 * script that can automate most of the tasks necessary when updating 10 * script that can automate most of the tasks necessary when updating
(...skipping 10 matching lines...) Expand all
21 import "test_options.dart"; 21 import "test_options.dart";
22 import "test_suite.dart"; 22 import "test_suite.dart";
23 import "test_configurations.dart"; 23 import "test_configurations.dart";
24 24
25 const List<String> COMMON_ARGUMENTS = 25 const List<String> COMMON_ARGUMENTS =
26 const <String>['--report', '--progress=diff', 'co19']; 26 const <String>['--report', '--progress=diff', 'co19'];
27 27
28 const List<List<String>> COMMAND_LINES = const <List<String>>[ 28 const List<List<String>> COMMAND_LINES = const <List<String>>[
29 const <String>['-mrelease,debug', '-rvm', '-cnone'], 29 const <String>['-mrelease,debug', '-rvm', '-cnone'],
30 const <String>['-mrelease,debug', '-rvm', '-cnone', '--checked'], 30 const <String>['-mrelease,debug', '-rvm', '-cnone', '--checked'],
31 const <String>['-mrelease', '-rnone', '-cdartanalyzer'],
32 const <String>['-mrelease', '-rnone', '-cdart2analyzer'], 31 const <String>['-mrelease', '-rnone', '-cdart2analyzer'],
33 const <String>['-mrelease', '-rd8', '-cdart2js', '--use-sdk'], 32 const <String>['-mrelease', '-rd8', '-cdart2js', '--use-sdk'],
34 const <String>['-mrelease', '-rd8,jsshell', '-cdart2js', '--use-sdk', 33 const <String>['-mrelease', '-rd8,jsshell', '-cdart2js', '--use-sdk',
35 '--minified'], 34 '--minified'],
36 const <String>['-mrelease', '-rd8,jsshell', '-cdart2js', '--use-sdk', 35 const <String>['-mrelease', '-rd8,jsshell', '-cdart2js', '--use-sdk',
37 '--checked'], 36 '--checked'],
38 const <String>['-mrelease', '-rdartium', '-cnone', '--use-sdk', 37 const <String>['-mrelease', '-rdartium', '-cnone', '--use-sdk',
39 '--checked'], 38 '--checked'],
40 const <String>['-mrelease', '-rdartium', '-cnone', '--use-sdk'], 39 const <String>['-mrelease', '-rdartium', '-cnone', '--use-sdk'],
41 ]; 40 ];
42 41
43 void main(List<String> args) { 42 void main(List<String> args) {
44 TestUtils.setDartDirUri(Platform.script.resolve('../../..')); 43 TestUtils.setDartDirUri(Platform.script.resolve('../../..'));
45 var optionsParser = new TestOptionsParser(); 44 var optionsParser = new TestOptionsParser();
46 List<Map> configurations = <Map>[]; 45 List<Map> configurations = <Map>[];
47 for (var commandLine in COMMAND_LINES) { 46 for (var commandLine in COMMAND_LINES) {
48 List arguments = <String>[]; 47 List arguments = <String>[];
49 arguments.addAll(COMMON_ARGUMENTS); 48 arguments.addAll(COMMON_ARGUMENTS);
50 arguments.addAll(args); 49 arguments.addAll(args);
51 arguments.addAll(commandLine); 50 arguments.addAll(commandLine);
52 configurations.addAll(optionsParser.parse(arguments)); 51 configurations.addAll(optionsParser.parse(arguments));
53 } 52 }
54 53
55 if (configurations != null || configurations.length > 0) { 54 if (configurations != null || configurations.length > 0) {
56 testConfigurations(configurations); 55 testConfigurations(configurations);
57 } 56 }
58 } 57 }
59 58
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698