| 1 | #!/bin/bash |
| 2 | # |
| 3 | # SPDX-License-Identifier: GPL-2.0-only |
| 4 | # |
| 5 | # Copyright (C) 2017 Philippe Proulx <pproulx@efficios.com> |
| 6 | # |
| 7 | |
| 8 | if [ "x${BT_TESTS_SRCDIR:-}" != "x" ]; then |
| 9 | UTILSSH="$BT_TESTS_SRCDIR/utils/utils.sh" |
| 10 | else |
| 11 | UTILSSH="$(dirname "$0")/../utils/utils.sh" |
| 12 | fi |
| 13 | |
| 14 | # shellcheck source=../utils/utils.sh |
| 15 | source "$UTILSSH" |
| 16 | |
| 17 | export PYTHON_PLUGIN_PROVIDER_TEST_PLUGIN_PATH="${BT_TESTS_SRCDIR}/python-plugin-provider/bt_plugin_test_python_plugin_provider.py" |
| 18 | |
| 19 | run_python_bt2_test \ |
| 20 | "${BT_TESTS_SRCDIR}/python-plugin-provider" \ |
| 21 | test_python_plugin_provider.py |