tests: add `tests/utils/python/mctf.py`, a text to CTF trace generator
[babeltrace.git] / tests / utils / utils.sh
index 9f5adf5aef66bb6d0c9f15dedbdba6143c2bc2f5..c2ea334130694e67fac487ba66e0f3b9ed3cea02 100644 (file)
@@ -409,3 +409,16 @@ run_python_bt2_test() {
 
        return $ret
 }
+
+# Generate a CTF trace using `mctf.py`.
+#
+# $1: Input filename
+# $2: Base directory path for output files
+gen_mctf_trace() {
+       local input_file="$1"
+       local base_dir="$2"
+
+       diag "Running: ${BT_TESTS_PYTHON_BIN} ${BT_TESTS_SRCDIR}/utils/python/mctf.py --base-dir ${base_dir} ${input_file}"
+       "${BT_TESTS_PYTHON_BIN}" "${BT_TESTS_SRCDIR}/utils/python/mctf.py" \
+               --base-dir "${base_dir}" "${input_file}"
+}
This page took 0.023669 seconds and 4 git commands to generate.