| OLD | NEW |
| 1 #!/usr/bin/env dart | 1 #!/usr/bin/env dart |
| 2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2013, 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // anymore. | 78 // anymore. |
| 79 var failureSummary = firstConf['failure-summary']; | 79 var failureSummary = firstConf['failure-summary']; |
| 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 | 84 |
| 85 var recordingPath = firstConf['record_to_file']; | 85 var recordingPath = firstConf['record_to_file']; |
| 86 var recordingOutputPath = firstConf['replay_from_file']; | 86 var recordingOutputPath = firstConf['replay_from_file']; |
| 87 | 87 |
| 88 // We set a special flag in the safari browser if we need to clear out | 88 Browser.deleteCache = firstConf['clear_browser_cache']; |
| 89 // the cache before running. | |
| 90 Safari.deleteCache = firstConf['clear_safari_cache']; | |
| 91 | 89 |
| 92 if (recordingPath != null && recordingOutputPath != null) { | 90 if (recordingPath != null && recordingOutputPath != null) { |
| 93 print("Fatal: Can't have the '--record_to_file' and '--replay_from_file'" | 91 print("Fatal: Can't have the '--record_to_file' and '--replay_from_file'" |
| 94 "at the same time. Exiting ..."); | 92 "at the same time. Exiting ..."); |
| 95 exit(1); | 93 exit(1); |
| 96 } | 94 } |
| 97 | 95 |
| 98 if (!firstConf['append_logs']) { | 96 if (!firstConf['append_logs']) { |
| 99 var files = [new File(TestUtils.flakyFileName()), | 97 var files = [new File(TestUtils.flakyFileName()), |
| 100 new File(TestUtils.testOutcomeFileName())]; | 98 new File(TestUtils.testOutcomeFileName())]; |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 void main(List<String> arguments) { | 307 void main(List<String> arguments) { |
| 310 deleteTemporaryDartDirectories().then((_) { | 308 deleteTemporaryDartDirectories().then((_) { |
| 311 var optionsParser = new TestOptionsParser(); | 309 var optionsParser = new TestOptionsParser(); |
| 312 var configurations = optionsParser.parse(arguments); | 310 var configurations = optionsParser.parse(arguments); |
| 313 if (configurations != null && configurations.length > 0) { | 311 if (configurations != null && configurations.length > 0) { |
| 314 testConfigurations(configurations); | 312 testConfigurations(configurations); |
| 315 } | 313 } |
| 316 }); | 314 }); |
| 317 } | 315 } |
| 318 | 316 |
| OLD | NEW |