| 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 if 'TRUSTED_ENV' not in env: | 8 if 'TRUSTED_ENV' not in env: |
| 9 Return() | 9 Return() |
| 10 trusted_env = env['TRUSTED_ENV'] | 10 trusted_env = env['TRUSTED_ENV'] |
| 11 | 11 |
| 12 # This duplicates the library list in src/trusted/service_runtime/build.scons. | 12 # This duplicates the library list in src/trusted/service_runtime/build.scons. |
| 13 # We would not have to do this if we could get Scons to track dependencies | 13 # We would not have to do this if we could get Scons to track dependencies |
| 14 # between libraries. | 14 # between libraries. |
| 15 VALIDATOR_LIBS = [] | 15 VALIDATOR_LIBS = [] |
| 16 if trusted_env.Bit('target_x86'): | 16 if trusted_env.Bit('target_x86'): |
| 17 VALIDATOR_LIBS += [trusted_env.NaClTargetArchSuffix('ncvalidate')] | 17 VALIDATOR_LIBS += [trusted_env.NaClTargetArchSuffix('ncvalidate'), |
| 18 trusted_env.NaClTargetArchSuffix('dfa_validate_caller'), |
| 19 trusted_env.NaClTargetArchSuffix('dfa_validate'), |
| 20 ] |
| 18 elif trusted_env.Bit('target_arm'): | 21 elif trusted_env.Bit('target_arm'): |
| 19 VALIDATOR_LIBS += ['ncvalidate_arm_v2'] | 22 VALIDATOR_LIBS += ['ncvalidate_arm_v2'] |
| 20 | 23 |
| 21 test_host = trusted_env.ComponentProgram( | 24 test_host = trusted_env.ComponentProgram( |
| 22 'desc_test_host', ['desc_test_host.c'], | 25 'desc_test_host', ['desc_test_host.c'], |
| 23 EXTRA_LIBS=['sel', | 26 EXTRA_LIBS=['sel', |
| 24 'sel_debug_dummy', | 27 'sel_debug_dummy', |
| 25 'manifest_proxy', | 28 'manifest_proxy', |
| 26 'simple_service', | 29 'simple_service', |
| 27 'thread_interface', | 30 'thread_interface', |
| (...skipping 18 matching lines...) Expand all Loading... |
| 46 test_guest = env.GetTranslatedNexe(test_guest) | 49 test_guest = env.GetTranslatedNexe(test_guest) |
| 47 | 50 |
| 48 test_command = [test_host, test_guest] | 51 test_command = [test_host, test_guest] |
| 49 bootstrap, _ = env.GetBootstrap() | 52 bootstrap, _ = env.GetBootstrap() |
| 50 if bootstrap is not None: | 53 if bootstrap is not None: |
| 51 test_command = [bootstrap] + test_command | 54 test_command = [bootstrap] + test_command |
| 52 | 55 |
| 53 node = env.CommandTest('custom_desc_test.out', test_command) | 56 node = env.CommandTest('custom_desc_test.out', test_command) |
| 54 env.AddNodeToTestSuite(node, ['small_tests'], 'run_custom_desc_test', | 57 env.AddNodeToTestSuite(node, ['small_tests'], 'run_custom_desc_test', |
| 55 is_broken=not env.Bit('nacl_static_link')) | 58 is_broken=not env.Bit('nacl_static_link')) |
| OLD | NEW |