# Allow overriding the babeltrace2 executables
if [ "x${BT_TESTS_BT2_BIN:-}" = "x" ]; then
BT_TESTS_BT2_BIN="$BT_TESTS_BUILDDIR/../src/cli/babeltrace2"
+ if [ "x${MSYSTEM:-}" != "x" ]; then
+ BT_TESTS_BT2_BIN="${BT_TESTS_BT2_BIN}.exe"
+ fi
fi
export BT_TESTS_BT2_BIN
if [ "x${BT_TESTS_BT2LOG_BIN:-}" = "x" ]; then
BT_TESTS_BT2LOG_BIN="$BT_TESTS_BUILDDIR/../src/cli/babeltrace2-log"
+ if [ "x${MSYSTEM:-}" != "x" ]; then
+ BT_TESTS_BT2LOG_BIN="${BT_TESTS_BT2LOG_BIN}.exe"
+ fi
fi
export BT_TESTS_BT2LOG_BIN
# $2 : The pattern to match python test script names (optional)
run_python_bt2_test() {
local test_dir="$1"
- local test_pattern="${2:-}" # optional
+ local test_pattern="${2:-'*'}" # optional, if none default to "*"
local ret
local test_runner_args=()
run_python_bt2 \
"${python_exec}" \
"${BT_TESTS_SRCDIR}/utils/python/testrunner.py" \
- "${test_runner_args[@]}"
+ --pattern "$test_pattern" \
+ "$test_dir" \
+
ret=$?
if test "x${BT_TESTS_COVERAGE_REPORT:-}" = "x1"; then