3 # SPDX-License-Identifier: GPL-2.0-only
5 # Copyright (C) 2023 Efficios, Inc.
9 if [[ -n ${BT_TESTS_SRCDIR:-} ]]; then
10 UTILSSH
=$BT_TESTS_SRCDIR/utils
/utils.sh
12 UTILSSH
=$
(dirname "$0")/..
/..
/..
/utils
/utils.sh
15 # shellcheck source=../../../utils/utils.sh
18 # Directory containing the plugin
19 data_dir
=$BT_TESTS_DATADIR/plugins
/src.ctf.fs
/field
23 local -r output_dir
=$
(mktemp
-d)
25 "$BT_TESTS_PYTHON_BIN" "$data_dir/data_from_mp.py"
26 "$mp_path" "$output_dir"
29 if ! bt_run_in_py_env
"${py_cmd[@]}"; then
30 fail
"Failed to run \`${py_cmd[*]}\`"
34 local -r res_path
=$
(mktemp
)
36 "$res_path" /dev
/null
--plugin-path="$data_dir"
37 -c sink.test-text.single
"$output_dir/trace"
40 if ! bt_cli
"${cli_cmd[@]}"; then
41 fail
"Failed to run \`bt_cli ${cli_cmd[*]}\`"
45 bt_diff
"$res_path" "$output_dir/expect"
47 rm -rf "$output_dir" "$res_path"
52 for mp_path
in "$data_dir"/ctf-
1/pass-
*.mp
; do
This page took 0.030298 seconds and 4 git commands to generate.