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

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

Issue 1841113002: PNaCl Dynamic Linking: Tests storing dependencies from command line in PLL. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # Copyright (c) 2014 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2014 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 if not env.Bit('bitcode'): 8 if not env.Bit('bitcode'):
9 Return() 9 Return()
10 # Translating the PSO to an ELF DSO doesn't work on x86-64 yet. The 10 # Translating the PSO to an ELF DSO doesn't work on x86-64 yet. The
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 node = env.CommandSelLdrTestNacl( 77 node = env.CommandSelLdrTestNacl(
78 'dynloader_test.out', dynloader_test, [dso1, dso2, dso3], 78 'dynloader_test.out', dynloader_test, [dso1, dso2, dso3],
79 # Add '-a' to enable filesystem access for opening DSOs. 79 # Add '-a' to enable filesystem access for opening DSOs.
80 sel_ldr_flags=['-a']) 80 sel_ldr_flags=['-a'])
81 env.AddNodeToTestSuite( 81 env.AddNodeToTestSuite(
82 node, ['small_tests', 'toolchain_tests'], 82 node, ['small_tests', 'toolchain_tests'],
83 'run_pnacl_dynamic_loading_test', is_broken=is_broken) 83 'run_pnacl_dynamic_loading_test', is_broken=is_broken)
84 84
85 85
86 # Use of the ConvertToPSO pass requires this toolchain version. 86 # Use of the ConvertToPSO pass requires this toolchain version.
87 if env['TOOLCHAIN_FEATURE_VERSION'] < 23: 87 if env['TOOLCHAIN_FEATURE_VERSION'] < 24:
88 Return() 88 Return()
89 89
90 test_pll = MakeAndTranslatePll('test_pll', 'test_pll.c') 90 # TODO(smklein): These LLVM passes should be automatically applied by the
91 # drivers. Once support for dependencies has been plumbed through the drivers,
92 # use the "-l" linker flags and don't explicitly declare any LLVM passes.
93 test_pll = MakeAndTranslatePso('test_pll', [env.ComponentObject('test_pll.c')],
94 llvm_passes='-nacl-global-cleanup -expand-varargs '
Mark Seaborn 2016/03/29 19:01:11 Nit: It's better for arguments to line up: // goo
Sean Klein 2016/03/29 19:43:56 Oops. Sorry, I know I've made this mistake before.
95 '-rewrite-pnacl-library-calls -rewrite-llvm-intrinsic-calls '
96 '-convert-to-pso -convert-to-pso-deps=libfoo.so,libbar.so '
97 '-pnacl-abi-simplify-postopt')
98
91 test_pll_tls = MakeAndTranslatePll('test_pll_tls', 'test_pll_tls.c') 99 test_pll_tls = MakeAndTranslatePll('test_pll_tls', 'test_pll_tls.c')
92 100
93 pll_symbols_test = env.ComponentProgram( 101 pll_symbols_test = env.ComponentProgram(
94 'pll_symbols_test', ['pll_symbols_test.cc'], 102 'pll_symbols_test', ['pll_symbols_test.cc'],
95 EXTRA_LIBS=['${NONIRT_LIBS}', 'pnacl_dynloader', 'pll_loader_lib']) 103 EXTRA_LIBS=['${NONIRT_LIBS}', 'pnacl_dynloader', 'pll_loader_lib'])
96 104
97 node = env.CommandSelLdrTestNacl( 105 node = env.CommandSelLdrTestNacl(
98 'pll_symbols_test.out', pll_symbols_test, [test_pll, test_pll_tls], 106 'pll_symbols_test.out', pll_symbols_test, [test_pll, test_pll_tls],
99 # Add '-a' to enable filesystem access for opening DSOs. 107 # Add '-a' to enable filesystem access for opening DSOs.
100 sel_ldr_flags=['-a']) 108 sel_ldr_flags=['-a'])
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 151
144 node = env.CommandSelLdrTestNacl( 152 node = env.CommandSelLdrTestNacl(
145 'pll_hello_world_test.out', pll_loader, 153 'pll_hello_world_test.out', pll_loader,
146 [translated_pll_libc, translated_pll_hello_world], 154 [translated_pll_libc, translated_pll_hello_world],
147 # Add '-a' to enable filesystem access for opening DSOs. 155 # Add '-a' to enable filesystem access for opening DSOs.
148 sel_ldr_flags=['-a'], 156 sel_ldr_flags=['-a'],
149 stdout_golden=env.File('../hello_world/hello_world.stdout')) 157 stdout_golden=env.File('../hello_world/hello_world.stdout'))
150 env.AddNodeToTestSuite( 158 env.AddNodeToTestSuite(
151 node, ['small_tests', 'toolchain_tests'], 159 node, ['small_tests', 'toolchain_tests'],
152 'run_pll_hello_world_test', is_broken=is_broken) 160 'run_pll_hello_world_test', is_broken=is_broken)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698