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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 real_arch = arch | 258 real_arch = arch |
259 arch_part = '-' + arch | 259 arch_part = '-' + arch |
260 if platform == 'win7' and arch == '32': | 260 if platform == 'win7' and arch == '32': |
261 arch_flags += ' --no-goma' | 261 arch_flags += ' --no-goma' |
262 if arch == '': | 262 if arch == '': |
263 arch_part = '' | 263 arch_part = '' |
264 real_arch = '32' | 264 real_arch = '32' |
265 # Test with Breakpad tools only on basic Linux builds. | 265 # Test with Breakpad tools only on basic Linux builds. |
266 if sys.platform.startswith('linux'): | 266 if sys.platform.startswith('linux'): |
267 arch_flags += ' --use-breakpad-tools' | 267 arch_flags += ' --use-breakpad-tools' |
| 268 # GN executable can no longer run on Vista. |
| 269 if platform == 'vista': |
| 270 arch_flags += ' --no-gn' |
268 for mode in ['dbg', 'opt']: | 271 for mode in ['dbg', 'opt']: |
269 for libc in ['newlib', 'glibc']: | 272 for libc in ['newlib', 'glibc']: |
270 # Buildbots. | 273 # Buildbots. |
271 for bare in ['', '-bare']: | 274 for bare in ['', '-bare']: |
272 for test in ['', '-test']: | 275 for test in ['', '-test']: |
273 name = platform + arch_part + bare + '-' + libc + '-' + mode + test | 276 name = platform + arch_part + bare + '-' + libc + '-' + mode + test |
274 assert name not in BOT_ASSIGNMENT, name | 277 assert name not in BOT_ASSIGNMENT, name |
275 BOT_ASSIGNMENT[name] = ( | 278 BOT_ASSIGNMENT[name] = ( |
276 python + ' buildbot/buildbot_standard.py ' + | 279 python + ' buildbot/buildbot_standard.py ' + |
277 mode + ' ' + real_arch + ' ' + libc + arch_flags) | 280 mode + ' ' + real_arch + ' ' + libc + arch_flags) |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 ]) | 423 ]) |
421 | 424 |
422 print "%s runs: %s\n" % (builder, cmd) | 425 print "%s runs: %s\n" % (builder, cmd) |
423 sys.stdout.flush() | 426 sys.stdout.flush() |
424 retcode = subprocess.call(cmd, env=env, shell=True) | 427 retcode = subprocess.call(cmd, env=env, shell=True) |
425 sys.exit(retcode) | 428 sys.exit(retcode) |
426 | 429 |
427 | 430 |
428 if __name__ == '__main__': | 431 if __name__ == '__main__': |
429 Main() | 432 Main() |
OLD | NEW |