X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=tests%2Fbin%2Fintersection%2Fbt_python_helper.py.in;h=747f0e7b4ccdca31bc1a90c971d36ac264b37ca1;hp=11b4ab16afd556b315e050ae4f73334c4983311f;hb=e3a73777933637e15dca0c3da32a0a957abcdb51;hpb=ddd1e012ee5ffafc17b33a1155e282e617cb4b09 diff --git a/tests/bin/intersection/bt_python_helper.py.in b/tests/bin/intersection/bt_python_helper.py.in index 11b4ab16..747f0e7b 100644 --- a/tests/bin/intersection/bt_python_helper.py.in +++ b/tests/bin/intersection/bt_python_helper.py.in @@ -23,15 +23,18 @@ # SOFTWARE. import sys +import ctypes # Point the Python interpreter to the builddir's library and Babeltrace # bindings -bt_module_path = '@abs_top_builddir@/bindings/python/babeltrace' -bt_lib_py_path = '@abs_top_builddir@/bindings/python/babeltrace/.libs' -bt_lib_bt_path = '@abs_top_builddir@/lib/.libs' -bt_lib_ctf_path = '@abs_top_builddir@/format/ctf/.libs' +bt_module_path = '@abs_top_builddir@/bindings/python/build/build_lib/' sys.path.insert(0, bt_module_path) -sys.path.insert(1, bt_lib_py_path) -sys.path.insert(2, bt_lib_bt_path) -sys.path.insert(3, bt_lib_ctf_path) + +# Manually load the shared libraries used by the Babeltrace module during the +# tests +bt_lib_ctf_path = '@abs_top_builddir@/formats/ctf/.libs/libbabeltrace-ctf.so' +bt_lib_bt_path = '@abs_top_builddir@/lib/.libs/libbabeltrace.so' + +ctypes.cdll.LoadLibrary(bt_lib_ctf_path) +ctypes.cdll.LoadLibrary(bt_lib_bt_path)