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