local xpath=$XPATH_COMMAND_SUCCESS
- echo $xml
#Extract the success element
#expect false
extract_xml $OUTPUT_DEST $XPATH_COMMAND_SUCCESS result
function test_create_session ()
{
+ diag "Test create session"
+
local session_name="testSession"
OUTPUT_FILE="create_session.xml"
function test_destroy_session ()
{
+ diag "Test destroy session"
+
local session_name=(
"testSession1"
"testSession2"
function test_list_sessions ()
{
+ diag "Test list sessions"
+
local session_name=(
"testSession1"
"testSession2"
function test_list_session_long_path ()
{
+ diag "Test list session long path"
+
local session_name="session_long_path"
output_basedir=$OUTPUT_DIR/$(randstring 254 0)
}
function test_ust_channel ()
{
+ diag "Test UST channel"
+
local session_name="testsession"
- local channel_name=("channelUst0"
- "channelUst1"
- "channelUst2")
+ local channel_name=("channelUst0" "channelUst1" "channelUst2")
OUTPUT_FILE="ust_channel.xml"
function test_ust_lttng_event ()
{
+ diag "Test UST event"
+
local session_name="testSession"
local channel_name="testChannel"
local event=("ev1" "ev2" "ev3")
function test_list_channel ()
{
+ diag "Test list channel"
+
local session_name="testSession"
local channel_name="testChannel"
local event=("ev1" "ev2" "ev3")
function test_list_domain ()
{
+ diag "Test list domain"
+
local session_name="testSession"
local channel_name="testChannel"
local event=("ev1" "ev2" "ev3")
function test_list_session ()
{
+ diag "Test list session"
+
local session_name="testSession"
local channel_name="testChannel"
local event=("ev1" "ev2" "ev3")
#Test buid up
OUTPUT_DEST=$DEVNULL
+
create_lttng_session_ok $session_name $OUTPUT_DIR
enable_ust_lttng_channel_ok $session_name $channel_name
function test_list_ust_event ()
{
+ diag "Test list ust event"
+
local file_sync_after_first=$(mktemp --tmpdir -u "tmp.${FUNCNAME[0]}_sync_after_first.XXXXXX")
local file_sync_before_last=$(mktemp --tmpdir -u "tmp.${FUNCNAME[0]}_sync_before_last.XXXXXX")
rm -f ${file_sync_before_last}
}
-function test_start_stop () {
+function test_start_stop ()
+{
+ diag "Test start-stop"
+
local session_name="testStartStopSession"
local channel_name="startStopChannel"
#Test buid up
OUTPUT_DEST=$DEVNULL
+
create_lttng_session_ok $session_name $OUTPUT_DIR
#Test fail command
destroy_lttng_sessions
}
-function test_snapshot () {
+function test_snapshot ()
+{
+ diag "Test snapshot"
+
local session_name="testSnapshotAdd"
local snapshot_path="$OUTPUT_DIR/snapshotoutput"
OUTPUT_FILE="snapshot.xml"
-
#Test buid up
OUTPUT_DEST=$DEVNULL
create_lttng_session_no_output $session_name
function test_clear_session ()
{
+ diag "Test clear session"
+
# Since the session are not started there is no real clear done.
# We are testing the MI output only here.
local session_name=(