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

Side by Side Diff: src/tools/posix_over_imc/nacl.scons

Issue 7831062: Remove obsolete and disabled tests for glibc IMC startup hack (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 9 years, 3 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 | « SConstruct ('k') | src/tools/posix_over_imc/nacl_launcher.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # -*- python -*-
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import os
7
8 Import('env')
9
10 # This tests a feature that is currently only in nacl-glibc's dynamic
11 # linker.
12 if not env.Bit('nacl_glibc'):
13 Return()
14 if env.Bit('nacl_static_link'):
15 Return()
16 # nacl-glibc tests are currently only run on Linux and the plumbing
17 # for Python bindings will require more work for Mac and Windows.
18 # TODO(mseaborn): Share a common set of checks and plumbing with
19 # src/trusted/python_bindings/build.scons.
20 if not env.Bit('host_linux'):
21 Return()
22 # Disable for x86-32 in case this is a multilib target, since Python
23 # does not support multilib. See src/trusted/python_bindings/build.scons.
24 if env.Bit('build_x86_32'):
25 Return()
26
27 if 'TRUSTED_ENV' not in env:
28 Return()
29 trusted_env = env['TRUSTED_ENV']
30
31 python_extension = trusted_env.File('${STAGING_DIR}/naclimc.so')
32
33 sel_ldr = trusted_env.File('${STAGING_DIR}/${PROGPREFIX}sel_ldr${PROGSUFFIX}')
34 hello_world = env.File('${STAGING_DIR}/hello_world.nexe')
35 env_vars = [
36 'PYTHONPATH=%s' % os.path.dirname(python_extension.abspath),
37 'NACL_SEL_LDR=%s' % sel_ldr,
38 'NACL_LIBRARY_DIR=${NACL_SDK_LIB}',
39 ]
40 dependencies = [python_extension, sel_ldr, hello_world]
41
42 node = env.CommandTest(
43 'posix_over_imc_test.out',
44 command=['${PYTHON}', env.File('nacl_launcher.py'), hello_world],
45 osenv=env_vars,
46 extra_deps=dependencies,
47 stdout_golden=env.File('${SCONSTRUCT_DIR}/tests/hello_world'
48 '/hello_world.stdout'))
49 env.AddNodeToTestSuite(node, ['small_tests'], 'run_posix_over_imc_test')
OLDNEW
« no previous file with comments | « SConstruct ('k') | src/tools/posix_over_imc/nacl_launcher.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698