Commit | Line | Data |
---|---|---|
5d7e8359 PP |
1 | #!/bin/bash |
2 | # | |
3 | # SPDX-License-Identifier: GPL-2.0-only | |
4 | # | |
5 | # Copyright (C) 2020 Philippe Proulx <pproulx@efficios.com> | |
6 | ||
75e396f6 | 7 | if [ -n "${BT_TESTS_SRCDIR:-}" ]; then |
5d7e8359 PP |
8 | UTILSSH="$BT_TESTS_SRCDIR/utils/utils.sh" |
9 | else | |
10 | UTILSSH="$(dirname "$0")/../../utils/utils.sh" | |
11 | fi | |
12 | ||
13 | # shellcheck source=../../utils/utils.sh | |
14 | source "$UTILSSH" | |
15 | ||
16 | reldir=lib/conds | |
17 | export BT_TESTS_LIB_CONDS_TRIGGER_BIN="$BT_TESTS_BUILDDIR/$reldir/conds-triggers" | |
18 | ||
a0baab4a | 19 | if [ "$BT_TESTS_OS_TYPE" = "mingw" ]; then |
5d7e8359 PP |
20 | BT_TESTS_LIB_CONDS_TRIGGER_BIN="$BT_TESTS_LIB_CONDS_TRIGGER_BIN.exe" |
21 | fi | |
22 | ||
c3ca8136 | 23 | bt_run_py_test "$BT_TESTS_SRCDIR/$reldir" test.py |