X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fpython-plugin-provider%2Ftest_python_plugin_provider.in;h=b6fc05a3925861083726e65e2f7df0662444525e;hb=578e048b5debf169e286e5b5cc747b5d6c16886d;hp=4e3c097e55195fd50d56503ed7e6fcca38f4bccf;hpb=66e4fcb52b61b3f6030b3535a7773c56c64cfa14;p=babeltrace.git diff --git a/tests/python-plugin-provider/test_python_plugin_provider.in b/tests/python-plugin-provider/test_python_plugin_provider.in index 4e3c097e..b6fc05a3 100644 --- a/tests/python-plugin-provider/test_python_plugin_provider.in +++ b/tests/python-plugin-provider/test_python_plugin_provider.in @@ -21,12 +21,18 @@ NO_SH_TAP=1 . "@abs_top_builddir@/tests/utils/common.sh" export PYTHON_PLUGIN_PROVIDER_TEST_PLUGIN_PATH="${BT_SRC_PATH}/tests/python-plugin-provider/bt_plugin_test_python_plugin_provider.py" -export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${BT_BUILD_PATH}/lib/.libs:${BT_BUILD_PATH}/python-plugin-provider/.libs" -PYTHON_BUILD_DIR="${BT_BUILD_PATH}/bindings/python/bt2/build/build_lib" + +PYTHON_BUILD_DIR="${BT_BUILD_PATH}/src/bindings/python/bt2/build/build_lib" TESTS_UTILS_PYTHON_DIR="${BT_SRC_PATH}/tests/utils/python" TESTRUNNER_PY="${BT_SRC_PATH}/tests/utils/python/testrunner.py" THIS_DIR="${BT_SRC_PATH}/tests/python-plugin-provider" +if [ "x${MSYSTEM}" != "x" ]; then + export PATH="${BT_BUILD_PATH}/src/lib/.libs:${BT_BUILD_PATH}/src/python-plugin-provider/.libs:${PATH}" +else + export LD_LIBRARY_PATH="${BT_BUILD_PATH}/src/lib/.libs:${BT_BUILD_PATH}/src/python-plugin-provider/.libs:${LD_LIBRARY_PATH}" +fi + PYTHONPATH="${PYTHON_BUILD_DIR}:${TESTS_UTILS_PYTHON_DIR}" \ - "/usr/bin/python3" "${TESTRUNNER_PY}" "${THIS_DIR}" + "@PYTHON@" "${TESTRUNNER_PY}" "${THIS_DIR}" exit $?