| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 extras_flags = flags | 275 extras_flags = flags |
| 276 if (system == 'linux' | 276 if (system == 'linux' |
| 277 and runtime == 'd8' | 277 and runtime == 'd8' |
| 278 and not '--host-checked' in extras_flags): | 278 and not '--host-checked' in extras_flags): |
| 279 # Run the extra tests in checked mode, but only on linux/d8. | 279 # Run the extra tests in checked mode, but only on linux/d8. |
| 280 # Other systems have less resources and tend to time out. | 280 # Other systems have less resources and tend to time out. |
| 281 extras_flags = extras_flags + ['--host-checked'] | 281 extras_flags = extras_flags + ['--host-checked'] |
| 282 TestStep("dart2js_extra", mode, system, 'dart2js', runtime, extras, | 282 TestStep("dart2js_extra", mode, system, 'dart2js', runtime, extras, |
| 283 extras_flags, arch) | 283 extras_flags, arch) |
| 284 | 284 |
| 285 TestStep("try_dart", mode, system, 'dart2js', runtime, ['try'], |
| 286 extras_flags, arch) |
| 287 |
| 288 |
| 285 def GetHasHardCodedCheckedMode(build_info): | 289 def GetHasHardCodedCheckedMode(build_info): |
| 286 # TODO(ricow): We currently run checked mode tests on chrome on linux and | 290 # TODO(ricow): We currently run checked mode tests on chrome on linux and |
| 287 # on the slow (all) IE windows bots. This is a hack and we should use the | 291 # on the slow (all) IE windows bots. This is a hack and we should use the |
| 288 # normal sharding and checked splitting functionality when we get more | 292 # normal sharding and checked splitting functionality when we get more |
| 289 # vms for testing this. | 293 # vms for testing this. |
| 290 if (build_info.system == 'linux' and build_info.runtime == 'drt'): | 294 if (build_info.system == 'linux' and build_info.runtime == 'drt'): |
| 291 return True | 295 return True |
| 292 if build_info.runtime.startswith('ie') and build_info.test_set == 'all': | 296 if build_info.runtime.startswith('ie') and build_info.test_set == 'all': |
| 293 return True | 297 return True |
| 294 return False | 298 return False |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 """ | 371 """ |
| 368 with bot.BuildStep('Build SDK'): | 372 with bot.BuildStep('Build SDK'): |
| 369 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 373 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 370 '--arch=' + build_info.arch, 'dart2js_bot'] | 374 '--arch=' + build_info.arch, 'dart2js_bot'] |
| 371 print 'Build SDK and d8: %s' % (' '.join(args)) | 375 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 372 bot.RunProcess(args) | 376 bot.RunProcess(args) |
| 373 | 377 |
| 374 | 378 |
| 375 if __name__ == '__main__': | 379 if __name__ == '__main__': |
| 376 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 380 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |