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

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

Issue 12594036: Add a scons pnacl finalize step for pnacl_generate_pexe tests. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Roll revs Created 7 years, 9 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 # -*- 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('env') 6 Import('env')
7 7
8 if 'TRUSTED_ENV' not in env: 8 if 'TRUSTED_ENV' not in env:
9 Return() 9 Return()
10 10
(...skipping 11 matching lines...) Expand all
22 22
23 # We need -O0 to make stepping predictable and read local variables/function 23 # We need -O0 to make stepping predictable and read local variables/function
24 # arguments that may otherwise be optimized out. 24 # arguments that may otherwise be optimized out.
25 env.Append(CCFLAGS=['-O0', '-g', '-fno-omit-frame-pointer']) 25 env.Append(CCFLAGS=['-O0', '-g', '-fno-omit-frame-pointer'])
26 # We need to disable PNaCl's link time optimizations so that functions 26 # We need to disable PNaCl's link time optimizations so that functions
27 # do not get inlined, so that we can set breakpoints on these 27 # do not get inlined, so that we can set breakpoints on these
28 # functions. Also make translation optimizaton level -O0. 28 # functions. Also make translation optimizaton level -O0.
29 if env.Bit('bitcode'): 29 if env.Bit('bitcode'):
30 env.Append(LINKFLAGS=['-O0']) 30 env.Append(LINKFLAGS=['-O0'])
31 env.Append(TRANSLATEFLAGS=['-O0']) 31 env.Append(TRANSLATEFLAGS=['-O0'])
32 # This requires preserving nonstable bitcode debug metadata.
33 env.SetBits('nonstable_bitcode')
34
35 if env.Bit('skip_nonstable_bitcode'):
36 Return()
32 37
33 test_args = ['--gdb', env['GDB'], 38 test_args = ['--gdb', env['GDB'],
34 '--output_dir', env.subst('${TARGET_ROOT}/test_results')] 39 '--output_dir', env.subst('${TARGET_ROOT}/test_results')]
35 if env.Bit('tests_use_irt'): 40 if env.Bit('tests_use_irt'):
36 test_args += ['--irt', env.GetIrtNexe()] 41 test_args += ['--irt', env.GetIrtNexe()]
37 if not env.Bit('nacl_static_link'): 42 if not env.Bit('nacl_static_link'):
38 test_args += ['--ld_so', env.File('${NACL_SDK_LIB}/runnable-ld.so'), 43 test_args += ['--ld_so', env.File('${NACL_SDK_LIB}/runnable-ld.so'),
39 '--library_path', env['NACL_SDK_LIB']] 44 '--library_path', env['NACL_SDK_LIB']]
40 test_args += ['--'] + env.AddBootstrap(env.GetSelLdr(), ['-v']) 45 test_args += ['--'] + env.AddBootstrap(env.GetSelLdr(), ['-v'])
41 46
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 env.TestBindsFixedTcpPort(node) 164 env.TestBindsFixedTcpPort(node)
160 165
161 node = env.CommandTest( 166 node = env.CommandTest(
162 'gdb_syscall_thread.out', 167 'gdb_syscall_thread.out',
163 extra_deps=extra_deps, 168 extra_deps=extra_deps,
164 command=['${PYTHON}', env.File('syscall_thread.py'), 169 command=['${PYTHON}', env.File('syscall_thread.py'),
165 '--nexe', gdb_test_guest_thread] + test_args) 170 '--nexe', gdb_test_guest_thread] + test_args)
166 171
167 env.AddNodeToTestSuite(node, test_suites, 'run_gdb_syscall_thread_test') 172 env.AddNodeToTestSuite(node, test_suites, 'run_gdb_syscall_thread_test')
168 env.TestBindsFixedTcpPort(node) 173 env.TestBindsFixedTcpPort(node)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698