| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import json | 6 import json |
| 7 import os | 7 import os |
| 8 import subprocess | 8 import subprocess |
| 9 import sys | 9 import sys |
| 10 import tempfile | 10 import tempfile |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 'linux-pnacl-x86_64-tests-x86_32': | 173 'linux-pnacl-x86_64-tests-x86_32': |
| 174 bash + ' buildbot/buildbot_pnacl_toolchain_tests.sh tc-test-bot x86-32', | 174 bash + ' buildbot/buildbot_pnacl_toolchain_tests.sh tc-test-bot x86-32', |
| 175 'linux-pnacl-x86_64-tests-arm': | 175 'linux-pnacl-x86_64-tests-arm': |
| 176 bash + ' buildbot/buildbot_pnacl_toolchain_tests.sh tc-test-bot arm', | 176 bash + ' buildbot/buildbot_pnacl_toolchain_tests.sh tc-test-bot arm', |
| 177 | 177 |
| 178 # MIPS toolchain buildbot. | 178 # MIPS toolchain buildbot. |
| 179 'linux-pnacl-x86_32-tests-mips': | 179 'linux-pnacl-x86_32-tests-mips': |
| 180 bash + ' buildbot/buildbot_pnacl.sh mode-trybot-qemu mips32', | 180 bash + ' buildbot/buildbot_pnacl.sh mode-trybot-qemu mips32', |
| 181 | 181 |
| 182 # Toolchain trybots. | 182 # Toolchain trybots. |
| 183 'nacl-toolchain-linux64-newlib-arm': # TODO(bradnelson): rename | 183 'nacl-toolchain-precise64-newlib-arm': # TODO(bradnelson): rename |
| 184 python + | 184 python + |
| 185 ' buildbot/buildbot_toolchain_build.py' | 185 ' buildbot/buildbot_toolchain_build.py' |
| 186 ' --trybot' | 186 ' --trybot' |
| 187 ' --test_toolchain nacl_arm_glibc_raw' | 187 ' --test_toolchain nacl_arm_glibc_raw' |
| 188 ' toolchain_build', | 188 ' toolchain_build', |
| 189 'nacl-toolchain-mac-newlib-arm': # TODO(bradnelson): rename | 189 'nacl-toolchain-mac-newlib-arm': # TODO(bradnelson): rename |
| 190 python + | 190 python + |
| 191 ' buildbot/buildbot_toolchain_build.py' | 191 ' buildbot/buildbot_toolchain_build.py' |
| 192 ' --trybot' | 192 ' --trybot' |
| 193 ' toolchain_build', | 193 ' toolchain_build', |
| 194 'nacl-toolchain-win7-newlib-arm': # TODO(bradnelson): rename | 194 'nacl-toolchain-win7-newlib-arm': # TODO(bradnelson): rename |
| 195 python + | 195 python + |
| 196 ' buildbot/buildbot_toolchain_build.py' | 196 ' buildbot/buildbot_toolchain_build.py' |
| 197 ' --trybot' | 197 ' --trybot' |
| 198 ' toolchain_build', | 198 ' toolchain_build', |
| 199 'nacl-toolchain-linux64-glibc': | 199 'nacl-toolchain-precise64-glibc': |
| 200 bash + ' buildbot/buildbot_linux-glibc-makefile.sh', | 200 bash + ' buildbot/buildbot_linux-glibc-makefile.sh', |
| 201 'nacl-toolchain-mac-glibc': | 201 'nacl-toolchain-mac-glibc': |
| 202 bash + ' buildbot/buildbot_mac-glibc-makefile.sh', | 202 bash + ' buildbot/buildbot_mac-glibc-makefile.sh', |
| 203 'nacl-toolchain-win7-glibc': | 203 'nacl-toolchain-win7-glibc': |
| 204 'buildbot\\buildbot_windows-glibc-makefile.bat', | 204 'buildbot\\buildbot_windows-glibc-makefile.bat', |
| 205 | 205 |
| 206 # Pnacl toolchain trybots. | 206 # Pnacl toolchain trybots. |
| 207 'nacl-toolchain-linux-pnacl-x86_32': | 207 'nacl-toolchain-linux-pnacl-x86_32': |
| 208 python + | 208 python + |
| 209 ' buildbot/buildbot_pnacl_toolchain.py --trybot --tests-arch x86-32', | 209 ' buildbot/buildbot_pnacl_toolchain.py --trybot --tests-arch x86-32', |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 # Buildbots. | 271 # Buildbots. |
| 272 for bare in ['', '-bare']: | 272 for bare in ['', '-bare']: |
| 273 for test in ['', '-test']: | 273 for test in ['', '-test']: |
| 274 name = platform + arch_part + bare + '-' + libc + '-' + mode + test | 274 name = platform + arch_part + bare + '-' + libc + '-' + mode + test |
| 275 assert name not in BOT_ASSIGNMENT, name | 275 assert name not in BOT_ASSIGNMENT, name |
| 276 BOT_ASSIGNMENT[name] = ( | 276 BOT_ASSIGNMENT[name] = ( |
| 277 python + ' buildbot/buildbot_standard.py ' + | 277 python + ' buildbot/buildbot_standard.py ' + |
| 278 mode + ' ' + real_arch + ' ' + libc + arch_flags) | 278 mode + ' ' + real_arch + ' ' + libc + arch_flags) |
| 279 # Trybots | 279 # Trybots |
| 280 for arch_sep in ['', '-', '_']: | 280 for arch_sep in ['', '-', '_']: |
| 281 name = 'nacl-' + platform + arch_sep + arch + '_' + libc + '_' + mode | 281 p = platform.replace('linux', 'precise') |
| 282 name = 'nacl-' + p + arch_sep + arch + '_' + libc + '_' + mode |
| 282 assert name not in BOT_ASSIGNMENT, name | 283 assert name not in BOT_ASSIGNMENT, name |
| 283 BOT_ASSIGNMENT[name] = ( | 284 BOT_ASSIGNMENT[name] = ( |
| 284 python + ' buildbot/buildbot_standard.py ' + | 285 python + ' buildbot/buildbot_standard.py ' + |
| 285 mode + ' ' + real_arch + ' ' + libc + arch_flags) | 286 mode + ' ' + real_arch + ' ' + libc + arch_flags) |
| 286 | 287 |
| 287 | 288 |
| 288 def EscapeJson(data): | 289 def EscapeJson(data): |
| 289 return '"' + json.dumps(data).replace('"', r'\"') + '"' | 290 return '"' + json.dumps(data).replace('"', r'\"') + '"' |
| 290 | 291 |
| 291 | 292 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 ]) | 422 ]) |
| 422 | 423 |
| 423 print "%s runs: %s\n" % (builder, cmd) | 424 print "%s runs: %s\n" % (builder, cmd) |
| 424 sys.stdout.flush() | 425 sys.stdout.flush() |
| 425 retcode = subprocess.call(cmd, env=env, shell=True) | 426 retcode = subprocess.call(cmd, env=env, shell=True) |
| 426 sys.exit(retcode) | 427 sys.exit(retcode) |
| 427 | 428 |
| 428 | 429 |
| 429 if __name__ == '__main__': | 430 if __name__ == '__main__': |
| 430 Main() | 431 Main() |
| OLD | NEW |