(target, sources, ps)
| 298 | # contained in testing-aux.jam, which we load into Jam module named 'testing' |
| 299 | |
| 300 | def 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 | |
| 315 | def capture_output_setup(target, sources, ps): |
| 316 | run_path_setup(target, sources, ps) |
no test coverage detected