OLD | NEW |
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 | 3 # Use of this source code is governed by a BSD-style license that can |
4 # be found in the LICENSE file. | 4 # be 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']) |
(...skipping 10 matching lines...) Expand all Loading... |
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. | 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 | 27 # We would not have to do this if we could get Scons to track dependencies |
28 # between libraries. | 28 # between libraries. |
29 VALIDATOR_LIBS = [] | 29 VALIDATOR_LIBS = [] |
30 if trusted_env.Bit('target_x86'): | 30 if trusted_env.Bit('target_x86'): |
31 VALIDATOR_LIBS += [trusted_env.NaClTargetArchSuffix('ncvalidate')] | 31 VALIDATOR_LIBS += [trusted_env.NaClTargetArchSuffix('ncvalidate'), |
| 32 trusted_env.NaClTargetArchSuffix('dfa_validate_caller'), |
| 33 trusted_env.NaClTargetArchSuffix('dfa_validate'), |
| 34 ] |
32 elif trusted_env.Bit('target_arm'): | 35 elif trusted_env.Bit('target_arm'): |
33 VALIDATOR_LIBS += ['ncvalidate_arm_v2'] | 36 VALIDATOR_LIBS += ['ncvalidate_arm_v2'] |
34 | 37 |
35 runner = trusted_env.ComponentProgram( | 38 runner = trusted_env.ComponentProgram( |
36 'test_host', ['test_host.c'], | 39 'test_host', ['test_host.c'], |
37 EXTRA_LIBS=['sel', | 40 EXTRA_LIBS=['sel', |
38 'sel_debug_dummy', | 41 'sel_debug_dummy', |
39 'manifest_proxy', | 42 'manifest_proxy', |
40 'simple_service', | 43 'simple_service', |
41 'thread_interface', | 44 'thread_interface', |
(...skipping 10 matching lines...) Expand all Loading... |
52 'gio', | 55 'gio', |
53 'dbghelp.lib', # Windows library | 56 'dbghelp.lib', # Windows library |
54 ] + VALIDATOR_LIBS) | 57 ] + VALIDATOR_LIBS) |
55 | 58 |
56 node = env.CommandTest( | 59 node = env.CommandTest( |
57 'windows_crash_in_syscall_test.out', [runner, test_prog], | 60 'windows_crash_in_syscall_test.out', [runner, test_prog], |
58 declares_exit_status=True) | 61 declares_exit_status=True) |
59 env.AddNodeToTestSuite(node, ['small_tests'], | 62 env.AddNodeToTestSuite(node, ['small_tests'], |
60 'run_windows_crash_in_syscall_test', | 63 'run_windows_crash_in_syscall_test', |
61 is_broken=not env.Bit('nacl_static_link')) | 64 is_broken=not env.Bit('nacl_static_link')) |
OLD | NEW |