| 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 var appendFlakyLog = firstConf['append_flaky_log']; |
| 85 |
| 86 if (!appendFlakyLog) { |
| 87 var file = new File(FAILED_FLAKY_TESTS_LOGFILE); |
| 88 if (file.existsSync()) { |
| 89 file.deleteSync(); |
| 90 } |
| 91 } |
| 84 | 92 |
| 85 // Print the configurations being run by this execution of | 93 // Print the configurations being run by this execution of |
| 86 // test.dart. However, don't do it if the silent progress indicator | 94 // test.dart. However, don't do it if the silent progress indicator |
| 87 // is used. This is only needed because of the junit tests. | 95 // is used. This is only needed because of the junit tests. |
| 88 if (progressIndicator != 'silent') { | 96 if (progressIndicator != 'silent') { |
| 89 List output_words = configurations.length > 1 ? | 97 List output_words = configurations.length > 1 ? |
| 90 ['Test configurations:'] : ['Test configuration:']; | 98 ['Test configurations:'] : ['Test configuration:']; |
| 91 for (Map conf in configurations) { | 99 for (Map conf in configurations) { |
| 92 List settings = | 100 List settings = |
| 93 ['compiler', 'runtime', 'mode', 'arch'].map((name) => conf[name]); | 101 ['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. | 146 // Start process queue. |
| 139 new ProcessQueue(maxProcesses, | 147 new ProcessQueue(maxProcesses, |
| 140 progressIndicator, | 148 progressIndicator, |
| 141 startTime, | 149 startTime, |
| 142 printTiming, | 150 printTiming, |
| 143 enqueueConfiguration, | 151 enqueueConfiguration, |
| 144 () => terminateHttpServer(), | 152 () => terminateHttpServer(), |
| 145 verbose, | 153 verbose, |
| 146 listTests); | 154 listTests); |
| 147 } | 155 } |
| OLD | NEW |