| 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, and utils removed. | 9 // directories samples, client, compiler, and utils removed. |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 if (configurations == null) return; | 43 if (configurations == null) return; |
| 44 | 44 |
| 45 // Extract global options from first configuration. | 45 // Extract global options from first configuration. |
| 46 var firstConf = configurations[0]; | 46 var firstConf = configurations[0]; |
| 47 Map<String, RegExp> selectors = firstConf['selectors']; | 47 Map<String, RegExp> selectors = firstConf['selectors']; |
| 48 var maxProcesses = firstConf['tasks']; | 48 var maxProcesses = firstConf['tasks']; |
| 49 var progressIndicator = firstConf['progress']; | 49 var progressIndicator = firstConf['progress']; |
| 50 var verbose = firstConf['verbose']; | 50 var verbose = firstConf['verbose']; |
| 51 var printTiming = firstConf['time']; | 51 var printTiming = firstConf['time']; |
| 52 var listTests = firstConf['list']; | 52 var listTests = firstConf['list']; |
| 53 | 53 |
| 54 if (!firstConf['append_flaky_log']) { | 54 if (!firstConf['append_logs']) { |
| 55 var file = new File(TestUtils.flakyFileName()); | 55 var file = new File(TestUtils.flakyFileName()); |
| 56 if (file.existsSync()) { | 56 if (file.existsSync()) { |
| 57 file.deleteSync(); | 57 file.deleteSync(); |
| 58 } | 58 } |
| 59 } | 59 } |
| 60 // Print the configurations being run by this execution of | 60 // Print the configurations being run by this execution of |
| 61 // test.dart. However, don't do it if the silent progress indicator | 61 // test.dart. However, don't do it if the silent progress indicator |
| 62 // is used. This is only needed because of the junit tests. | 62 // is used. This is only needed because of the junit tests. |
| 63 if (progressIndicator != 'silent') { | 63 if (progressIndicator != 'silent') { |
| 64 List output_words = configurations.length > 1 ? | 64 List output_words = configurations.length > 1 ? |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 new ProcessQueue( | 106 new ProcessQueue( |
| 107 maxProcesses, | 107 maxProcesses, |
| 108 progressIndicator, | 108 progressIndicator, |
| 109 startTime, | 109 startTime, |
| 110 printTiming, | 110 printTiming, |
| 111 testSuites, | 111 testSuites, |
| 112 () => TestingServerRunner.terminateHttpServers(), | 112 () => TestingServerRunner.terminateHttpServers(), |
| 113 verbose, | 113 verbose, |
| 114 listTests); | 114 listTests); |
| 115 } | 115 } |
| OLD | NEW |