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 or dart2js compiler. | 9 Runs tests for the frog or dart2js compiler. |
10 """ | 10 """ |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 | 199 |
200 TestStep("dart2js", mode, system, 'dart2js', runtime, [], flags) | 200 TestStep("dart2js", mode, system, 'dart2js', runtime, [], flags) |
201 | 201 |
202 elif runtime == 'd8' and compiler in ['frog']: | 202 elif runtime == 'd8' and compiler in ['frog']: |
203 TestStep("frog", mode, system, compiler, runtime, [], flags) | 203 TestStep("frog", mode, system, compiler, runtime, [], flags) |
204 TestStep("frog_extra", mode, system, compiler, runtime, | 204 TestStep("frog_extra", mode, system, compiler, runtime, |
205 ['frog', 'frog_native', 'peg', 'css'], flags) | 205 ['frog', 'frog_native', 'peg', 'css'], flags) |
206 TestStep("sdk", mode, system, 'none', 'vm', ['dartdoc'], flags) | 206 TestStep("sdk", mode, system, 'none', 'vm', ['dartdoc'], flags) |
207 | 207 |
208 else: | 208 else: |
209 tests = ['client', 'isolate', 'frog', 'css', 'corelib', 'language' | 209 tests = ['dom', 'html', 'json', 'benchmark_smoke', |
| 210 'isolate', 'frog', 'css', 'corelib', 'language', |
210 'frog_native', 'peg'] | 211 'frog_native', 'peg'] |
211 | 212 |
212 # TODO(efortuna): Move Mac back to DumpRenderTree when we have a more stable | 213 # TODO(efortuna): Move Mac back to DumpRenderTree when we have a more stable |
213 # solution for DRT. Right now DRT is flakier than regular Chrome for the | 214 # solution for DRT. Right now DRT is flakier than regular Chrome for the |
214 # isolate tests, so we're switching to use Chrome in the short term. | 215 # isolate tests, so we're switching to use Chrome in the short term. |
215 if runtime == 'chrome' and system == 'linux': | 216 if runtime == 'chrome' and system == 'linux': |
216 TestStep('browser', mode, system, 'frog', 'drt', tests, flags) | 217 TestStep('browser', mode, system, 'frog', 'drt', tests, flags) |
217 TestStep('browser_dart2js', mode, system, 'dart2js', 'drt', [], flags) | 218 TestStep('browser_dart2js', mode, system, 'dart2js', 'drt', [], flags) |
218 TestStep('browser_dart2js_extra', mode, system, 'dart2js', 'drt', | 219 TestStep('browser_dart2js_extra', mode, system, 'dart2js', 'drt', |
219 ['leg_only', 'frog_native'], flags) | 220 ['leg_only', 'frog_native'], flags) |
220 else: | 221 else: |
221 additional_flags = [] | 222 additional_flags = [] |
222 if system.startswith('win') and runtime == 'ie': | 223 if system.startswith('win') and runtime == 'ie': |
223 # There should not be more than one InternetExplorerDriver instance | 224 # There should not be more than one InternetExplorerDriver instance |
224 # running at a time. For details, see | 225 # running at a time. For details, see |
225 # http://code.google.com/p/selenium/wiki/InternetExplorerDriver. | 226 # http://code.google.com/p/selenium/wiki/InternetExplorerDriver. |
226 additional_flags += ['-j1'] | 227 additional_flags += ['-j1'] |
227 # The IE bots are slow lately. Split up the tests they do. | 228 # The IE bots are slow lately. Split up the tests they do. |
228 if bot_number == '2': | 229 if bot_number == '2': |
229 tests = ['corelib', 'language'] | 230 tests = ['corelib', 'language'] |
230 else: | 231 else: |
231 tests = ['client', 'isolate', 'frog', 'css', 'frog_native', 'peg'] | 232 tests = ['dom', 'html', 'json', 'benchmark_smoke', |
| 233 'isolate', 'frog', 'css', 'frog_native', 'peg'] |
232 TestStep(runtime, mode, system, compiler, runtime, tests, | 234 TestStep(runtime, mode, system, compiler, runtime, tests, |
233 flags + additional_flags) | 235 flags + additional_flags) |
234 | 236 |
235 return 0 | 237 return 0 |
236 | 238 |
237 def _DeleteFirefoxProfiles(directory): | 239 def _DeleteFirefoxProfiles(directory): |
238 """Find all the firefox profiles in a particular directory and delete them.""" | 240 """Find all the firefox profiles in a particular directory and delete them.""" |
239 for f in os.listdir(directory): | 241 for f in os.listdir(directory): |
240 item = os.path.join(directory, f) | 242 item = os.path.join(directory, f) |
241 if os.path.isdir(item) and f.startswith('tmp'): | 243 if os.path.isdir(item) and f.startswith('tmp'): |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 print '@@@STEP_FAILURE@@@' | 313 print '@@@STEP_FAILURE@@@' |
312 | 314 |
313 if compiler == 'frog' and runtime in ['ff', 'chrome', 'safari', 'opera', | 315 if compiler == 'frog' and runtime in ['ff', 'chrome', 'safari', 'opera', |
314 'ie', 'drt']: | 316 'ie', 'drt']: |
315 CleanUpTemporaryFiles(system, runtime) | 317 CleanUpTemporaryFiles(system, runtime) |
316 return status | 318 return status |
317 | 319 |
318 | 320 |
319 if __name__ == '__main__': | 321 if __name__ == '__main__': |
320 sys.exit(main()) | 322 sys.exit(main()) |
OLD | NEW |