| OLD | NEW |
| 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 test_prog = env.ComponentProgram( | 11 test_prog = env.ComponentProgram( |
| 12 'debugger_test', 'debugger_test.c', | 12 'debugger_test', 'debugger_test.c', |
| 13 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) | 13 EXTRA_LIBS=['${PTHREAD_LIBS}', '${NONIRT_LIBS}']) |
| 14 | 14 |
| 15 sel_ldr_command = env.AddBootstrap(env.GetSelLdr(), ['-f', test_prog]) | 15 sel_ldr_command = env.AddBootstrap(env.GetSelLdr(), ['-v', '-f', test_prog]) |
| 16 | 16 |
| 17 is_broken = not env.Bit('nacl_static_link') or env.GetSelLdr() is None | 17 is_broken = not env.Bit('nacl_static_link') or env.GetSelLdr() is None |
| 18 | 18 |
| 19 if env.Bit('build_arm'): | 19 if env.Bit('build_arm'): |
| 20 # Use the system's 'nm' tool. The NaCl toolchain will not be | 20 # Use the system's 'nm' tool. The NaCl toolchain will not be |
| 21 # available on the ARM hardware bots, but they will be running Linux | 21 # available on the ARM hardware bots, but they will be running Linux |
| 22 # with a normal GNU toolchain available. | 22 # with a normal GNU toolchain available. |
| 23 nm_tool = 'nm' | 23 nm_tool = 'nm' |
| 24 else: | 24 else: |
| 25 # Use the NaCl toolchain's 'nm' tool since it is not available | 25 # Use the NaCl toolchain's 'nm' tool since it is not available |
| 26 # natively on Windows and Mac. | 26 # natively on Windows and Mac. |
| 27 nm_tool = '${NM}' | 27 nm_tool = '${NM}' |
| 28 | 28 |
| 29 node = env.CommandTest( | 29 node = env.CommandTest( |
| 30 'debug_stub_test.out', | 30 'debug_stub_test.out', |
| 31 command=(['${PYTHON}', env.File('debug_stub_test.py'), '-v'] | 31 command=(['${PYTHON}', env.File('debug_stub_test.py'), '-v'] |
| 32 + ['--', env.get('TARGET_FULLARCH'), nm_tool] + sel_ldr_command), | 32 + ['--', env.get('TARGET_FULLARCH'), nm_tool] + sel_ldr_command), |
| 33 extra_deps=[env.File('gdb_rsp.py')]) | 33 extra_deps=[env.File('gdb_rsp.py')]) |
| 34 env.AddNodeToTestSuite(node, ['medium_tests', 'nonpexe_tests'], | 34 env.AddNodeToTestSuite(node, ['medium_tests', 'nonpexe_tests'], |
| 35 'run_debug_stub_test', is_broken=is_broken) | 35 'run_debug_stub_test', is_broken=is_broken) |
| 36 env.TestBindsFixedTcpPort(node) | 36 env.TestBindsFixedTcpPort(node) |
| OLD | NEW |