| 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 os | 6 import os |
| 7 | 7 |
| 8 Import('env') | 8 Import('env') |
| 9 | 9 |
| 10 if 'TRUSTED_ENV' not in env: | 10 if 'TRUSTED_ENV' not in env: |
| 11 Return() | 11 Return() |
| 12 | 12 |
| 13 if env.UnderWindowsCoverage(): | 13 if env.UnderWindowsCoverage(): |
| 14 Return() | 14 Return() |
| 15 | 15 |
| 16 if env.Bit('build_arm') or env.Bit('target_mips32'): | 16 if env.Bit('build_arm') or env.Bit('build_mips32'): |
| 17 if env.UsingEmulator(): | 17 if env.UsingEmulator(): |
| 18 # nacl-gdb is built with ARM support but not MIPS support. | 18 # nacl-gdb is built with ARM support but not MIPS support. |
| 19 if env.Bit('build_mips32'): | 19 if env.Bit('build_mips32'): |
| 20 Return() | 20 Return() |
| 21 nacl_x86_toolchain_dir = env.GetToolchainDir(target_arch='x86', | 21 nacl_x86_toolchain_dir = env.GetToolchainDir(target_arch='x86', |
| 22 is_pnacl=False, | 22 is_pnacl=False, |
| 23 lib_name='newlib') | 23 lib_name='newlib') |
| 24 nacl_gdb_path = os.path.join(nacl_x86_toolchain_dir, 'bin', 'i686-nacl-gdb') | 24 nacl_gdb_path = os.path.join(nacl_x86_toolchain_dir, 'bin', 'i686-nacl-gdb') |
| 25 env.Replace(GDB=nacl_gdb_path) | 25 env.Replace(GDB=nacl_gdb_path) |
| 26 else: | 26 else: |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 # work on qemu-arm. | 161 # work on qemu-arm. |
| 162 AddGdbTest('break_continue_thread', is_thread_test=True, | 162 AddGdbTest('break_continue_thread', is_thread_test=True, |
| 163 is_broken=env.UsingEmulator()) | 163 is_broken=env.UsingEmulator()) |
| 164 | 164 |
| 165 AddGdbTest('syscall_thread', is_thread_test=True) | 165 AddGdbTest('syscall_thread', is_thread_test=True) |
| 166 | 166 |
| 167 # We don't run this test on non-x86 architectures or PNaCl since it | 167 # We don't run this test on non-x86 architectures or PNaCl since it |
| 168 # contains inline assembly. | 168 # contains inline assembly. |
| 169 if env.Bit('build_x86') and not env.Bit('bitcode'): | 169 if env.Bit('build_x86') and not env.Bit('bitcode'): |
| 170 AddGdbTest('mmap') | 170 AddGdbTest('mmap') |
| OLD | NEW |