$XML_VALIDATE $OUTPUT_DEST
ok $? "MI test: create session xsd validation"
#try to recreate a session. Expecting it to fail
$XML_VALIDATE $OUTPUT_DEST
ok $? "MI test: create session xsd validation"
#try to recreate a session. Expecting it to fail
$XML_VALIDATE $OUTPUT_DEST
ok $? "MI test: expecting fail create session xsd validation"
is_command_success $OUTPUT_DEST true
$XML_VALIDATE $OUTPUT_DEST
ok $? "MI test: expecting fail create session xsd validation"
is_command_success $OUTPUT_DEST true
$XML_VALIDATE $OUTPUT_DEST
ok $? "Mi test: enable ust channel xsd validation"
is_command_success $OUTPUT_DEST false
#Expect the command to fail
$XML_VALIDATE $OUTPUT_DEST
ok $? "Mi test: enable ust channel xsd validation"
is_command_success $OUTPUT_DEST false
#Expect the command to fail
$XML_VALIDATE $OUTPUT_DEST
ok $? "Mi test: fail enable ust channel xsd validation"
is_command_success $OUTPUT_DEST true
#Create two ust channel to test multiple disable
for (( i = 1; i < 3; i++ )); do
$XML_VALIDATE $OUTPUT_DEST
ok $? "Mi test: fail enable ust channel xsd validation"
is_command_success $OUTPUT_DEST true
#Create two ust channel to test multiple disable
for (( i = 1; i < 3; i++ )); do
- create_lttng_session $session_name $OUTPUT_DIR
- enable_ust_lttng_channel $session_name $channel_name
+ create_lttng_session_ok $session_name $OUTPUT_DIR
+ enable_ust_lttng_channel_ok $session_name $channel_name
$XML_VALIDATE $OUTPUT_DEST
ok $? "Mi test: Enable_event for ust domain xsd validation"
is_command_success $OUTPUT_DEST false
#Try to reenable an enabled event. Should fail
$XML_VALIDATE $OUTPUT_DEST
ok $? "Mi test: Enable_event for ust domain xsd validation"
is_command_success $OUTPUT_DEST false
#Try to reenable an enabled event. Should fail
$XML_VALIDATE $OUTPUT_DEST
ok $? "Mi test: Fail enable_event for ust domain xsd validation"
is_command_success $OUTPUT_DEST true
$XML_VALIDATE $OUTPUT_DEST
ok $? "Mi test: Fail enable_event for ust domain xsd validation"
is_command_success $OUTPUT_DEST true
#Event[*] print all the element inside the array with the IFS in between
concat_event=$( IFS=$','; echo "${event[*]}" )
#Event[*] print all the element inside the array with the IFS in between
concat_event=$( IFS=$','; echo "${event[*]}" )
$XML_VALIDATE $OUTPUT_DEST
ok $? "Mi test: Multiple enable ust event with inside fail xsd validation"
$XML_VALIDATE $OUTPUT_DEST
ok $? "Mi test: Multiple enable ust event with inside fail xsd validation"
extract_xml $OUTPUT_DEST $XPATH_ENABLE_EVENT_SUCCESS result
num_ocur=$(grep -o "true" <<< "$result" | wc -l)
test "$num_ocur" -eq "2"
extract_xml $OUTPUT_DEST $XPATH_ENABLE_EVENT_SUCCESS result
num_ocur=$(grep -o "true" <<< "$result" | wc -l)
test "$num_ocur" -eq "2"
- create_lttng_session $session_name $OUTPUT_DIR
- enable_ust_lttng_channel $session_name $channel_name
+ create_lttng_session_ok $session_name $OUTPUT_DIR
+ enable_ust_lttng_channel_ok $session_name $channel_name
#Enable ust and jul events
concat_event=$( IFS=$','; echo "${event[*]}" )
#Enable ust and jul events
concat_event=$( IFS=$','; echo "${event[*]}" )
- create_lttng_session $session_name $OUTPUT_DIR
- enable_ust_lttng_channel $session_name $channel_name
+ create_lttng_session_ok $session_name $OUTPUT_DIR
+ enable_ust_lttng_channel_ok $session_name $channel_name
#Enable ust and jul events
concat_event=$( IFS=$','; echo "${event[*]}" )
#Enable ust and jul events
concat_event=$( IFS=$','; echo "${event[*]}" )
- create_lttng_session $session_name $OUTPUT_DIR
- enable_ust_lttng_channel $session_name $channel_name
+ create_lttng_session_ok $session_name $OUTPUT_DIR
+ enable_ust_lttng_channel_ok $session_name $channel_name
#Enable ust and jul events
concat_event=$( IFS=$','; echo "${event[*]}" )
#Enable ust and jul events
concat_event=$( IFS=$','; echo "${event[*]}" )
extract_xml $OUTPUT_DEST "$XPATH_LIST_UST_EVENT""[./name = 'tp:tptest']/event_fields/event_field/name/text()" result
num=$(echo "$result" | wc -l)
extract_xml $OUTPUT_DEST "$XPATH_LIST_UST_EVENT""[./name = 'tp:tptest']/event_fields/event_field/name/text()" result
num=$(echo "$result" | wc -l)
#Test fail command
#No channel enable start command should return element success false
OUTPUT_DEST=$OUTPUT_DIR/$OUTPUT_FILE
#Test fail command
#No channel enable start command should return element success false
OUTPUT_DEST=$OUTPUT_DIR/$OUTPUT_FILE