| OLD | NEW |
| 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 19 matching lines...) Expand all Loading... |
| 30 env.Append(LINKFLAGS=['-O0']) | 30 env.Append(LINKFLAGS=['-O0']) |
| 31 env.Append(TRANSLATEFLAGS=['-O0']) | 31 env.Append(TRANSLATEFLAGS=['-O0']) |
| 32 | 32 |
| 33 test_args = ['--gdb', env['GDB'], | 33 test_args = ['--gdb', env['GDB'], |
| 34 '--output_dir', env.subst('${TARGET_ROOT}/test_results')] | 34 '--output_dir', env.subst('${TARGET_ROOT}/test_results')] |
| 35 if env.Bit('tests_use_irt'): | 35 if env.Bit('tests_use_irt'): |
| 36 test_args += ['--irt', env.GetIrtNexe()] | 36 test_args += ['--irt', env.GetIrtNexe()] |
| 37 if not env.Bit('nacl_static_link'): | 37 if not env.Bit('nacl_static_link'): |
| 38 test_args += ['--ld_so', env.File('${NACL_SDK_LIB}/runnable-ld.so'), | 38 test_args += ['--ld_so', env.File('${NACL_SDK_LIB}/runnable-ld.so'), |
| 39 '--library_path', env['NACL_SDK_LIB']] | 39 '--library_path', env['NACL_SDK_LIB']] |
| 40 test_args += ['--'] + env.AddBootstrap(env.GetSelLdr(), []) | 40 test_args += ['--'] + env.AddBootstrap(env.GetSelLdr(), ['-v']) |
| 41 | 41 |
| 42 extra_deps = [env.File('gdb_test.py')] | 42 extra_deps = [env.File('gdb_test.py')] |
| 43 | 43 |
| 44 test_suites = ['medium_tests', 'gdb_tests'] | 44 test_suites = ['medium_tests', 'gdb_tests'] |
| 45 | 45 |
| 46 | 46 |
| 47 gdb_test_guest = env.ComponentProgram( | 47 gdb_test_guest = env.ComponentProgram( |
| 48 'gdb_test_guest', 'gdb_test_guest.c', | 48 'gdb_test_guest', 'gdb_test_guest.c', |
| 49 EXTRA_LIBS=['${NONIRT_LIBS}']) | 49 EXTRA_LIBS=['${NONIRT_LIBS}']) |
| 50 if env.ShouldTranslateToNexe(gdb_test_guest): | 50 if env.ShouldTranslateToNexe(gdb_test_guest): |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 env.TestBindsFixedTcpPort(node) | 143 env.TestBindsFixedTcpPort(node) |
| 144 | 144 |
| 145 node = env.CommandTest( | 145 node = env.CommandTest( |
| 146 'gdb_syscall_thread.out', | 146 'gdb_syscall_thread.out', |
| 147 extra_deps=extra_deps, | 147 extra_deps=extra_deps, |
| 148 command=['${PYTHON}', env.File('syscall_thread.py'), | 148 command=['${PYTHON}', env.File('syscall_thread.py'), |
| 149 '--nexe', gdb_test_guest_thread] + test_args) | 149 '--nexe', gdb_test_guest_thread] + test_args) |
| 150 | 150 |
| 151 env.AddNodeToTestSuite(node, test_suites, 'run_gdb_syscall_thread_test') | 151 env.AddNodeToTestSuite(node, test_suites, 'run_gdb_syscall_thread_test') |
| 152 env.TestBindsFixedTcpPort(node) | 152 env.TestBindsFixedTcpPort(node) |
| OLD | NEW |