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

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

Issue 758223003: Cleanup: Use Bit('build_ARCH') instead of Bit('target_ARCH') (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fix + simplify Created 6 years 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 | Annotate | Revision Log
« no previous file with comments | « src/untrusted/valgrind/nacl.scons ('k') | tools/scons_to_gn/test.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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')
OLDNEW
« no previous file with comments | « src/untrusted/valgrind/nacl.scons ('k') | tools/scons_to_gn/test.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698