OLD | NEW |
| 1 # -*- python -*- |
1 # Copyright (c) 2013 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. |
2 # 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 |
3 # found in the LICENSE file. | 4 # found in the LICENSE file. |
4 | 5 |
5 Import('env') | 6 Import('env') |
6 | 7 |
7 # This test only tests PNaCl's nonpexe mode with native object files/archives | 8 # This test only tests PNaCl's nonpexe mode with native object files/archives |
8 if not env.Bit('bitcode') or env.Bit('pnacl_generate_pexe'): | 9 if not env.Bit('bitcode') or env.Bit('pnacl_generate_pexe'): |
9 Return() | 10 Return() |
10 | 11 |
| 12 # TODO(uekawa): Fix this test for Non-SFI mode. |
| 13 if env.Bit('nonsfi_nacl'): |
| 14 Return() |
| 15 |
11 tests = [] | 16 tests = [] |
12 bc_env = env.Clone() | 17 bc_env = env.Clone() |
13 bc_env.Replace(CCFLAGS=[], LINKFLAGS=[]) | 18 bc_env.Replace(CCFLAGS=[], LINKFLAGS=[]) |
14 bc_env.Append(EXTRA_LIBS=['${NONIRT_LIBS}']) | 19 bc_env.Append(EXTRA_LIBS=['${NONIRT_LIBS}']) |
15 native_env = env.Clone() | 20 native_env = env.Clone() |
16 native_env.Replace(CCFLAGS=[], LINKFLAGS=[]) | 21 native_env.Replace(CCFLAGS=[], LINKFLAGS=[]) |
17 native_env.PNaClForceNative() | 22 native_env.PNaClForceNative() |
18 native_env.Append(EXTRA_LIBS=['${NONIRT_LIBS}']) | 23 native_env.Append(EXTRA_LIBS=['${NONIRT_LIBS}']) |
19 | 24 |
20 # The main object depends on symbols found in lib a and lib b (sym_a and sym_b). | 25 # The main object depends on symbols found in lib a and lib b (sym_a and sym_b). |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 tests.append(('tls_use_native', | 125 tests.append(('tls_use_native', |
121 native_env.ComponentProgram( | 126 native_env.ComponentProgram( |
122 'tls_use_native', [tls_use_native, tls_def_bc]))) | 127 'tls_use_native', [tls_use_native, tls_def_bc]))) |
123 | 128 |
124 | 129 |
125 for name, prog in tests: | 130 for name, prog in tests: |
126 node = env.CommandSelLdrTestNacl(name + '.out', prog) | 131 node = env.CommandSelLdrTestNacl(name + '.out', prog) |
127 env.AddNodeToTestSuite(node, ['small_tests', 'toolchain_tests', | 132 env.AddNodeToTestSuite(node, ['small_tests', 'toolchain_tests', |
128 'nonpexe_tests'], | 133 'nonpexe_tests'], |
129 'run_' + name + '_test') | 134 'run_' + name + '_test') |
OLD | NEW |