| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 # root permissions. | 296 # root permissions. |
| 297 _DeleteTempWebdriverProfiles('/tmp') | 297 _DeleteTempWebdriverProfiles('/tmp') |
| 298 _DeleteTempWebdriverProfiles('/var/tmp') | 298 _DeleteTempWebdriverProfiles('/var/tmp') |
| 299 | 299 |
| 300 | 300 |
| 301 def GetHasHardCodedCheckedMode(build_info): | 301 def GetHasHardCodedCheckedMode(build_info): |
| 302 # TODO(ricow): We currently run checked mode tests on chrome on linux and | 302 # TODO(ricow): We currently run checked mode tests on chrome on linux and |
| 303 # on the slow (all) IE windows bots. This is a hack and we should use the | 303 # on the slow (all) IE windows bots. This is a hack and we should use the |
| 304 # normal sharding and checked splitting functionality when we get more | 304 # normal sharding and checked splitting functionality when we get more |
| 305 # vms for testing this. | 305 # vms for testing this. |
| 306 if (build_info.system == 'linux' and build_info.runtime == 'chrome'): | 306 if (build_info.system == 'linux' and build_info.runtime == 'drt'): |
| 307 return True | 307 return True |
| 308 if build_info.runtime.startswith('ie') and build_info.test_set == 'all': | 308 if build_info.runtime.startswith('ie') and build_info.test_set == 'all': |
| 309 return True | 309 return True |
| 310 return False | 310 return False |
| 311 | 311 |
| 312 | 312 |
| 313 def GetLocalIPAddress(): | 313 def GetLocalIPAddress(): |
| 314 hostname = socket.gethostname() | 314 hostname = socket.gethostname() |
| 315 # '$ host chromeperf02' results for example in | 315 # '$ host chromeperf02' results for example in |
| 316 # 'chromeperf02.perf.chromium.org has address 172.22.28.55' | 316 # 'chromeperf02.perf.chromium.org has address 172.22.28.55' |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 """ | 375 """ |
| 376 with bot.BuildStep('Build SDK and d8'): | 376 with bot.BuildStep('Build SDK and d8'): |
| 377 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 377 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 378 'dart2js_bot'] | 378 'dart2js_bot'] |
| 379 print 'Build SDK and d8: %s' % (' '.join(args)) | 379 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 380 bot.RunProcess(args) | 380 bot.RunProcess(args) |
| 381 | 381 |
| 382 | 382 |
| 383 if __name__ == '__main__': | 383 if __name__ == '__main__': |
| 384 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 384 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |