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

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

Issue 12256018: [MIPS] Add remaining parts for building tests for MIPS (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 7 years, 10 months 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
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('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 if env.Bit('target_arm'): 11 if env.Bit('target_arm') or env.Bit('target_mips32'):
12 if env.UsingEmulator(): 12 if env.UsingEmulator():
13 # These tests do not work under qemu-arm. 13 # These tests do not work under qemu-arm and qemu-mips32.
14 Return() 14 Return()
15 # Use the system's ARM GDB because the NaCl toolchain does not 15 # Use the system's ARM (or MIPS) GDB because the NaCl toolchain does not
16 # include a copy of GDB built to run on ARM. 16 # include a copy of GDB built to run on ARM (or MIPS).
17 env.Replace(GDB='gdb') 17 env.Replace(GDB='gdb')
18 # Unlike nacl-gdb, the system version of GDB does not support the 18 # Unlike nacl-gdb, the system version of GDB does not support the
19 # "nacl-irt" command. 19 # "nacl-irt" command.
20 if env.Bit('tests_use_irt'): 20 if env.Bit('tests_use_irt'):
21 Return() 21 Return()
22 22
23 # We need -O0 to make stepping predictable and read local variables/function 23 # We need -O0 to make stepping predictable and read local variables/function
24 # arguments that may otherwise be optimized out. 24 # arguments that may otherwise be optimized out.
25 env.Append(CCFLAGS=['-O0', '-g', '-fno-omit-frame-pointer']) 25 env.Append(CCFLAGS=['-O0', '-g', '-fno-omit-frame-pointer'])
26 # We need to disable PNaCl's link time optimizations so that functions 26 # We need to disable PNaCl's link time optimizations so that functions
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 env.TestBindsFixedTcpPort(node) 163 env.TestBindsFixedTcpPort(node)
164 164
165 node = env.CommandTest( 165 node = env.CommandTest(
166 'gdb_syscall_thread.out', 166 'gdb_syscall_thread.out',
167 extra_deps=extra_deps, 167 extra_deps=extra_deps,
168 command=['${PYTHON}', env.File('syscall_thread.py'), 168 command=['${PYTHON}', env.File('syscall_thread.py'),
169 '--nexe', gdb_test_guest_thread] + test_args) 169 '--nexe', gdb_test_guest_thread] + test_args)
170 170
171 env.AddNodeToTestSuite(node, test_suites, 'run_gdb_syscall_thread_test') 171 env.AddNodeToTestSuite(node, test_suites, 'run_gdb_syscall_thread_test')
172 env.TestBindsFixedTcpPort(node) 172 env.TestBindsFixedTcpPort(node)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698