OLD | NEW |
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 30 matching lines...) Expand all Loading... |
41 ], | 41 ], |
42 const <String>[ | 42 const <String>[ |
43 '-mrelease', | 43 '-mrelease', |
44 '-rd8,jsshell', | 44 '-rd8,jsshell', |
45 '-cdart2js', | 45 '-cdart2js', |
46 '--use-sdk', | 46 '--use-sdk', |
47 '--checked' | 47 '--checked' |
48 ], | 48 ], |
49 const <String>[ | 49 const <String>[ |
50 '-mrelease', | 50 '-mrelease', |
51 '-rdartium', | 51 '-rd8,jsshell', |
52 '-cnone', | 52 '-cdart2js', |
53 '--use-sdk', | 53 '--use-sdk', |
| 54 '--checked', |
54 '--fast-startup' | 55 '--fast-startup' |
55 ], | 56 ], |
56 const <String>['-mrelease', '-rdartium', '-cnone', '--use-sdk'], | 57 const <String>['-mrelease', '-rdartium', '-cnone', '--use-sdk'], |
57 ]; | 58 ]; |
58 | 59 |
59 void main(List<String> args) { | 60 void main(List<String> args) { |
60 TestUtils.setDartDirUri(Platform.script.resolve('../../..')); | 61 TestUtils.setDartDirUri(Platform.script.resolve('../../..')); |
61 var optionsParser = new OptionsParser(); | 62 var optionsParser = new OptionsParser(); |
62 var configurations = <Configuration>[]; | 63 var configurations = <Configuration>[]; |
63 for (var commandLine in COMMAND_LINES) { | 64 for (var commandLine in COMMAND_LINES) { |
64 var arguments = <String>[]; | 65 var arguments = <String>[]; |
65 arguments.addAll(COMMON_ARGUMENTS); | 66 arguments.addAll(COMMON_ARGUMENTS); |
66 arguments.addAll(args); | 67 arguments.addAll(args); |
67 arguments.addAll(commandLine); | 68 arguments.addAll(commandLine); |
68 configurations.addAll(optionsParser.parse(arguments)); | 69 configurations.addAll(optionsParser.parse(arguments)); |
69 } | 70 } |
70 | 71 |
71 if (configurations != null || configurations.length > 0) { | 72 if (configurations != null || configurations.length > 0) { |
72 testConfigurations(configurations); | 73 testConfigurations(configurations); |
73 } | 74 } |
74 } | 75 } |
OLD | NEW |