| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
| 5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
| 6 | 6 |
| 7 """ | 7 """ |
| 8 Dart2js buildbot steps | 8 Dart2js buildbot steps |
| 9 | 9 |
| 10 Runs tests for the dart2js compiler. | 10 Runs tests for the dart2js compiler. |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 except IndexError: | 205 except IndexError: |
| 206 # Failed to obtain version information. Continue running tests. | 206 # Failed to obtain version information. Continue running tests. |
| 207 pass | 207 pass |
| 208 | 208 |
| 209 if runtime == 'd8': | 209 if runtime == 'd8': |
| 210 # The dart2js compiler isn't self-hosted (yet) so we run its | 210 # The dart2js compiler isn't self-hosted (yet) so we run its |
| 211 # unit tests on the VM. We avoid doing this on the builders | 211 # unit tests on the VM. We avoid doing this on the builders |
| 212 # that run the browser tests to cut down on the cycle time. | 212 # that run the browser tests to cut down on the cycle time. |
| 213 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['dart2js'], flags) | 213 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['dart2js'], flags) |
| 214 | 214 |
| 215 # Run the default set of test suites. | 215 if system.startswith('win') and runtime.startswith('ie10'): |
| 216 TestStep("dart2js", mode, system, 'dart2js', runtime, [], flags) | 216 TestStep("dart2js", mode, system, 'dart2js', runtime, ['html'], flags) |
| 217 # TODO(kasperl): Consider running peg and css tests too. | 217 else: |
| 218 extras = ['dart2js_extra', 'dart2js_native', 'dart2js_foreign'] | 218 # Run the default set of test suites. |
| 219 TestStep("dart2js_extra", mode, system, 'dart2js', runtime, extras, flags) | 219 TestStep("dart2js", mode, system, 'dart2js', runtime, [], flags) |
| 220 |
| 221 # TODO(kasperl): Consider running peg and css tests too. |
| 222 extras = ['dart2js_extra', 'dart2js_native', 'dart2js_foreign'] |
| 223 TestStep("dart2js_extra", mode, system, 'dart2js', runtime, extras, flags) |
| 224 |
| 220 | 225 |
| 221 def _DeleteTempWebdriverProfiles(directory): | 226 def _DeleteTempWebdriverProfiles(directory): |
| 222 """Find all the firefox profiles in a particular directory and delete them.""" | 227 """Find all the firefox profiles in a particular directory and delete them.""" |
| 223 for f in os.listdir(directory): | 228 for f in os.listdir(directory): |
| 224 item = os.path.join(directory, f) | 229 item = os.path.join(directory, f) |
| 225 if os.path.isdir(item) and (f.startswith('tmp') or f.startswith('opera')): | 230 if os.path.isdir(item) and (f.startswith('tmp') or f.startswith('opera')): |
| 226 subprocess.Popen('rm -rf %s' % item, shell=True) | 231 subprocess.Popen('rm -rf %s' % item, shell=True) |
| 227 | 232 |
| 228 | 233 |
| 229 def CleanUpTemporaryFiles(system, browser): | 234 def CleanUpTemporaryFiles(system, browser): |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 """ | 311 """ |
| 307 with bot.BuildStep('Build SDK and d8'): | 312 with bot.BuildStep('Build SDK and d8'): |
| 308 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 313 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 309 'dart2js_bot'] | 314 'dart2js_bot'] |
| 310 print 'Build SDK and d8: %s' % (' '.join(args)) | 315 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 311 bot.RunProcess(args) | 316 bot.RunProcess(args) |
| 312 | 317 |
| 313 | 318 |
| 314 if __name__ == '__main__': | 319 if __name__ == '__main__': |
| 315 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 320 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |