| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['dart2js'], | 247 TestStep("dart2js_unit", mode, system, 'none', 'vm', ['dart2js'], |
| 248 unit_test_flags, arch) | 248 unit_test_flags, arch) |
| 249 | 249 |
| 250 if system == 'windows' and runtime == 'ie10': | 250 if system == 'windows' and runtime == 'ie10': |
| 251 TestStep("dart2js", mode, system, 'dart2js', runtime, ['html'], flags, arch) | 251 TestStep("dart2js", mode, system, 'dart2js', runtime, ['html'], flags, arch) |
| 252 else: | 252 else: |
| 253 # Run the default set of test suites. | 253 # Run the default set of test suites. |
| 254 TestStep("dart2js", mode, system, 'dart2js', runtime, [], flags, arch) | 254 TestStep("dart2js", mode, system, 'dart2js', runtime, [], flags, arch) |
| 255 | 255 |
| 256 # TODO(kasperl): Consider running peg and css tests too. | 256 # TODO(kasperl): Consider running peg and css tests too. |
| 257 extras = ['dart2js_extra', 'dart2js_native', 'dart2js_foreign'] | 257 extras = ['dart2js_extra', 'dart2js_native'] |
| 258 extras_flags = flags | 258 extras_flags = flags |
| 259 if (system == 'linux' | 259 if (system == 'linux' |
| 260 and runtime == 'd8' | 260 and runtime == 'd8' |
| 261 and not '--host-checked' in extras_flags): | 261 and not '--host-checked' in extras_flags): |
| 262 # Run the extra tests in checked mode, but only on linux/d8. | 262 # Run the extra tests in checked mode, but only on linux/d8. |
| 263 # Other systems have less resources and tend to time out. | 263 # Other systems have less resources and tend to time out. |
| 264 extras_flags = extras_flags + ['--host-checked'] | 264 extras_flags = extras_flags + ['--host-checked'] |
| 265 TestStep("dart2js_extra", mode, system, 'dart2js', runtime, extras, | 265 TestStep("dart2js_extra", mode, system, 'dart2js', runtime, extras, |
| 266 extras_flags, arch) | 266 extras_flags, arch) |
| 267 | 267 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 """ | 384 """ |
| 385 with bot.BuildStep('Build SDK and d8'): | 385 with bot.BuildStep('Build SDK and d8'): |
| 386 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 386 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 387 '--arch=' + build_info.arch, 'dart2js_bot'] | 387 '--arch=' + build_info.arch, 'dart2js_bot'] |
| 388 print 'Build SDK and d8: %s' % (' '.join(args)) | 388 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 389 bot.RunProcess(args) | 389 bot.RunProcess(args) |
| 390 | 390 |
| 391 | 391 |
| 392 if __name__ == '__main__': | 392 if __name__ == '__main__': |
| 393 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 393 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |