| 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. |
| 11 """ | 11 """ |
| 12 | 12 |
| 13 import os | 13 import os |
| 14 import platform | 14 import platform |
| 15 import re | 15 import re |
| 16 import shutil | 16 import shutil |
| 17 import socket | 17 import socket |
| 18 import string | 18 import string |
| 19 import subprocess | 19 import subprocess |
| 20 import sys | 20 import sys |
| 21 | 21 |
| 22 import bot | 22 import bot |
| 23 | 23 |
| 24 DARTIUM_BUILDER = r'none-dartium-(linux|mac|windows)' | 24 DARTIUM_BUILDER = r'none-dartium-(linux|mac|windows)' |
| 25 DART2JS_BUILDER = ( | 25 DART2JS_BUILDER = ( |
| 26 r'dart2js-(linux|mac|windows)(-(jsshell))?-(debug|release)(-(checked|host-ch
ecked))?(-(host-checked))?(-(minified))?(-(x64))?(-(batch))?-?(\d*)-?(\d*)') | 26 r'dart2js-(linux|mac|windows)(-(jsshell))?-(debug|release)(-(checked|host-ch
ecked))?(-(host-checked))?(-(minified))?(-(x64))?-?(\d*)-?(\d*)') |
| 27 DART2JS_FULL_BUILDER = r'full-(linux|mac|win7|win8)(-(ie10|ie11))?(-checked)?(-m
inified)?-(\d+)-(\d+)' | 27 DART2JS_FULL_BUILDER = r'full-(linux|mac|win7|win8)(-(ie10|ie11))?(-checked)?(-m
inified)?-(\d+)-(\d+)' |
| 28 WEB_BUILDER = ( | 28 WEB_BUILDER = ( |
| 29 r'dart2js-(ie9|ie10|ie11|ff|safari|chrome|chromeOnAndroid|safarimobilesim|op
era|drt)-(win7|win8|mac10\.7|mac10\.8|mac10\.9|linux)(-(all|html))?(-(csp))?(-(\
d+)-(\d+))?') | 29 r'dart2js-(ie9|ie10|ie11|ff|safari|chrome|chromeOnAndroid|safarimobilesim|op
era|drt)-(win7|win8|mac10\.7|mac10\.8|mac10\.9|linux)(-(all|html))?(-(csp))?(-(\
d+)-(\d+))?') |
| 30 | 30 |
| 31 IE_VERSIONS = ['ie10', 'ie11'] | 31 IE_VERSIONS = ['ie10', 'ie11'] |
| 32 | 32 |
| 33 DART2JS_FULL_CONFIGURATIONS = { | 33 DART2JS_FULL_CONFIGURATIONS = { |
| 34 'linux' : [ ], | 34 'linux' : [ |
| 35 {'runtime' : 'ff'}, |
| 36 {'runtime' : 'chrome'}, |
| 37 ], |
| 35 'mac' : [ ], | 38 'mac' : [ ], |
| 36 'windows-ie10' : [ | 39 'windows-ie10' : [ |
| 37 {'runtime' : 'ie10'}, | 40 {'runtime' : 'ie10'}, |
| 38 {'runtime' : 'ie10', 'additional_flags' : ['--checked']}, | 41 {'runtime' : 'ie10', 'additional_flags' : ['--checked']}, |
| 39 {'runtime' : 'chrome'}, | 42 {'runtime' : 'chrome'}, |
| 40 ], | 43 ], |
| 41 'windows-ie11' : [ | 44 'windows-ie11' : [ |
| 42 {'runtime' : 'ie11'}, | 45 {'runtime' : 'ie11'}, |
| 43 {'runtime' : 'ie11', 'additional_flags' : ['--checked']}, | 46 {'runtime' : 'ie11', 'additional_flags' : ['--checked']}, |
| 44 {'runtime' : 'ff'}, | 47 {'runtime' : 'ff'}, |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 if dart2js_pattern.group(6) == 'checked': | 119 if dart2js_pattern.group(6) == 'checked': |
| 117 checked = True | 120 checked = True |
| 118 if dart2js_pattern.group(6) == 'host-checked': | 121 if dart2js_pattern.group(6) == 'host-checked': |
| 119 host_checked = True | 122 host_checked = True |
| 120 if dart2js_pattern.group(8) == 'host-checked': | 123 if dart2js_pattern.group(8) == 'host-checked': |
| 121 host_checked = True | 124 host_checked = True |
| 122 if dart2js_pattern.group(10) == 'minified': | 125 if dart2js_pattern.group(10) == 'minified': |
| 123 minified = True | 126 minified = True |
| 124 if dart2js_pattern.group(12) == 'x64': | 127 if dart2js_pattern.group(12) == 'x64': |
| 125 arch = 'x64' | 128 arch = 'x64' |
| 126 shard_index = dart2js_pattern.group(15) | 129 shard_index = dart2js_pattern.group(13) |
| 127 total_shards = dart2js_pattern.group(16) | 130 total_shards = dart2js_pattern.group(14) |
| 128 elif dartium_pattern: | 131 elif dartium_pattern: |
| 129 compiler = 'none' | 132 compiler = 'none' |
| 130 runtime = 'dartium' | 133 runtime = 'dartium' |
| 131 mode = 'release' | 134 mode = 'release' |
| 132 system = dartium_pattern.group(1) | 135 system = dartium_pattern.group(1) |
| 133 else : | 136 else : |
| 134 return None | 137 return None |
| 135 | 138 |
| 136 # We have both win7 and win8 bots, functionality is the same. | 139 # We have both win7 and win8 bots, functionality is the same. |
| 137 if system.startswith('win'): | 140 if system.startswith('win'): |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 if build_info.mode == 'debug': | 408 if build_info.mode == 'debug': |
| 406 target = 'dart2js_bot_debug' | 409 target = 'dart2js_bot_debug' |
| 407 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, | 410 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, |
| 408 '--arch=' + build_info.arch, target] | 411 '--arch=' + build_info.arch, target] |
| 409 print 'Build SDK and d8: %s' % (' '.join(args)) | 412 print 'Build SDK and d8: %s' % (' '.join(args)) |
| 410 bot.RunProcess(args) | 413 bot.RunProcess(args) |
| 411 | 414 |
| 412 | 415 |
| 413 if __name__ == '__main__': | 416 if __name__ == '__main__': |
| 414 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) | 417 bot.RunBot(GetBuildInfo, RunCompilerTests, build_step=BuildCompiler) |
| OLD | NEW |