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