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

Side by Side Diff: tests/trusted_crash/osx_crash_forwarding/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
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 # This tests an interface that is specific to Mac OS X and/or Mach and 9 # This tests an interface that is specific to Mac OS X and/or Mach and
10 # that is only implemented for x86-32. 10 # that is only implemented for x86-32.
11 if not env.Bit('host_mac') or not env.Bit('build_x86_32'): 11 if not env.Bit('host_mac') or not env.Bit('build_x86_32'):
12 Return() 12 Return()
13 13
14 # These tests use nexes built by other tests. Nexes do not get staged in 14 # These tests use nexes built by other tests. Nexes do not get staged in
15 # pexe mode, so only run this test in nonpexe mode. 15 # pexe mode, so only run this test in nonpexe mode.
16 if env.Bit('pnacl_generate_pexe'): 16 if env.Bit('pnacl_generate_pexe'):
17 Return() 17 Return()
18 18
19 if 'TRUSTED_ENV' not in env: 19 if 'TRUSTED_ENV' not in env:
20 Return() 20 Return()
21 trusted_env = env['TRUSTED_ENV'] 21 trusted_env = env['TRUSTED_ENV']
22 22
23 # This duplicates the library list in src/trusted/service_runtime/build.scons.
24 # We would not have to do this if we could get Scons to track dependencies
25 # between libraries.
26 runner = trusted_env.ComponentProgram( 23 runner = trusted_env.ComponentProgram(
27 'mach_crash_forwarding_test', ['mach_crash_forwarding_test.c'], 24 'mach_crash_forwarding_test', ['mach_crash_forwarding_test.c'],
28 EXTRA_LIBS=['sel', 25 EXTRA_LIBS=['sel', 'sel_debug_dummy'])
29 'sel_debug_dummy',
30 'manifest_proxy',
31 'simple_service',
32 'thread_interface',
33 'gio_wrapped_desc',
34 'nonnacl_srpc',
35 'nrd_xfer',
36 'nacl_perf_counter',
37 'nacl_base',
38 'imc',
39 'container',
40 'nacl_fault_inject',
41 'nacl_interval',
42 'platform',
43 'platform_qual_lib',
44 'gio',
45 ])
46 26
47 untrusted_caught_nexe = env.File('${STAGING_DIR}/exception_test${PROGSUFFIX}') 27 untrusted_caught_nexe = env.File('${STAGING_DIR}/exception_test${PROGSUFFIX}')
48 untrusted_crash_nexe = env.File('${STAGING_DIR}/crash_test${PROGSUFFIX}') 28 untrusted_crash_nexe = env.File('${STAGING_DIR}/crash_test${PROGSUFFIX}')
49 trusted_crash_nexe = env.File('${STAGING_DIR}/crash_in_syscall${PROGSUFFIX}') 29 trusted_crash_nexe = env.File('${STAGING_DIR}/crash_in_syscall${PROGSUFFIX}')
50 is_broken = not env.Bit('nacl_static_link') 30 is_broken = not env.Bit('nacl_static_link')
51 31
52 test_suites = ['small_tests', 'exception_tests', 'nonpexe_tests'] 32 test_suites = ['small_tests', 'exception_tests', 'nonpexe_tests']
53 33
54 node = env.CommandTest('mach_forward_untrusted_crash_test.out', 34 node = env.CommandTest('mach_forward_untrusted_crash_test.out',
55 [runner, 'untrusted', untrusted_crash_nexe], 35 [runner, 'untrusted', untrusted_crash_nexe],
(...skipping 21 matching lines...) Expand all
77 declares_exit_status=True) 57 declares_exit_status=True)
78 env.AddNodeToTestSuite(node, test_suites, 58 env.AddNodeToTestSuite(node, test_suites,
79 'run_mach_unforwarded_trusted_crash_test', 59 'run_mach_unforwarded_trusted_crash_test',
80 is_broken=is_broken) 60 is_broken=is_broken)
81 61
82 node = env.CommandTest('mach_forward_early_trusted_crash_test.out', 62 node = env.CommandTest('mach_forward_early_trusted_crash_test.out',
83 [runner, 'early_trusted'], declares_exit_status=True) 63 [runner, 'early_trusted'], declares_exit_status=True)
84 env.AddNodeToTestSuite(node, test_suites, 64 env.AddNodeToTestSuite(node, test_suites,
85 'run_mach_forward_early_trusted_crash_test', 65 'run_mach_forward_early_trusted_crash_test',
86 is_broken=is_broken) 66 is_broken=is_broken)
OLDNEW
« no previous file with comments | « tests/trusted_crash/osx_crash_filter/nacl.scons ('k') | tests/trusted_crash/win_crash_in_syscall/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698