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

Side by Side Diff: tests/irt_compatibility/nacl.scons

Issue 19571003: IRT: Replace __attribute__((constructor)) with explicit call in _start() (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fix + cleanup Created 7 years, 5 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 | « src/untrusted/irt/nacl.scons ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2013 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 Import('env') 6 Import('env')
7 7
8 # IRT backward compatibility test 8 # IRT backward compatibility test
9 9
10 # This test uses a nexe built by another test. Nexes do not get 10 # This test uses a nexe built by another test. Nexes do not get
11 # staged in pexe mode, so only run this test in nonpexe mode. 11 # staged in pexe mode, so only run this test in nonpexe mode.
12 if env.Bit('pnacl_generate_pexe'): 12 if env.Bit('pnacl_generate_pexe'):
13 Return() 13 Return()
14 14
15 blob_env = env['NACL_IRT_ENV'].Clone() 15 blob_env = env['NACL_IRT_ENV'].Clone()
16 blob_env.Append(LINKFLAGS=[blob_env.RodataSwitch('${IRT_BLOB_DATA_START}'), 16 blob_env.Append(LINKFLAGS=[blob_env.RodataSwitch('${IRT_BLOB_DATA_START}'),
17 blob_env.TextSwitch('${IRT_BLOB_CODE_START}')]) 17 blob_env.TextSwitch('${IRT_BLOB_CODE_START}')])
18 18
19 irt_entry_obj = blob_env.ComponentObject(
20 '${MAIN_DIR}/src/untrusted/irt/irt_entry.c')
21
22 # Build custom IRT library which provides a minimal subset of old 19 # Build custom IRT library which provides a minimal subset of old
23 # interface versions. 20 # interface versions.
24 blob_env.Append(CPPDEFINES=[['ALLOW_DYNAMIC_LINKING', 21 blob_env.Append(CPPDEFINES=[['ALLOW_DYNAMIC_LINKING',
25 str(int(not env.Bit('nacl_static_link')))]]) 22 str(int(not env.Bit('nacl_static_link')))]])
26 irt_comp_test_library = blob_env.ComponentProgram( 23 irt_comp_test_library = blob_env.ComponentProgram(
27 'irt_comp_test', [irt_entry_obj, 'irt_comp_interfaces.c'], 24 'irt_comp_test', ['irt_comp_interfaces.c'],
28 EXTRA_LIBS=['irt_support_private']) 25 EXTRA_LIBS=['irt_support_private'])
29 26
30 # Don't provide IRT, we provide it ourselves via -B. 27 # Don't provide IRT, we provide it ourselves via -B.
31 env.ClearBits('tests_use_irt') 28 env.ClearBits('tests_use_irt')
32 29
33 node = env.CommandSelLdrTestNacl( 30 node = env.CommandSelLdrTestNacl(
34 'irt_compatibility_test.out', 31 'irt_compatibility_test.out',
35 env.File('${STAGING_DIR}/hello_world.nexe'), 32 env.File('${STAGING_DIR}/hello_world.nexe'),
36 sel_ldr_flags=['-B', irt_comp_test_library], 33 sel_ldr_flags=['-B', irt_comp_test_library],
37 stdout_golden=env.File('../hello_world/hello_world.stdout')) 34 stdout_golden=env.File('../hello_world/hello_world.stdout'))
38 35
39 env.AddNodeToTestSuite(node, ['small_tests'], 'run_irt_compatibility_test') 36 env.AddNodeToTestSuite(node, ['small_tests'], 'run_irt_compatibility_test')
OLDNEW
« no previous file with comments | « src/untrusted/irt/nacl.scons ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698