| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright 2011 The Native Client Authors. All rights reserved. | 2 # Copyright 2011 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 # This test case tests an experimental use case for NaCl. If you make | 8 # This test case tests an experimental use case for NaCl. If you make |
| 9 # a change which breaks this test which is difficult to fix, you can | 9 # a change which breaks this test which is difficult to fix, you can |
| 10 # disable the test, but please CC mseaborn,krasin. | 10 # disable the test, but please CC mseaborn,krasin. |
| 11 | 11 |
| 12 if 'TRUSTED_ENV' not in env: | 12 if 'TRUSTED_ENV' not in env: |
| 13 Return() | 13 Return() |
| 14 trusted_env = env['TRUSTED_ENV'] | 14 trusted_env = env['TRUSTED_ENV'] |
| 15 | 15 |
| 16 # This duplicates the library list in src/trusted/service_runtime/build.scons. | 16 # This duplicates the library list in src/trusted/service_runtime/build.scons. |
| 17 # We would not have to do this if we could get Scons to track dependencies | 17 # We would not have to do this if we could get Scons to track dependencies |
| 18 # between libraries. | 18 # between libraries. |
| 19 VALIDATOR_LIBS = [] | 19 VALIDATOR_LIBS = [] |
| 20 if trusted_env.Bit('target_x86'): | 20 if trusted_env.Bit('target_x86'): |
| 21 VALIDATOR_LIBS += [trusted_env.NaClTargetArchSuffix('ncvalidate_verbose')] | 21 VALIDATOR_LIBS += [trusted_env.NaClTargetArchSuffix('ncvalidate_verbose'), |
| 22 trusted_env.NaClTargetArchSuffix('dfa_validate_caller'), |
| 23 trusted_env.NaClTargetArchSuffix('dfa_validate'), |
| 24 ] |
| 22 elif trusted_env.Bit('target_arm'): | 25 elif trusted_env.Bit('target_arm'): |
| 23 VALIDATOR_LIBS += ['ncvalidate_arm_v2'] | 26 VALIDATOR_LIBS += ['ncvalidate_arm_v2'] |
| 24 | 27 |
| 25 runner = trusted_env.ComponentProgram( | 28 runner = trusted_env.ComponentProgram( |
| 26 'multidomain_test_host', ['multidomain_test_host.c'], | 29 'multidomain_test_host', ['multidomain_test_host.c'], |
| 27 EXTRA_LIBS=['sel', | 30 EXTRA_LIBS=['sel', |
| 28 'sel_debug_dummy', | 31 'sel_debug_dummy', |
| 29 'manifest_proxy', | 32 'manifest_proxy', |
| 30 'simple_service', | 33 'simple_service', |
| 31 'thread_interface', | 34 'thread_interface', |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 # * multidomain_test_host assumes it is given a statically linked | 67 # * multidomain_test_host assumes it is given a statically linked |
| 65 # executable. Furthermore, statically-linked nacl-glibc does not | 68 # executable. Furthermore, statically-linked nacl-glibc does not |
| 66 # work here because of validation failures which require stubout | 69 # work here because of validation failures which require stubout |
| 67 # mode. | 70 # mode. |
| 68 is_broken = (env.Bit('build_arm') | 71 is_broken = (env.Bit('build_arm') |
| 69 or env.Bit('host_mac') | 72 or env.Bit('host_mac') |
| 70 or env.Bit('nacl_glibc')) | 73 or env.Bit('nacl_glibc')) |
| 71 | 74 |
| 72 env.AddNodeToTestSuite(node, ['small_tests'], 'run_multidomain_test', | 75 env.AddNodeToTestSuite(node, ['small_tests'], 'run_multidomain_test', |
| 73 is_broken=is_broken) | 76 is_broken=is_broken) |
| OLD | NEW |