TESTAPP_BIN="$TESTAPP_PATH/$TESTAPP_NAME/$TESTAPP_NAME"
SESSION_NAME="stream"
EVENT_NAME="tp:tptest"
-PID_RELAYD=0
TRACE_PATH=$(mktemp -d)
BAIL_OUT "No UST events binary detected."
fi
-function lttng_create_session_uri
-{
- # Create session with default path
- $TESTDIR/../src/bin/lttng/$LTTNG_BIN create $SESSION_NAME -U net://localhost >/dev/null 2>&1
- ok $? "Create session with default path"
-}
-
-function lttng_create_session_uri_live
-{
- # Create session with default path
- $TESTDIR/../src/bin/lttng/$LTTNG_BIN create $SESSION_NAME --live -U net://localhost >/dev/null 2>&1
- ok $? "Create live session"
-}
-
function enable_channel_per_pid()
{
sess_name=$1
local file_sync_before_last=$(mktemp -u)
diag "Test UST streaming with metadata regeneration"
- lttng_create_session_uri
+ create_lttng_session_uri $SESSION_NAME net://localhost
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME
$TESTAPP_BIN $NR_ITER $NR_USEC_WAIT ${file_sync_after_first} ${file_sync_before_last} /dev/null 2>&1 &
local file_sync_before_last=$(mktemp -u)
diag "Test UST live with metadata regeneration (expect failure)"
- lttng_create_session_uri_live $SESSION_NAME $TRACE_PATH
+ create_lttng_session_uri $SESSION_NAME net://localhost --live
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME
$TESTAPP_BIN $NR_ITER $NR_USEC_WAIT ${file_sync_after_first} ${file_sync_before_last} /dev/null 2>&1 &