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

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

Issue 107313005: [MIPS] Add support for debug stub test (Closed) Base URL: http://git.chromium.org/native_client/src/native_client.git@master
Patch Set: One more change. Created 6 years, 11 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
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # Copyright 2012 The Native Client Authors. All rights reserved. 2 # Copyright 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can 3 # Use of this source code is governed by a BSD-style license that can
4 # be found in the LICENSE file. 4 # be found in the LICENSE file.
5 5
6 Import('env') 6 Import('env')
7 7
8 if not env.AllowInlineAssembly(): 8 if not env.AllowInlineAssembly():
9 Return() 9 Return()
10 10
11 if env.UnderWindowsCoverage(): 11 if env.UnderWindowsCoverage():
12 Return() 12 Return()
13 13
14 test_prog = env.ComponentProgram( 14 test_prog = env.ComponentProgram(
15 'debugger_test', 'debugger_test.c', 15 'debugger_test', 'debugger_test.c',
16 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) 16 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}'])
17 17
18 sel_ldr_command = env.AddBootstrap(env.GetSelLdr(), ['-v', '-f', test_prog]) 18 sel_ldr_command = env.AddBootstrap(env.GetSelLdr(), ['-v', '-f', test_prog])
19 19
20 is_broken = not env.Bit('nacl_static_link') or env.GetSelLdr() is None 20 is_broken = not env.Bit('nacl_static_link') or env.GetSelLdr() is None
21 21
22 if env.Bit('build_arm'): 22 if env.Bit('build_arm') or env.Bit('build_mips32'):
23 # Use the system's 'nm' tool. The NaCl toolchain will not be 23 # Use the system's 'nm' tool. The NaCl toolchain will not be
24 # available on the ARM hardware bots, but they will be running Linux 24 # available on the ARM hardware bots, but they will be running Linux
25 # with a normal GNU toolchain available. 25 # with a normal GNU toolchain available.
26 nm_tool = 'nm' 26 nm_tool = 'nm'
27 else: 27 else:
28 # Use the NaCl toolchain's 'nm' tool since it is not available 28 # Use the NaCl toolchain's 'nm' tool since it is not available
29 # natively on Windows and Mac. 29 # natively on Windows and Mac.
30 nm_tool = '${NM}' 30 nm_tool = '${NM}'
31 31
32 node = env.CommandTest( 32 node = env.CommandTest(
33 'debug_stub_test.out', 33 'debug_stub_test.out',
34 command=(['${PYTHON}', env.File('debug_stub_test.py'), '-v'] 34 command=(['${PYTHON}', env.File('debug_stub_test.py'), '-v']
35 + ['--', env.get('TARGET_FULLARCH'), nm_tool] + sel_ldr_command), 35 + ['--', env.get('TARGET_FULLARCH'), nm_tool] + sel_ldr_command),
36 extra_deps=[env.File('gdb_rsp.py')]) 36 extra_deps=[env.File('gdb_rsp.py')])
37 env.AddNodeToTestSuite(node, ['medium_tests', 'nonpexe_tests'], 37 env.AddNodeToTestSuite(node, ['medium_tests', 'nonpexe_tests'],
38 'run_debug_stub_test', is_broken=is_broken) 38 'run_debug_stub_test', is_broken=is_broken)
39 env.TestBindsFixedTcpPort(node) 39 env.TestBindsFixedTcpPort(node)
OLDNEW
« tests/debug_stub/debug_stub_test.py ('K') | « tests/debug_stub/debugger_test.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698