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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // Print the configurations being run by this execution of | 97 // Print the configurations being run by this execution of |
98 // test.dart. However, don't do it if the silent progress indicator | 98 // test.dart. However, don't do it if the silent progress indicator |
99 // is used. This is only needed because of the junit tests. | 99 // is used. This is only needed because of the junit tests. |
100 if (progressIndicator != 'silent') { | 100 if (progressIndicator != 'silent') { |
101 List output_words = configurations.length > 1 ? | 101 List output_words = configurations.length > 1 ? |
102 ['Test configurations:'] : ['Test configuration:']; | 102 ['Test configurations:'] : ['Test configuration:']; |
103 for (Map conf in configurations) { | 103 for (Map conf in configurations) { |
104 List settings = ['compiler', 'runtime', 'mode', 'arch'] | 104 List settings = ['compiler', 'runtime', 'mode', 'arch'] |
105 .mappedBy((name) => conf[name]).toList(); | 105 .mappedBy((name) => conf[name]).toList(); |
106 if (conf['checked']) settings.add('checked'); | 106 if (conf['checked']) settings.add('checked'); |
107 output_words.add(Strings.join(settings, '_')); | 107 output_words.add(settings.join('_')); |
108 } | 108 } |
109 print(Strings.join(output_words, ' ')); | 109 print(output_words.join(' ')); |
110 } | 110 } |
111 | 111 |
112 // Start global http servers that serve the entire dart repo. | 112 // Start global http servers that serve the entire dart repo. |
113 // The http server is available on window.location.port, and a second server | 113 // The http server is available on window.location.port, and a second server |
114 // for cross-domain tests can be found by calling getCrossOriginPortNumber(). | 114 // for cross-domain tests can be found by calling getCrossOriginPortNumber(). |
115 if (!listTests) { | 115 if (!listTests) { |
116 // Only start the server if we are running browser tests. | 116 // Only start the server if we are running browser tests. |
117 var runningBrowserTests = configurations.any((config) { | 117 var runningBrowserTests = configurations.any((config) { |
118 return TestUtils.isBrowserRuntime(config['runtime']); | 118 return TestUtils.isBrowserRuntime(config['runtime']); |
119 }); | 119 }); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 new ProcessQueue(maxProcesses, | 167 new ProcessQueue(maxProcesses, |
168 maxBrowserProcesses, | 168 maxBrowserProcesses, |
169 progressIndicator, | 169 progressIndicator, |
170 startTime, | 170 startTime, |
171 printTiming, | 171 printTiming, |
172 testSuites, | 172 testSuites, |
173 allTestsFinished, | 173 allTestsFinished, |
174 verbose, | 174 verbose, |
175 listTests); | 175 listTests); |
176 } | 176 } |
OLD | NEW |