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

Function run_path_setup

src/tools/testing.py:305–322  ·  view source on GitHub ↗
(target, sources, ps)

Source from the content-addressed store, hash-verified

303# contained in testing-aux.jam, which we load into Jam module named 'testing'
304
305def run_path_setup(target, sources, ps):
306 if __debug__:
307 from ..build.property_set import PropertySet
308 assert is_iterable_typed(target, basestring) or isinstance(target, basestring)
309 assert is_iterable_typed(sources, basestring)
310 assert isinstance(ps, PropertySet)
311 # For testing, we need to make sure that all dynamic libraries needed by the
312 # test are found. So, we collect all paths from dependency libraries (via
313 # xdll-path property) and add whatever explicit dll-path user has specified.
314 # The resulting paths are added to the environment on each test invocation.
315 dll_paths = ps.get('dll-path')
316 dll_paths.extend(ps.get('xdll-path'))
317 dll_paths.extend(bjam.call("get-target-variable", sources, "RUN_PATH"))
318 dll_paths = unique(dll_paths)
319 if dll_paths:
320 bjam.call("set-target-variable", target, "PATH_SETUP",
321 common.prepend_path_variable_command(
322 common.shared_library_path_variable(), dll_paths))
323
324def capture_output_setup(target, sources, ps):
325 if __debug__:

Callers 1

capture_output_setupFunction · 0.85

Calls 3

is_iterable_typedFunction · 0.90
uniqueFunction · 0.90
getMethod · 0.80

Tested by

no test coverage detected