| OLD | NEW |
| 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 Loading... |
| 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() |
| OLD | NEW |