| 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 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 #import("../../../tests/co19/test_config.dart"); | 25 #import("../../../tests/co19/test_config.dart"); |
| 26 | 26 |
| 27 const List<String> COMMON_ARGUMENTS = const <String>['--report']; | 27 const List<String> COMMON_ARGUMENTS = const <String>['--report']; |
| 28 | 28 |
| 29 const List<List<String>> COMMAND_LINES = const <List<String>>[ | 29 const List<List<String>> COMMAND_LINES = const <List<String>>[ |
| 30 const <String>['-mrelease,debug', '-rvm', '-cnone'], | 30 const <String>['-mrelease,debug', '-rvm', '-cnone'], |
| 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'], | 34 const <String>['-mrelease', '-rd8', '-cdart2js', '--use-sdk'], |
| 35 const <String>['-mrelease', '-rd8', '-cdart2js', '--checked']]; | 35 const <String>['-mrelease', '-rd8', '-cdart2js', '--use-sdk', '--checked']]; |
| 36 | 36 |
| 37 void main() { | 37 void main() { |
| 38 File scriptFile = new File(new Options().script); | 38 File scriptFile = new File(new Options().script); |
| 39 Path scriptPath = | 39 Path scriptPath = |
| 40 new Path.fromNative(scriptFile.fullPathSync()) | 40 new Path.fromNative(scriptFile.fullPathSync()) |
| 41 .directoryPath.directoryPath.directoryPath.append('test.dart'); | 41 .directoryPath.directoryPath.directoryPath.append('test.dart'); |
| 42 TestUtils.testScriptPath = scriptPath.toNativePath(); | 42 TestUtils.testScriptPath = scriptPath.toNativePath(); |
| 43 var startTime = new Date.now(); | 43 var startTime = new Date.now(); |
| 44 var optionsParser = new TestOptionsParser(); | 44 var optionsParser = new TestOptionsParser(); |
| 45 List<Map> configurations = <Map>[]; | 45 List<Map> configurations = <Map>[]; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 74 // Start process queue. | 74 // Start process queue. |
| 75 var queue = new ProcessQueue(maxProcesses, | 75 var queue = new ProcessQueue(maxProcesses, |
| 76 'diff', | 76 'diff', |
| 77 startTime, | 77 startTime, |
| 78 false, | 78 false, |
| 79 enqueueConfiguration, | 79 enqueueConfiguration, |
| 80 () {}, | 80 () {}, |
| 81 verbose, | 81 verbose, |
| 82 listTests); | 82 listTests); |
| 83 } | 83 } |
| OLD | NEW |