| 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 test_host = trusted_env.ComponentProgram( | 12 test_host = trusted_env.ComponentProgram( |
| 13 'desc_test_host', ['desc_test_host.c'], | 13 'desc_test_host', ['desc_test_host.c'], |
| 14 EXTRA_LIBS=['sel']) | 14 EXTRA_LIBS=['sel']) |
| 15 | 15 |
| 16 test_guest = env.ComponentProgram( | 16 test_guest = env.ComponentProgram( |
| 17 'desc_test_guest', ['desc_test_guest.c'], | 17 'desc_test_guest', ['desc_test_guest.c'], |
| 18 EXTRA_LIBS=['imc_syscalls', '${NONIRT_LIBS}']) | 18 EXTRA_LIBS=['imc_syscalls', '${NONIRT_LIBS}']) |
| 19 | 19 |
| 20 if env.ShouldTranslateToNexe(test_guest): | 20 test_guest = env.GetTranslatedNexe(test_guest) |
| 21 test_guest = env.GetTranslatedNexe(test_guest) | |
| 22 | 21 |
| 23 node = env.CommandTest('custom_desc_test.out', | 22 node = env.CommandTest('custom_desc_test.out', |
| 24 env.AddBootstrap(test_host, [test_guest])) | 23 env.AddBootstrap(test_host, [test_guest])) |
| 25 env.AddNodeToTestSuite(node, ['small_tests'], 'run_custom_desc_test', | 24 env.AddNodeToTestSuite(node, ['small_tests'], 'run_custom_desc_test', |
| 26 is_broken=not env.Bit('nacl_static_link')) | 25 is_broken=not env.Bit('nacl_static_link')) |
| OLD | NEW |