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

Side by Side Diff: buildbot/buildbot_pnacl.py

Issue 269703002: Non-SFI Mode: Add nonsfi_loader and plumbing to test it (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Review Created 6 years, 7 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 | Annotate | Revision Log
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 re 6 import re
7 7
8 from buildbot_lib import ( 8 from buildbot_lib import (
9 BuildContext, BuildStatus, Command, ParseStandardCommandLine, 9 BuildContext, BuildStatus, Command, ParseStandardCommandLine,
10 RemoveSconsBuildDirectories, RemoveGypBuildDirectories, RunBuild, SCons, 10 RemoveSconsBuildDirectories, RemoveGypBuildDirectories, RunBuild, SCons,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 with Step('smoke_tests_sandboxed_fast', status): 65 with Step('smoke_tests_sandboxed_fast', status):
66 SCons(context, parallel=True, mode=irt_mode, 66 SCons(context, parallel=True, mode=irt_mode,
67 args=flags_run + ['use_sandboxed_translator=1', 'translate_fast=1'] 67 args=flags_run + ['use_sandboxed_translator=1', 'translate_fast=1']
68 + smoke_tests_irt) 68 + smoke_tests_irt)
69 69
70 # Translator memory consumption regression test 70 # Translator memory consumption regression test
71 with Step('large_code_test', status): 71 with Step('large_code_test', status):
72 SCons(context, parallel=True, mode=irt_mode, 72 SCons(context, parallel=True, mode=irt_mode,
73 args=flags_run + ['use_sandboxed_translator=1', 'large_code']) 73 args=flags_run + ['use_sandboxed_translator=1', 'large_code'])
74 74
75 # Test Non-SFI Mode.
76 with Step('nonsfi_tests', status):
77 # The only architectures that the PNaCl toolchain supports Non-SFI
78 # versions of are currently x86-32 and ARM, and ARM testing is covered
79 # by buildbot_pnacl.sh rather than this Python script.
80 if context['default_scons_platform'] == 'x86-32':
81 # TODO(mseaborn): Enable more tests here when they pass.
82 SCons(context, parallel=True, mode=irt_mode,
83 args=flags_run + ['nonsfi_nacl=1', 'run_hello_world_test_irt'])
84
75 85
76 def Main(): 86 def Main():
77 context = BuildContext() 87 context = BuildContext()
78 status = BuildStatus(context) 88 status = BuildStatus(context)
79 ParseStandardCommandLine(context) 89 ParseStandardCommandLine(context)
80 90
81 if context.Linux(): 91 if context.Linux():
82 SetupLinuxEnvironment(context) 92 SetupLinuxEnvironment(context)
83 else: 93 else:
84 raise Exception('Unsupported platform') 94 raise Exception('Unsupported platform')
85 95
86 RunBuild(BuildScriptX86, status) 96 RunBuild(BuildScriptX86, status)
87 97
88 if __name__ == '__main__': 98 if __name__ == '__main__':
89 Main() 99 Main()
OLDNEW
« no previous file with comments | « SConstruct ('k') | buildbot/buildbot_pnacl.sh » ('j') | buildbot/buildbot_pnacl.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698