OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 """Dart frog buildbot steps | 7 """Dart frog buildbot steps |
8 | 8 |
9 Runs tests for the frog compiler (running on the vm or the self-hosting version) | 9 Runs tests for the frog compiler (running on the vm or the self-hosting version) |
10 """ | 10 """ |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 # TODO(jmesserly): make DumpRenderTree more like other browser tests, so | 173 # TODO(jmesserly): make DumpRenderTree more like other browser tests, so |
174 # we don't have this translation step. See dartbug.com/1158. | 174 # we don't have this translation step. See dartbug.com/1158. |
175 # Ideally we can run most Chrome tests in DumpRenderTree because it's more | 175 # Ideally we can run most Chrome tests in DumpRenderTree because it's more |
176 # debuggable, but still have some tests run the full browser. | 176 # debuggable, but still have some tests run the full browser. |
177 # Also: we don't have DumpRenderTree on Windows yet | 177 # Also: we don't have DumpRenderTree on Windows yet |
178 # TODO(efortuna): Move Mac back to DumpRenderTree when we have a more stable | 178 # TODO(efortuna): Move Mac back to DumpRenderTree when we have a more stable |
179 # solution for DRT. Right now DRT is flakier than regular Chrome for the | 179 # solution for DRT. Right now DRT is flakier than regular Chrome for the |
180 # isolate tests, so we're switching to use Chrome in the short term. | 180 # isolate tests, so we're switching to use Chrome in the short term. |
181 if browser == 'chrome' and system == 'linux': | 181 if browser == 'chrome' and system == 'linux': |
182 TestStep('browser', mode, system, 'frogium', tests, flags) | 182 TestStep('browser', mode, system, 'frogium', tests, flags) |
183 TestStep('browser', mode, system, 'legium', tests, flags) | 183 TestStep('browser', mode, system, 'legium', [], flags) |
| 184 TestStep('browser', mode, system, 'legium_extra', |
| 185 ['leg_only', 'frog_native'], flags) |
184 else: | 186 else: |
185 additional_flags = ['--browser=' + browser] | 187 additional_flags = ['--browser=' + browser] |
186 if system.startswith('win') and browser == 'ie': | 188 if system.startswith('win') and browser == 'ie': |
187 # There should not be more than one InternetExplorerDriver instance | 189 # There should not be more than one InternetExplorerDriver instance |
188 # running at a time. For details, see | 190 # running at a time. For details, see |
189 # http://code.google.com/p/selenium/wiki/InternetExplorerDriver. | 191 # http://code.google.com/p/selenium/wiki/InternetExplorerDriver. |
190 additional_flags += ['-j1'] | 192 additional_flags += ['-j1'] |
191 TestStep(browser, mode, system, 'webdriver', tests, | 193 TestStep(browser, mode, system, 'webdriver', tests, |
192 flags + additional_flags) | 194 flags + additional_flags) |
193 | 195 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 if status != 0: | 262 if status != 0: |
261 print '@@@STEP_FAILURE@@@' | 263 print '@@@STEP_FAILURE@@@' |
262 | 264 |
263 if component == 'frogium': | 265 if component == 'frogium': |
264 CleanUpTemporaryFiles(system, browser) | 266 CleanUpTemporaryFiles(system, browser) |
265 return status | 267 return status |
266 | 268 |
267 | 269 |
268 if __name__ == '__main__': | 270 if __name__ == '__main__': |
269 sys.exit(main()) | 271 sys.exit(main()) |
OLD | NEW |