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 13 matching lines...) Expand all Loading... |
24 'xp-newlib-opt': | 24 'xp-newlib-opt': |
25 python + ' buildbot\\buildbot_standard.py opt 32 newlib', | 25 python + ' buildbot\\buildbot_standard.py opt 32 newlib', |
26 'xp-glibc-opt': | 26 'xp-glibc-opt': |
27 python + ' buildbot\\buildbot_standard.py opt 32 glibc', | 27 python + ' buildbot\\buildbot_standard.py opt 32 glibc', |
28 | 28 |
29 'xp-bare-newlib-opt': | 29 'xp-bare-newlib-opt': |
30 python + ' buildbot\\buildbot_standard.py opt 32 newlib', | 30 python + ' buildbot\\buildbot_standard.py opt 32 newlib', |
31 'xp-bare-glibc-opt': | 31 'xp-bare-glibc-opt': |
32 python + ' buildbot\\buildbot_standard.py opt 32 glibc', | 32 python + ' buildbot\\buildbot_standard.py opt 32 glibc', |
33 | 33 |
34 'precise-64-validator-opt': | 34 'linux-64-validator-opt': |
35 python + ' buildbot/buildbot_standard.py opt 64 glibc --validator', | 35 python + ' buildbot/buildbot_standard.py opt 64 glibc --validator', |
36 | 36 |
37 # ASan. | 37 # ASan. |
38 'precise_64-newlib-dbg-asan': | 38 'linux_64-newlib-dbg-asan': |
39 python + ' buildbot/buildbot_standard.py opt 64 newlib --asan', | 39 python + ' buildbot/buildbot_standard.py opt 64 newlib --asan', |
40 'mac-newlib-dbg-asan': | 40 'mac-newlib-dbg-asan': |
41 python + ' buildbot/buildbot_standard.py opt 32 newlib --asan', | 41 python + ' buildbot/buildbot_standard.py opt 32 newlib --asan', |
42 | 42 |
43 # Sanitizer Pnacl toolchain buildbot. | 43 # Sanitizer Pnacl toolchain buildbot. |
44 'asan': | 44 'asan': |
45 python + | 45 python + |
46 ' buildbot/buildbot_pnacl_toolchain.py --buildbot --tests-arch x86-64 ' | 46 ' buildbot/buildbot_pnacl_toolchain.py --buildbot --tests-arch x86-64 ' |
47 ' --sanitize address --skip-tests', | 47 ' --sanitize address --skip-tests', |
48 | 48 |
49 # PNaCl. | 49 # PNaCl. |
50 'oneiric_32-newlib-arm_hw-pnacl-panda-dbg': | 50 'oneiric_32-newlib-arm_hw-pnacl-panda-dbg': |
51 bash + ' buildbot/buildbot_pnacl.sh mode-buildbot-arm-hw-dbg', | 51 bash + ' buildbot/buildbot_pnacl.sh mode-buildbot-arm-hw-dbg', |
52 'oneiric_32-newlib-arm_hw-pnacl-panda-opt': | 52 'oneiric_32-newlib-arm_hw-pnacl-panda-opt': |
53 bash + ' buildbot/buildbot_pnacl.sh mode-buildbot-arm-hw-opt', | 53 bash + ' buildbot/buildbot_pnacl.sh mode-buildbot-arm-hw-opt', |
54 'precise_64-newlib-arm_qemu-pnacl-dbg': | 54 'linux_64-newlib-arm_qemu-pnacl-dbg': |
55 bash + ' buildbot/buildbot_pnacl.sh mode-buildbot-arm-dbg', | 55 bash + ' buildbot/buildbot_pnacl.sh mode-buildbot-arm-dbg', |
56 'precise_64-newlib-arm_qemu-pnacl-opt': | 56 'linux_64-newlib-arm_qemu-pnacl-opt': |
57 bash + ' buildbot/buildbot_pnacl.sh mode-buildbot-arm-opt', | 57 bash + ' buildbot/buildbot_pnacl.sh mode-buildbot-arm-opt', |
58 'precise_64-newlib-x86_32-pnacl': | 58 'linux_64-newlib-x86_32-pnacl': |
59 python + ' buildbot/buildbot_pnacl.py opt 32 pnacl', | 59 python + ' buildbot/buildbot_pnacl.py opt 32 pnacl', |
60 'precise_64-newlib-x86_64-pnacl': | 60 'linux_64-newlib-x86_64-pnacl': |
61 python + ' buildbot/buildbot_pnacl.py opt 64 pnacl', | 61 python + ' buildbot/buildbot_pnacl.py opt 64 pnacl', |
62 'mac-newlib-opt-pnacl': | 62 'mac-newlib-opt-pnacl': |
63 python + ' buildbot/buildbot_pnacl.py opt 64 pnacl', | 63 python + ' buildbot/buildbot_pnacl.py opt 64 pnacl', |
64 'win7-64-newlib-opt-pnacl': | 64 'win7-64-newlib-opt-pnacl': |
65 python + ' buildbot/buildbot_pnacl.py opt 64 pnacl', | 65 python + ' buildbot/buildbot_pnacl.py opt 64 pnacl', |
66 # TODO: Use buildbot_pnacl.py instead of buildbot_pnacl.sh once | 66 # TODO: Use buildbot_pnacl.py instead of buildbot_pnacl.sh once |
67 # the gyp_build is moved to buildbot_pnacl.py. | 67 # the gyp_build is moved to buildbot_pnacl.py. |
68 'precise_64-newlib-mips-pnacl': | 68 'linux_64-newlib-mips-pnacl': |
69 bash + ' buildbot/buildbot_pnacl.sh mode-trybot-qemu mips32', | 69 bash + ' buildbot/buildbot_pnacl.sh mode-trybot-qemu mips32', |
70 # PNaCl Spec | 70 # PNaCl Spec |
71 'precise_64-newlib-arm_qemu-pnacl-buildonly-spec': | 71 'linux_64-newlib-arm_qemu-pnacl-buildonly-spec': |
72 bash + ' buildbot/buildbot_spec2k.sh pnacl-arm-buildonly', | 72 bash + ' buildbot/buildbot_spec2k.sh pnacl-arm-buildonly', |
73 'oneiric_32-newlib-arm_hw-pnacl-panda-spec': | 73 'oneiric_32-newlib-arm_hw-pnacl-panda-spec': |
74 bash + ' buildbot/buildbot_spec2k.sh pnacl-arm-hw', | 74 bash + ' buildbot/buildbot_spec2k.sh pnacl-arm-hw', |
75 'lucid_64-newlib-x86_32-pnacl-spec': | 75 'linux_64-newlib-x86_32-pnacl-spec': |
76 bash + ' buildbot/buildbot_spec2k.sh pnacl-x8632', | 76 bash + ' buildbot/buildbot_spec2k.sh pnacl-x8632', |
77 'lucid_64-newlib-x86_64-pnacl-spec': | 77 'linux_64-newlib-x86_64-pnacl-spec': |
78 bash + ' buildbot/buildbot_spec2k.sh pnacl-x8664', | 78 bash + ' buildbot/buildbot_spec2k.sh pnacl-x8664', |
79 # NaCl Spec | 79 # NaCl Spec |
80 'lucid_64-newlib-x86_32-spec': | 80 'linux_64-newlib-x86_32-spec': |
81 bash + ' buildbot/buildbot_spec2k.sh nacl-x8632', | 81 bash + ' buildbot/buildbot_spec2k.sh nacl-x8632', |
82 'lucid_64-newlib-x86_64-spec': | 82 'linux_64-newlib-x86_64-spec': |
83 bash + ' buildbot/buildbot_spec2k.sh nacl-x8664', | 83 bash + ' buildbot/buildbot_spec2k.sh nacl-x8664', |
84 | 84 |
85 # Valgrind bots. | 85 # Valgrind bots. |
86 'precise-64-newlib-dbg-valgrind': | 86 'linux-64-newlib-dbg-valgrind': |
87 echo + ' "Valgrind bots are disabled: see ' | 87 echo + ' "Valgrind bots are disabled: see ' |
88 'https://code.google.com/p/nativeclient/issues/detail?id=3158"', | 88 'https://code.google.com/p/nativeclient/issues/detail?id=3158"', |
89 'precise-64-glibc-dbg-valgrind': | 89 'linux-64-glibc-dbg-valgrind': |
90 echo + ' "Valgrind bots are disabled: see ' | 90 echo + ' "Valgrind bots are disabled: see ' |
91 'https://code.google.com/p/nativeclient/issues/detail?id=3158"', | 91 'https://code.google.com/p/nativeclient/issues/detail?id=3158"', |
92 | 92 |
93 ###################################################################### | 93 ###################################################################### |
94 # Trybots. | 94 # Trybots. |
95 ###################################################################### | 95 ###################################################################### |
96 'nacl-precise64_validator_opt': | 96 'nacl-precise64_validator_opt': |
97 python + ' buildbot/buildbot_standard.py opt 64 glibc --validator', | 97 python + ' buildbot/buildbot_standard.py opt 64 glibc --validator', |
98 # Android trybots. | 98 # Android trybots. |
99 'nacl-precise64-newlib-dbg-android': | 99 'nacl-precise64-newlib-dbg-android': |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 'win7-toolchain_arm': | 139 'win7-toolchain_arm': |
140 python + | 140 python + |
141 ' buildbot/buildbot_toolchain_build.py' | 141 ' buildbot/buildbot_toolchain_build.py' |
142 ' --buildbot' | 142 ' --buildbot' |
143 ' toolchain_build', | 143 ' toolchain_build', |
144 'mac-toolchain_arm': | 144 'mac-toolchain_arm': |
145 python + | 145 python + |
146 ' buildbot/buildbot_toolchain_build.py' | 146 ' buildbot/buildbot_toolchain_build.py' |
147 ' --buildbot' | 147 ' --buildbot' |
148 ' toolchain_build', | 148 ' toolchain_build', |
149 'precise64-toolchain_arm': | 149 'linux64-toolchain_arm': |
150 python + | 150 python + |
151 ' buildbot/buildbot_toolchain_build.py' | 151 ' buildbot/buildbot_toolchain_build.py' |
152 ' --buildbot' | 152 ' --buildbot' |
153 ' --test_toolchain nacl_arm_glibc_raw' | 153 ' --test_toolchain nacl_arm_glibc_raw' |
154 ' toolchain_build', | 154 ' toolchain_build', |
155 | 155 |
156 # Pnacl toolchain builders. | 156 # Pnacl toolchain builders. |
157 'linux-pnacl-x86_32': | 157 'linux-pnacl-x86_32': |
158 python + | 158 python + |
159 ' buildbot/buildbot_pnacl_toolchain.py --buildbot --tests-arch x86-32', | 159 ' buildbot/buildbot_pnacl_toolchain.py --buildbot --tests-arch x86-32', |
(...skipping 13 matching lines...) Expand all 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-precise64-newlib-arm': # TODO(bradnelson): rename | 183 'nacl-toolchain-linux64-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-precise64-glibc': | 199 'nacl-toolchain-linux64-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 24 matching lines...) Expand all Loading... |
234 'nacl-toolchain-ubsan': | 234 'nacl-toolchain-ubsan': |
235 python + | 235 python + |
236 ' buildbot/buildbot_pnacl_toolchain.py --trybot --tests-arch x86-64 ' | 236 ' buildbot/buildbot_pnacl_toolchain.py --trybot --tests-arch x86-64 ' |
237 ' --sanitize undefined --skip-tests', | 237 ' --sanitize undefined --skip-tests', |
238 | 238 |
239 } | 239 } |
240 | 240 |
241 special_for_arm = [ | 241 special_for_arm = [ |
242 'win7_64', | 242 'win7_64', |
243 'win7-64', | 243 'win7-64', |
244 'lucid-64', | 244 'linux-64', |
245 'lucid64', | 245 'linux64' |
246 'precise-64', | |
247 'precise64' | |
248 ] | 246 ] |
249 for platform in [ | 247 for platform in [ |
250 'vista', 'win7', 'win8', 'win', | 248 'vista', 'win7', 'win8', 'win', |
251 'mac', 'lucid', 'precise'] + special_for_arm: | 249 'mac', 'linux'] + special_for_arm: |
252 if platform in special_for_arm: | 250 if platform in special_for_arm: |
253 arch_variants = ['arm'] | 251 arch_variants = ['arm'] |
254 else: | 252 else: |
255 arch_variants = ['', '32', '64', 'arm'] | 253 arch_variants = ['', '32', '64', 'arm'] |
256 for arch in arch_variants: | 254 for arch in arch_variants: |
257 arch_flags = '' | 255 arch_flags = '' |
258 real_arch = arch | 256 real_arch = arch |
259 arch_part = '-' + arch | 257 arch_part = '-' + arch |
260 if platform == 'win7' and arch == '32': | 258 if platform == 'win7' and arch == '32': |
261 arch_flags += ' --no-goma' | 259 arch_flags += ' --no-goma' |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 ]) | 421 ]) |
424 | 422 |
425 print "%s runs: %s\n" % (builder, cmd) | 423 print "%s runs: %s\n" % (builder, cmd) |
426 sys.stdout.flush() | 424 sys.stdout.flush() |
427 retcode = subprocess.call(cmd, env=env, shell=True) | 425 retcode = subprocess.call(cmd, env=env, shell=True) |
428 sys.exit(retcode) | 426 sys.exit(retcode) |
429 | 427 |
430 | 428 |
431 if __name__ == '__main__': | 429 if __name__ == '__main__': |
432 Main() | 430 Main() |
OLD | NEW |