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

Side by Side Diff: tests/trusted_crash/win_crash_in_syscall/nacl.scons

Issue 10167012: Scons: Move some library dependency declarations into library_deps.py (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Tidy Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « tests/trusted_crash/osx_crash_forwarding/nacl.scons ('k') | no next file » | 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 2012 The Native Client Authors. All rights reserved. 2 # Copyright 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 8
9 test_prog = env.ComponentProgram('test_guest', ['test_guest.c'], 9 test_prog = env.ComponentProgram('test_guest', ['test_guest.c'],
10 EXTRA_LINKFLAGS=['-nostdlib']) 10 EXTRA_LINKFLAGS=['-nostdlib'])
11 11
12 # If we are generating a pexe, translate it first 12 # If we are generating a pexe, translate it first
13 if env.Bit('pnacl_generate_pexe'): 13 if env.Bit('pnacl_generate_pexe'):
14 env.Replace(TRANSLATEFLAGS=['-nostdlib']) 14 env.Replace(TRANSLATEFLAGS=['-nostdlib'])
15 test_prog = env.GetTranslatedNexe(test_prog) 15 test_prog = env.GetTranslatedNexe(test_prog)
16 16
17 if not env.Bit('host_windows'): 17 if not env.Bit('host_windows'):
18 # This test is specifically for Windows: it checks how NaCl 18 # This test is specifically for Windows: it checks how NaCl
19 # interacts with a Windows API (SetUnhandledExceptionFilter()). 19 # interacts with a Windows API (SetUnhandledExceptionFilter()).
20 Return() 20 Return()
21 21
22 if 'TRUSTED_ENV' not in env: 22 if 'TRUSTED_ENV' not in env:
23 Return() 23 Return()
24 trusted_env = env['TRUSTED_ENV'] 24 trusted_env = env['TRUSTED_ENV']
25 25
26 # This duplicates the library list in src/trusted/service_runtime/build.scons.
27 # We would not have to do this if we could get Scons to track dependencies
28 # between libraries.
29 runner = trusted_env.ComponentProgram( 26 runner = trusted_env.ComponentProgram(
30 'test_host', ['test_host.c'], 27 'test_host', ['test_host.c'],
31 EXTRA_LIBS=['sel', 28 EXTRA_LIBS=['sel',
32 'sel_debug_dummy', 29 'sel_debug_dummy',
33 'manifest_proxy',
34 'simple_service',
35 'thread_interface',
36 'gio_wrapped_desc',
37 'nonnacl_srpc',
38 'nrd_xfer',
39 'nacl_perf_counter',
40 'nacl_base',
41 'imc',
42 'container',
43 'nacl_fault_inject',
44 'nacl_interval',
45 'platform',
46 'platform_qual_lib',
47 'gio',
48 'dbghelp.lib', # Windows library 30 'dbghelp.lib', # Windows library
49 ]) 31 ])
50 32
51 node = env.CommandTest( 33 node = env.CommandTest(
52 'windows_crash_in_syscall_test.out', [runner, test_prog], 34 'windows_crash_in_syscall_test.out', [runner, test_prog],
53 declares_exit_status=True) 35 declares_exit_status=True)
54 env.AddNodeToTestSuite(node, ['small_tests'], 36 env.AddNodeToTestSuite(node, ['small_tests'],
55 'run_windows_crash_in_syscall_test', 37 'run_windows_crash_in_syscall_test',
56 is_broken=not env.Bit('nacl_static_link')) 38 is_broken=not env.Bit('nacl_static_link'))
OLDNEW
« no previous file with comments | « tests/trusted_crash/osx_crash_forwarding/nacl.scons ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698