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

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

Issue 23437044: co19-roll to r587 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « dart/tests/co19/co19-runtime.status ('k') | deps/all.deps/DEPS » ('j') | 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 * 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
11 * co19. 11 * co19.
12 * 12 *
13 * Usage: 13 * Usage:
14 * [: ./tools/testing/bin/$OS/dart tools/testing/dart/co19_test.dart :] 14 * [: ./tools/testing/bin/$OS/dart tools/testing/dart/co19_test.dart :]
15 */ 15 */
16 16
17 library co19_test; 17 library co19_test;
18 18
19 import "dart:io"; 19 import "dart:io";
20 20
21 import "test_options.dart"; 21 import "test_options.dart";
22 import "test_progress.dart"; 22 import "test_progress.dart";
23 import "test_runner.dart"; 23 import "test_runner.dart";
24 import "test_suite.dart"; 24 import "test_suite.dart";
25 import "utils.dart" show Path; 25 import "utils.dart" show Path;
26 import "../../test.dart" as test_dart; 26 import "../../test.dart" as test_dart;
27 27
28 import "../../../tests/co19/test_config.dart"; 28 import "../../../tests/co19/test_config.dart";
29 29
30 const List<String> COMMON_ARGUMENTS = const <String>['--report']; 30 const List<String> COMMON_ARGUMENTS =
31 const <String>['--report', '--progress=diff', 'co19'];
31 32
32 const List<List<String>> COMMAND_LINES = const <List<String>>[ 33 const List<List<String>> COMMAND_LINES = const <List<String>>[
33 const <String>['-mrelease,debug', '-rvm', '-cnone'], 34 const <String>['-mrelease,debug', '-rvm', '-cnone'],
34 const <String>['-mrelease,debug', '-rvm', '-cnone', '--checked'], 35 const <String>['-mrelease,debug', '-rvm', '-cnone', '--checked'],
35 const <String>['-mrelease', '-rnone', '-cdartanalyzer'], 36 const <String>['-mrelease', '-rnone', '-cdartanalyzer'],
36 const <String>['-mrelease', '-rvm', '-cdart2dart'], 37 const <String>['-mrelease', '-rnone', '-cdart2analyzer'],
37 const <String>['-mrelease', '-rd8,jsshell', '-cdart2js', '--use-sdk'], 38 const <String>['-mrelease', '-rvm', '-cdart2dart', '--use-sdk'],
38 const <String>['-mrelease', '-rd8', '-cdart2js', '--use-sdk', '--checked']]; 39 const <String>['-mrelease', '-rd8', '-cdart2js', '--use-sdk'],
40 const <String>['-mrelease', '-rd8,jsshell', '-cdart2js', '--use-sdk',
41 '--minified'],
42 const <String>['-mrelease', '-rd8,jsshell', '-cdart2js', '--use-sdk',
43 '--checked'],
44 ];
39 45
40 void main() { 46 void main() {
41 Options options = new Options(); 47 Options options = new Options();
42 File scriptFile = new File(options.script); 48 File scriptFile = new File(options.script);
43 Path scriptPath = 49 Path scriptPath =
44 new Path(scriptFile.fullPathSync()) 50 new Path(scriptFile.fullPathSync())
45 .directoryPath.directoryPath.directoryPath.append('test.dart'); 51 .directoryPath.directoryPath.directoryPath.append('test.dart');
46 TestUtils.testScriptPath = scriptPath.toNativePath(); 52 TestUtils.testScriptPath = scriptPath.toNativePath();
47 var optionsParser = new TestOptionsParser(); 53 var optionsParser = new TestOptionsParser();
48 List<Map> configurations = <Map>[]; 54 List<Map> configurations = <Map>[];
49 for (var commandLine in COMMAND_LINES) { 55 for (var commandLine in COMMAND_LINES) {
50 List arguments = <String>[]; 56 List arguments = <String>[];
51 arguments.addAll(COMMON_ARGUMENTS); 57 arguments.addAll(COMMON_ARGUMENTS);
52 arguments.addAll(options.arguments); 58 arguments.addAll(options.arguments);
53 arguments.addAll(commandLine); 59 arguments.addAll(commandLine);
54 arguments.add('co19');
55 arguments.add('--progress=diff');
56 configurations.addAll(optionsParser.parse(arguments)); 60 configurations.addAll(optionsParser.parse(arguments));
57 } 61 }
58 62
59 if (configurations != null || configurations.length > 0) { 63 if (configurations != null || configurations.length > 0) {
60 test_dart.testConfigurations(configurations); 64 test_dart.testConfigurations(configurations);
61 } 65 }
62 } 66 }
63 67
OLDNEW
« no previous file with comments | « dart/tests/co19/co19-runtime.status ('k') | deps/all.deps/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698