| 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 20 matching lines...) Expand all Loading... |
| 31 const <String>['-mrelease,debug', '-rvm', '-cnone', '--checked'], | 31 const <String>['-mrelease,debug', '-rvm', '-cnone', '--checked'], |
| 32 const <String>['-mrelease', '-rnone', '-cdartc'], | 32 const <String>['-mrelease', '-rnone', '-cdartc'], |
| 33 const <String>['-mrelease', '-rvm', '-cdart2dart'], | 33 const <String>['-mrelease', '-rvm', '-cdart2dart'], |
| 34 const <String>['-mrelease', '-rd8', '-cdart2js', '--use-sdk'], | 34 const <String>['-mrelease', '-rd8', '-cdart2js', '--use-sdk'], |
| 35 const <String>['-mrelease', '-rd8', '-cdart2js', '--use-sdk', '--checked']]; | 35 const <String>['-mrelease', '-rd8', '-cdart2js', '--use-sdk', '--checked']]; |
| 36 | 36 |
| 37 void main() { | 37 void main() { |
| 38 Options options = new Options(); | 38 Options options = new Options(); |
| 39 File scriptFile = new File(options.script); | 39 File scriptFile = new File(options.script); |
| 40 Path scriptPath = | 40 Path scriptPath = |
| 41 new Path.fromNative(scriptFile.fullPathSync()) | 41 new Path(scriptFile.fullPathSync()) |
| 42 .directoryPath.directoryPath.directoryPath.append('test.dart'); | 42 .directoryPath.directoryPath.directoryPath.append('test.dart'); |
| 43 TestUtils.testScriptPath = scriptPath.toNativePath(); | 43 TestUtils.testScriptPath = scriptPath.toNativePath(); |
| 44 var startTime = new Date.now(); | 44 var startTime = new Date.now(); |
| 45 var optionsParser = new TestOptionsParser(); | 45 var optionsParser = new TestOptionsParser(); |
| 46 List<Map> configurations = <Map>[]; | 46 List<Map> configurations = <Map>[]; |
| 47 for (var commandLine in COMMAND_LINES) { | 47 for (var commandLine in COMMAND_LINES) { |
| 48 List arguments = <String>[]; | 48 List arguments = <String>[]; |
| 49 arguments.addAll(COMMON_ARGUMENTS); | 49 arguments.addAll(COMMON_ARGUMENTS); |
| 50 arguments.addAll(options.arguments); | 50 arguments.addAll(options.arguments); |
| 51 arguments.addAll(commandLine); | 51 arguments.addAll(commandLine); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 76 // Start process queue. | 76 // Start process queue. |
| 77 var queue = new ProcessQueue(maxProcesses, | 77 var queue = new ProcessQueue(maxProcesses, |
| 78 'diff', | 78 'diff', |
| 79 startTime, | 79 startTime, |
| 80 false, | 80 false, |
| 81 enqueueConfiguration, | 81 enqueueConfiguration, |
| 82 () {}, | 82 () {}, |
| 83 verbose, | 83 verbose, |
| 84 listTests); | 84 listTests); |
| 85 } | 85 } |
| OLD | NEW |