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 |
11 # PNaCl and ARM bots don't have GDB. | 11 # PNaCl and ARM bots don't have GDB. |
12 # TODO(halyavin) : check debugger with PNaCl and enable test if possible. | 12 # TODO(halyavin) : check debugger with PNaCl and enable test if possible. |
13 if (env.Bit('host_mac') or | 13 if env.Bit('host_mac') or env.Bit('bitcode') or env.Bit('target_arm'): |
14 (env.Bit('host_windows') and env.Bit('build_x86_32')) or | |
15 env.Bit('bitcode') or env.Bit('target_arm')): | |
16 Return() | 14 Return() |
17 | 15 |
18 # We need -O0 to make stepping predictable and read local variables/function | 16 # We need -O0 to make stepping predictable and read local variables/function |
19 # arguments that may otherwise be optimized out. | 17 # arguments that may otherwise be optimized out. |
20 env.Append(CCFLAGS=['-O0', '-g']) | 18 env.Append(CCFLAGS=['-O0', '-g']) |
21 | 19 |
22 sel_ldr = env.GetSelLdr() | 20 sel_ldr = env.GetSelLdr() |
23 irt = env.GetIrtNexe() | 21 irt = env.GetIrtNexe() |
24 | 22 |
25 env_vars = [ | 23 env_vars = [ |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 'run_gdb_break_continue_thread_test') | 100 'run_gdb_break_continue_thread_test') |
103 | 101 |
104 node = env.CommandTest( | 102 node = env.CommandTest( |
105 'gdb_syscall_thread.out', | 103 'gdb_syscall_thread.out', |
106 command=['${PYTHON}', env.File('syscall_thread.py')], | 104 command=['${PYTHON}', env.File('syscall_thread.py')], |
107 osenv=env_vars + ['GDB_TEST_GUEST=%s' % gdb_test_guest_thread.abspath], | 105 osenv=env_vars + ['GDB_TEST_GUEST=%s' % gdb_test_guest_thread.abspath], |
108 extra_deps=[sel_ldr, irt, gdb_test_guest_thread]) | 106 extra_deps=[sel_ldr, irt, gdb_test_guest_thread]) |
109 | 107 |
110 env.AddNodeToTestSuite(node, ['large_tests'], | 108 env.AddNodeToTestSuite(node, ['large_tests'], |
111 'run_gdb_syscall_thread_test') | 109 'run_gdb_syscall_thread_test') |
OLD | NEW |