X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=tests%2Fplugins%2Fsrc.ctf.lttng-live%2Ftest_live;h=f694d799e9a3697c0c4d2e8550d410e1805fc0c1;hb=f2958352b96ea9e50f6fbd5647b99d0be97188ec;hp=f5ba914b5af8af44f272583febe2c9b0427e8dc5;hpb=3f9e6f1eeb6473a595acc1b2dfe71e08aa3b3890;p=babeltrace.git diff --git a/tests/plugins/src.ctf.lttng-live/test_live b/tests/plugins/src.ctf.lttng-live/test_live index f5ba914b..f694d799 100755 --- a/tests/plugins/src.ctf.lttng-live/test_live +++ b/tests/plugins/src.ctf.lttng-live/test_live @@ -5,15 +5,16 @@ # Copyright (C) 2019 Philippe Proulx # -# This test validates that a `src.ctf.fs` component successfully reads -# specific CTF traces and creates the expected messages. +# This test validates that a `src.ctf.lttng-live` component successfully does +# various tasks that a `src.ctf.lttng-live` component is expected to do, like +# listing tracing sessions and receiving live traces / producing the expected +# messages out of it. # -# Such CTF traces to open either exist (in `tests/ctf-traces/`) -# or are generated by this test using local trace generators. +# A mock LTTng live server is used to feed data to the component. SH_TAP=1 -if [ "x${BT_TESTS_SRCDIR:-}" != "x" ]; then +if [ -n "${BT_TESTS_SRCDIR:-}" ]; then UTILSSH="$BT_TESTS_SRCDIR/utils/utils.sh" else UTILSSH="$(dirname "$0")/../../utils/utils.sh" @@ -55,7 +56,7 @@ lttng_live_server() { # start server diag "$BT_TESTS_PYTHON_BIN $server_script --port-file $port_file --trace-path-prefix $trace_dir_native $server_args" - echo "$server_args" | xargs "$BT_TESTS_PYTHON_BIN" "$server_script" \ + echo "$server_args" | run_python xargs "$BT_TESTS_PYTHON_BIN" "$server_script" \ --port-file "$port_file" \ --trace-path-prefix "$trace_dir_native" &