X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Futils.sh;h=3a619201f936d3ec3b9ea6a3f81beabcd9570c55;hp=92ed7b354bc492649967d249b53a695fdabf559f;hb=ab95d85d8784a545ff66c2025110829e9b5cb1b8;hpb=9c8a396496a28702730192ae1ded06105c54c5dc diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index 92ed7b354..3a619201f 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -723,6 +723,15 @@ function create_lttng_session_no_output () ok $? "Create session $sess_name in no-output mode" } +function create_lttng_session_uri () { + local sess_name=$1 + local uri=$2 + local opts="${@:3}" + + $TESTDIR/../src/bin/lttng/$LTTNG_BIN create $sess_name -U $uri $opts 1> $OUTPUT_DEST 2> $ERROR_OUTPUT_DEST + ok $? "Create session $sess_name with uri:$uri and opts: $opts" +} + function create_lttng_session () { local withtap=$1 @@ -1328,6 +1337,13 @@ function lttng_untrack_kernel_all_ok() ok $? "Lttng untrack all pid on the kernel domain" } +function lttng_add_context_list() +{ + $TESTDIR/../src/bin/lttng/$LTTNG_BIN add-context --list 1> $OUTPUT_DEST 2> $ERROR_OUTPUT_DEST + ret=$? + ok $ret "Context listing" +} + function add_context_lttng() { local expected_to_fail="$1" @@ -1503,7 +1519,7 @@ function validate_trace_only_exp() local total=$($BABELTRACE_BIN $trace_path | wc -l) if [ "$count" -ne 0 ] && [ "$total" -eq "$count" ]; then - pass "Trace match with $total for expression '${event_exp}" + pass "Trace match with $total for expression '${event_exp}'" else fail "Trace match" diag "$total syscall event(s) found, only syscalls matching expression '${event_exp}' ($count occurrences) are expected"