OLD | NEW |
1 #! -*- python -*- | 1 #! -*- 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 atexit | 6 import atexit |
7 import json | 7 import json |
8 import os | 8 import os |
9 import platform | 9 import platform |
10 import re | 10 import re |
(...skipping 3678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3689 | 3689 |
3690 nacl_irt_test_env.Append(BUILD_SCONSCRIPTS=irt_variant_tests) | 3690 nacl_irt_test_env.Append(BUILD_SCONSCRIPTS=irt_variant_tests) |
3691 nacl_irt_test_env.AddChromeFilesFromGroup('irt_variant_test_scons_files') | 3691 nacl_irt_test_env.AddChromeFilesFromGroup('irt_variant_test_scons_files') |
3692 nacl_irt_test_env.Append(BUILD_SCONSCRIPTS=irt_only_tests) | 3692 nacl_irt_test_env.Append(BUILD_SCONSCRIPTS=irt_only_tests) |
3693 TestsUsePublicLibs(nacl_irt_test_env) | 3693 TestsUsePublicLibs(nacl_irt_test_env) |
3694 TestsUsePublicListMappingsLib(nacl_irt_test_env) | 3694 TestsUsePublicListMappingsLib(nacl_irt_test_env) |
3695 | 3695 |
3696 # We add the following settings after creating nacl_irt_test_env because we | 3696 # We add the following settings after creating nacl_irt_test_env because we |
3697 # don't want them to be inherited by nacl_irt_test_env. | 3697 # don't want them to be inherited by nacl_irt_test_env. |
3698 if nacl_env.Bit('nonsfi_nacl'): | 3698 if nacl_env.Bit('nonsfi_nacl'): |
3699 # Not-IRT-using non-SFI code uses Linux syscalls directly. Since this | 3699 if nacl_env.Bit('pnacl_generate_pexe'): |
3700 # involves using inline assembly, this requires turning off the PNaCl ABI | 3700 # Not-IRT-using non-SFI code uses Linux syscalls directly. Since this |
3701 # checker. | 3701 # involves using inline assembly, this requires turning off the PNaCl ABI |
3702 nacl_env.SetBits('nonstable_bitcode') | 3702 # checker. |
3703 nacl_env.Append(LINKFLAGS=['--pnacl-disable-abi-check']) | 3703 nacl_env.SetBits('nonstable_bitcode') |
3704 # Tell the PNaCl translator to link a Linux executable. | 3704 nacl_env.Append(LINKFLAGS=['--pnacl-disable-abi-check']) |
3705 nacl_env.Append(TRANSLATEFLAGS=['--noirt']) | 3705 # Tell the PNaCl translator to link a Linux executable. |
| 3706 nacl_env.Append(TRANSLATEFLAGS=['--noirt']) |
| 3707 else: |
| 3708 nacl_env.Append(LINKFLAGS=['--pnacl-allow-native', '-Wt,--noirt']) |
3706 | 3709 |
3707 # If a tests/.../nacl.scons file builds a library, we will just use | 3710 # If a tests/.../nacl.scons file builds a library, we will just use |
3708 # the one already built in nacl_env instead. | 3711 # the one already built in nacl_env instead. |
3709 def IrtTestDummyLibrary(*args, **kwargs): | 3712 def IrtTestDummyLibrary(*args, **kwargs): |
3710 pass | 3713 pass |
3711 nacl_irt_test_env.AddMethod(IrtTestDummyLibrary, 'ComponentLibrary') | 3714 nacl_irt_test_env.AddMethod(IrtTestDummyLibrary, 'ComponentLibrary') |
3712 | 3715 |
3713 def IrtTestAddNodeToTestSuite(env, node, suite_name, node_name=None, | 3716 def IrtTestAddNodeToTestSuite(env, node, suite_name, node_name=None, |
3714 is_broken=False, is_flaky=False, | 3717 is_broken=False, is_flaky=False, |
3715 disable_irt_suffix=False): | 3718 disable_irt_suffix=False): |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4013 nacl_env.ValidateSdk() | 4016 nacl_env.ValidateSdk() |
4014 | 4017 |
4015 if BROKEN_TEST_COUNT > 0: | 4018 if BROKEN_TEST_COUNT > 0: |
4016 msg = "There are %d broken tests." % BROKEN_TEST_COUNT | 4019 msg = "There are %d broken tests." % BROKEN_TEST_COUNT |
4017 if GetOption('brief_comstr'): | 4020 if GetOption('brief_comstr'): |
4018 msg += " Add --verbose to the command line for more information." | 4021 msg += " Add --verbose to the command line for more information." |
4019 print msg | 4022 print msg |
4020 | 4023 |
4021 # separate warnings from actual build output | 4024 # separate warnings from actual build output |
4022 Banner('B U I L D - O U T P U T:') | 4025 Banner('B U I L D - O U T P U T:') |
OLD | NEW |