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

Side by Side Diff: tests/minnacl/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/custom_desc/nacl.scons ('k') | tests/multiple_sandboxes/nacl.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 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 # valgrind has problems with minimal_test_guest 8 # valgrind has problems with minimal_test_guest
9 if env.IsRunningUnderValgrind(): 9 if env.IsRunningUnderValgrind():
10 Return() 10 Return()
11 11
12 # This test case tests an experimental profile of NaCl. If you make a 12 # This test case tests an experimental profile of NaCl. If you make a
13 # change which breaks this test which is difficult to fix, you can 13 # change which breaks this test which is difficult to fix, you can
14 # disable the test, but please CC mseaborn,krasin. 14 # disable the test, but please CC mseaborn,krasin.
15 15
16 if 'TRUSTED_ENV' not in env: 16 if 'TRUSTED_ENV' not in env:
17 Return() 17 Return()
18 trusted_env = env['TRUSTED_ENV'] 18 trusted_env = env['TRUSTED_ENV']
19 19
20 # This duplicates the library list in src/trusted/service_runtime/build.scons.
21 # We would not have to do this if we could get Scons to track dependencies
22 # between libraries.
23 runner = trusted_env.ComponentProgram( 20 runner = trusted_env.ComponentProgram(
24 'minimal_test_host', ['minimal_test_host.c'], 21 'minimal_test_host', ['minimal_test_host.c'],
25 EXTRA_LIBS=['sel', 22 EXTRA_LIBS=['sel', 'sel_debug_dummy'])
26 'sel_debug_dummy',
27 'manifest_proxy',
28 'simple_service',
29 'thread_interface',
30 'gio_wrapped_desc',
31 'nonnacl_srpc',
32 'nrd_xfer',
33 'nacl_perf_counter',
34 'nacl_base',
35 'imc',
36 'container',
37 'nacl_fault_inject',
38 'nacl_interval',
39 'platform',
40 'platform_qual_lib',
41 'gio',
42 ])
43 23
44 24
45 test_prog = env.ComponentProgram( 25 test_prog = env.ComponentProgram(
46 'minimal_test_guest', 26 'minimal_test_guest',
47 ['minimal_test_guest.c'], 27 ['minimal_test_guest.c'],
48 EXTRA_LINKFLAGS=['-nostdlib']) 28 EXTRA_LINKFLAGS=['-nostdlib'])
49 29
50 if env.Bit('pnacl_generate_pexe'): 30 if env.Bit('pnacl_generate_pexe'):
51 env.Replace(TRANSLATEFLAGS=['-nostdlib']) 31 env.Replace(TRANSLATEFLAGS=['-nostdlib'])
52 test_prog = env.GetTranslatedNexe(test_prog) 32 test_prog = env.GetTranslatedNexe(test_prog)
53 33
54 test_command = [runner, test_prog] 34 test_command = [runner, test_prog]
55 bootstrap, _ = env.GetBootstrap() 35 bootstrap, _ = env.GetBootstrap()
56 if bootstrap is not None: 36 if bootstrap is not None:
57 test_command = [bootstrap] + test_command 37 test_command = [bootstrap] + test_command
58 38
59 node = env.CommandTest('minimal_test.out', test_command, 39 node = env.CommandTest('minimal_test.out', test_command,
60 stdout_golden=env.File('minimal_test.stdout')) 40 stdout_golden=env.File('minimal_test.stdout'))
61 env.AddNodeToTestSuite(node, ['small_tests'], 'run_minnacl_test', 41 env.AddNodeToTestSuite(node, ['small_tests'], 'run_minnacl_test',
62 is_broken=not env.Bit('nacl_static_link')) 42 is_broken=not env.Bit('nacl_static_link'))
OLDNEW
« no previous file with comments | « tests/custom_desc/nacl.scons ('k') | tests/multiple_sandboxes/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698