| OLD | NEW |
| 1 #!/usr/bin/env dart | 1 #!/usr/bin/env dart |
| 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3 // for details. All rights reserved. Use of this source code is governed by a | 3 // for details. All rights reserved. Use of this source code is governed by a |
| 4 // BSD-style license that can be found in the LICENSE file. | 4 // BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 // TODO(ager): Get rid of this version of test.dart when we don't have | 6 // TODO(ager): Get rid of this version of test.dart when we don't have |
| 7 // to worry about the special runtime checkout anymore. | 7 // to worry about the special runtime checkout anymore. |
| 8 // This file is identical to test.dart with test suites in the | 8 // This file is identical to test.dart with test suites in the |
| 9 // directories samples, client, compiler, frog, and utils removed. | 9 // directories samples, client, compiler, frog, and utils removed. |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 if (configurations == null) return; | 41 if (configurations == null) return; |
| 42 | 42 |
| 43 // Extract global options from first configuration. | 43 // Extract global options from first configuration. |
| 44 var firstConf = configurations[0]; | 44 var firstConf = configurations[0]; |
| 45 Map<String, RegExp> selectors = firstConf['selectors']; | 45 Map<String, RegExp> selectors = firstConf['selectors']; |
| 46 var maxProcesses = firstConf['tasks']; | 46 var maxProcesses = firstConf['tasks']; |
| 47 var progressIndicator = firstConf['progress']; | 47 var progressIndicator = firstConf['progress']; |
| 48 var verbose = firstConf['verbose']; | 48 var verbose = firstConf['verbose']; |
| 49 var printTiming = firstConf['time']; | 49 var printTiming = firstConf['time']; |
| 50 var listTests = firstConf['list']; | 50 var listTests = firstConf['list']; |
| 51 var keepGeneratedTests = firstConf['keep-generated-tests']; | |
| 52 | 51 |
| 53 // Print the configurations being run by this execution of | 52 // Print the configurations being run by this execution of |
| 54 // test.dart. However, don't do it if the silent progress indicator | 53 // test.dart. However, don't do it if the silent progress indicator |
| 55 // is used. This is only needed because of the junit tests. | 54 // is used. This is only needed because of the junit tests. |
| 56 if (progressIndicator != 'silent') { | 55 if (progressIndicator != 'silent') { |
| 57 StringBuffer sb = new StringBuffer('Test configuration'); | 56 StringBuffer sb = new StringBuffer('Test configuration'); |
| 58 sb.add(configurations.length > 1 ? 's:' : ':'); | 57 sb.add(configurations.length > 1 ? 's:' : ':'); |
| 59 for (Map conf in configurations) { | 58 for (Map conf in configurations) { |
| 60 sb.add(' ${conf["compiler"]}_${conf["runtime"]}_${conf["mode"]}_' + | 59 sb.add(' ${conf["compiler"]}_${conf["runtime"]}_${conf["mode"]}_' + |
| 61 '${conf["arch"]}'); | 60 '${conf["arch"]}'); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 91 return true; | 90 return true; |
| 92 } | 91 } |
| 93 | 92 |
| 94 // Start process queue. | 93 // Start process queue. |
| 95 var queue = new ProcessQueue(maxProcesses, | 94 var queue = new ProcessQueue(maxProcesses, |
| 96 progressIndicator, | 95 progressIndicator, |
| 97 startTime, | 96 startTime, |
| 98 printTiming, | 97 printTiming, |
| 99 enqueueConfiguration, | 98 enqueueConfiguration, |
| 100 verbose, | 99 verbose, |
| 101 listTests, | 100 listTests); |
| 102 keepGeneratedTests); | |
| 103 } | 101 } |
| OLD | NEW |