MCPcopy Create free account
hub / github.com/boostorg/build / run_path_setup

Function run_path_setup

v2/tools/testing.py:300–313  ·  view source on GitHub ↗
(target, sources, ps)

Source from the content-addressed store, hash-verified

298# contained in testing-aux.jam, which we load into Jam module named 'testing'
299
300def run_path_setup(target, sources, ps):
301
302 # For testing, we need to make sure that all dynamic libraries needed by the
303 # test are found. So, we collect all paths from dependency libraries (via
304 # xdll-path property) and add whatever explicit dll-path user has specified.
305 # The resulting paths are added to the environment on each test invocation.
306 dll_paths = ps.get('dll-path')
307 dll_paths.extend(ps.get('xdll-path'))
308 dll_paths.extend(bjam.call("get-target-variable", sources, "RUN_PATH"))
309 dll_paths = unique(dll_paths)
310 if dll_paths:
311 bjam.call("set-target-variable", target, "PATH_SETUP",
312 common.prepend_path_variable_command(
313 common.shared_library_path_variable(), dll_paths))
314
315def capture_output_setup(target, sources, ps):
316 run_path_setup(target, sources, ps)

Callers 1

capture_output_setupFunction · 0.85

Calls 2

uniqueFunction · 0.90
getMethod · 0.80

Tested by

no test coverage detected