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

Side by Side Diff: tests/pnacl_native_objects/nacl.scons

Issue 562853003: Make pnacl_generate_pexe=0 nonsfi_nacl=1 bitcode=1 work. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: more changes to get ARM linking. Created 6 years, 3 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 | « tests/exception_test/nacl.scons ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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')
OLDNEW
« no previous file with comments | « tests/exception_test/nacl.scons ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698