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