lib/plugin/plugin.c: do not use G_MODULE_BIND_LOCAL for Python plugin provider
[babeltrace.git] / tests / bindings / python / bt2 / testall.sh.in
CommitLineData
9cf643d1
PP
1#!/bin/sh
2
3check_coverage() {
4 coverage run $@
5}
6
7PYTHON_BUILD_DIR="@abs_top_builddir@/bindings/python"
8BT2_NATIVE_LIBS_DIR="@abs_top_builddir@/bindings/python/bt2/.libs"
9TESTS_UTILS_PYTHON_DIR="@abs_top_srcdir@/tests/utils/python"
10TESTRUNNER_PY="@abs_top_srcdir@/tests/utils/python/testrunner.py"
11THIS_DIR="@abs_top_srcdir@/tests/bindings/python/bt2"
12
13if test "x$TESTALL_COVERAGE" = "x1"; then
14 EXEC=check_coverage
15else
16 EXEC="@PYTHON@"
17
18fi
19
20PYTHONPATH="$PYTHON_BUILD_DIR:$BT2_NATIVE_LIBS_DIR:$TESTS_UTILS_PYTHON_DIR" \
21 "$EXEC" "$TESTRUNNER_PY" "$THIS_DIR"
22res=$?
23
24if test "x$TESTALL_COVERAGE_REPORT" = "x1"; then
25 coverage report -m
26fi
27
28if test "x$TESTALL_COVERAGE_HTML" = "x1"; then
29 coverage html
30fi
31
32exit $res
This page took 0.042736 seconds and 4 git commands to generate.