| 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 /** | 6 /** |
| 7 * This file is the entrypoint of the dart test suite. This suite is used | 7 * This file is the entrypoint of the dart test suite. This suite is used |
| 8 * to test: | 8 * to test: |
| 9 * | 9 * |
| 10 * 1. the dart vm | 10 * 1. the dart vm |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 // Extract global options from first configuration. | 75 // Extract global options from first configuration. |
| 76 var firstConf = configurations[0]; | 76 var firstConf = configurations[0]; |
| 77 Map<String, RegExp> selectors = firstConf['selectors']; | 77 Map<String, RegExp> selectors = firstConf['selectors']; |
| 78 var maxProcesses = firstConf['tasks']; | 78 var maxProcesses = firstConf['tasks']; |
| 79 var progressIndicator = firstConf['progress']; | 79 var progressIndicator = firstConf['progress']; |
| 80 BuildbotProgressIndicator.stepName = firstConf['step_name']; | 80 BuildbotProgressIndicator.stepName = firstConf['step_name']; |
| 81 var verbose = firstConf['verbose']; | 81 var verbose = firstConf['verbose']; |
| 82 var printTiming = firstConf['time']; | 82 var printTiming = firstConf['time']; |
| 83 var listTests = firstConf['list']; | 83 var listTests = firstConf['list']; |
| 84 |
| 85 if (!firstConf['append_flaky_log']) { |
| 86 var file = new File(TestUtils.flakyFileName()); |
| 87 if (file.existsSync()) { |
| 88 file.deleteSync(); |
| 89 } |
| 90 } |
| 84 | 91 |
| 85 // Print the configurations being run by this execution of | 92 // Print the configurations being run by this execution of |
| 86 // test.dart. However, don't do it if the silent progress indicator | 93 // test.dart. However, don't do it if the silent progress indicator |
| 87 // is used. This is only needed because of the junit tests. | 94 // is used. This is only needed because of the junit tests. |
| 88 if (progressIndicator != 'silent') { | 95 if (progressIndicator != 'silent') { |
| 89 List output_words = configurations.length > 1 ? | 96 List output_words = configurations.length > 1 ? |
| 90 ['Test configurations:'] : ['Test configuration:']; | 97 ['Test configurations:'] : ['Test configuration:']; |
| 91 for (Map conf in configurations) { | 98 for (Map conf in configurations) { |
| 92 List settings = | 99 List settings = |
| 93 ['compiler', 'runtime', 'mode', 'arch'].map((name) => conf[name]); | 100 ['compiler', 'runtime', 'mode', 'arch'].map((name) => conf[name]); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // Start process queue. | 145 // Start process queue. |
| 139 new ProcessQueue(maxProcesses, | 146 new ProcessQueue(maxProcesses, |
| 140 progressIndicator, | 147 progressIndicator, |
| 141 startTime, | 148 startTime, |
| 142 printTiming, | 149 printTiming, |
| 143 enqueueConfiguration, | 150 enqueueConfiguration, |
| 144 () => terminateHttpServer(), | 151 () => terminateHttpServer(), |
| 145 verbose, | 152 verbose, |
| 146 listTests); | 153 listTests); |
| 147 } | 154 } |
| OLD | NEW |