Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Side by Side Diff: buildbot/buildbot_pnacl.py

Issue 1698523003: Subzero: Add x86-64 to the bots. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Disable Subzero x86-64 translator tests for now Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | buildbot/buildbot_pnacl_toolchain_tests.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2013 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 os 6 import os
7 import sys 7 import sys
8 8
9 from buildbot_lib import ( 9 from buildbot_lib import (
10 BuildContext, BuildStatus, Command, ParseStandardCommandLine, 10 BuildContext, BuildStatus, Command, ParseStandardCommandLine,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 flags_run.extend(['naclsdk_validate=0', 'built_elsewhere=1']) 53 flags_run.extend(['naclsdk_validate=0', 'built_elsewhere=1'])
54 54
55 if not context['skip_build']: 55 if not context['skip_build']:
56 # For ARM builders which will trigger hardware testers, run the hello world 56 # For ARM builders which will trigger hardware testers, run the hello world
57 # test with the emulator as a basic sanity check before doing anything else. 57 # test with the emulator as a basic sanity check before doing anything else.
58 if arch == 'arm' and context['skip_run']: 58 if arch == 'arm' and context['skip_run']:
59 with Step('hello_world ' + arch, status): 59 with Step('hello_world ' + arch, status):
60 SCons(context, parallel=True, args=['run_hello_world_test']) 60 SCons(context, parallel=True, args=['run_hello_world_test'])
61 with Step('build_all ' + arch, status): 61 with Step('build_all ' + arch, status):
62 SCons(context, parallel=True, args=flags_build) 62 SCons(context, parallel=True, args=flags_build)
63 if arch == 'x86-32': 63 if arch in ('x86-32', 'x86-64'):
64 with Step('build_all subzero ' + arch, status): 64 with Step('build_all subzero ' + arch, status):
65 SCons(context, parallel=True, args=flags_build + flags_subzero) 65 SCons(context, parallel=True, args=flags_build + flags_subzero)
66 66
67 smoke_tests = ['small_tests', 'medium_tests'] 67 smoke_tests = ['small_tests', 'medium_tests']
68 # Normal pexe-mode tests 68 # Normal pexe-mode tests
69 with Step('smoke_tests ' + arch, status, halt_on_fail=False): 69 with Step('smoke_tests ' + arch, status, halt_on_fail=False):
70 SCons(context, parallel=True, args=flags_run + smoke_tests) 70 SCons(context, parallel=True, args=flags_run + smoke_tests)
71 # Large tests cannot be run in parallel 71 # Large tests cannot be run in parallel
72 with Step('large_tests ' + arch, status, halt_on_fail=False): 72 with Step('large_tests ' + arch, status, halt_on_fail=False):
73 SCons(context, parallel=False, args=flags_run + ['large_tests']) 73 SCons(context, parallel=False, args=flags_run + ['large_tests'])
74 # Run small_tests, medium_tests, and large_tests with Subzero. 74 # Run small_tests, medium_tests, and large_tests with Subzero.
75 # TODO(stichnot): Move this to the sandboxed translator section 75 # TODO(stichnot): Move this to the sandboxed translator section
76 # along with the translate_fast flag once pnacl-sz.nexe is ready. 76 # along with the translate_fast flag once pnacl-sz.nexe is ready.
77 if arch == 'x86-32': 77 if arch in ('x86-32', 'x86-64'):
78 # Normal pexe-mode tests 78 # Normal pexe-mode tests
79 with Step('smoke_tests subzero ' + arch, status, halt_on_fail=False): 79 with Step('smoke_tests subzero ' + arch, status, halt_on_fail=False):
80 SCons(context, parallel=True, 80 SCons(context, parallel=True,
81 args=flags_run + flags_subzero + smoke_tests) 81 args=flags_run + flags_subzero + smoke_tests)
82 # Large tests cannot be run in parallel 82 # Large tests cannot be run in parallel
83 with Step('large_tests subzero ' + arch, status, halt_on_fail=False): 83 with Step('large_tests subzero ' + arch, status, halt_on_fail=False):
84 SCons(context, parallel=False, 84 SCons(context, parallel=False,
85 args=flags_run + flags_subzero + ['large_tests']) 85 args=flags_run + flags_subzero + ['large_tests'])
86 86
87 with Step('nonpexe_tests ' + arch, status, halt_on_fail=False): 87 with Step('nonpexe_tests ' + arch, status, halt_on_fail=False):
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 raise Exception('Unsupported platform') 221 raise Exception('Unsupported platform')
222 222
223 # Panda bots only have 2 cores. 223 # Panda bots only have 2 cores.
224 if pynacl.platform.GetArch() == 'arm': 224 if pynacl.platform.GetArch() == 'arm':
225 context['max_jobs'] = 2 225 context['max_jobs'] = 2
226 226
227 RunBuild(RunSconsTests, status) 227 RunBuild(RunSconsTests, status)
228 228
229 if __name__ == '__main__': 229 if __name__ == '__main__':
230 Main() 230 Main()
OLDNEW
« no previous file with comments | « no previous file | buildbot/buildbot_pnacl_toolchain_tests.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698