(target, sources, ps)
| 303 | # contained in testing-aux.jam, which we load into Jam module named 'testing' |
| 304 | |
| 305 | def 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 | |
| 324 | def capture_output_setup(target, sources, ps): |
| 325 | if __debug__: |
no test coverage detected