Refactor: test: wrapper for stop_lttng_tracing
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 24 Apr 2015 20:10:08 +0000 (16:10 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 26 Jun 2015 21:37:33 +0000 (17:37 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
36 files changed:
tests/regression/kernel/test_all_events
tests/regression/kernel/test_event_basic
tests/regression/kernel/test_syscall
tests/regression/tools/exclusion/test_exclusion
tests/regression/tools/filtering/test_valid_filter
tests/regression/tools/live/test_lttng_kernel
tests/regression/tools/live/test_lttng_ust
tests/regression/tools/mi/test_mi
tests/regression/tools/snapshots/test_kernel
tests/regression/tools/snapshots/test_kernel_streaming
tests/regression/tools/snapshots/test_ust_streaming
tests/regression/tools/snapshots/ust_test
tests/regression/tools/streaming/test_high_throughput_limits
tests/regression/tools/streaming/test_kernel
tests/regression/tools/streaming/test_ust
tests/regression/tools/tracefile-limits/test_tracefile_count
tests/regression/tools/tracefile-limits/test_tracefile_size
tests/regression/ust/before-after/test_before_after
tests/regression/ust/buffers-pid/test_buffers_pid
tests/regression/ust/high-throughput/test_high_throughput
tests/regression/ust/java-jul/test_java_jul
tests/regression/ust/java-log4j/test_java_log4j
tests/regression/ust/low-throughput/test_low_throughput
tests/regression/ust/multi-session/test_multi_session
tests/regression/ust/nprocesses/test_nprocesses
tests/regression/ust/overlap/test_overlap
tests/regression/ust/periodical-metadata-flush/test_periodical_metadata_flush
tests/regression/ust/python-logging/test_python_logging
tests/regression/ust/test_event_basic
tests/regression/ust/test_event_perf
tests/regression/ust/test_event_tracef
tests/regression/ust/test_event_wildcard
tests/stress/test_multi_sessions_per_uid_10app
tests/stress/test_multi_sessions_per_uid_5app_streaming
tests/stress/test_multi_sessions_per_uid_5app_streaming_kill_relayd
tests/utils/utils.sh

index 444f0853e1ab80a3b32fd5604bb84155764b9adc..9ea847b486a9ad3be28fa5b4fc9a0a33fa7fa8a0 100755 (executable)
@@ -33,7 +33,7 @@ function test_all_event()
        lttng_enable_kernel_event $SESSION_NAME
 
        start_lttng_tracing_ok
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        validate_trace "sched_switch" $TRACE_PATH
 
index 3c5f91d0f18c22ac717d0376c7f83cd3e0eca799..c57858af4a4258cba8708a95212f0f55dd3b7158 100755 (executable)
@@ -35,7 +35,7 @@ function test_event_basic()
        lttng_enable_kernel_event $SESSION_NAME "sched_process_free"
 
        start_lttng_tracing_ok
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        validate_trace "sched_switch" $TRACE_PATH
        validate_trace "sched_process_exit" $TRACE_PATH
@@ -57,7 +57,7 @@ function test_enable_after_start()
 
        start_lttng_tracing_ok
        lttng_enable_kernel_event $SESSION_NAME "sched_process_exit"
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        validate_trace "sched_switch" $TRACE_PATH
        validate_trace "sched_process_exit" $TRACE_PATH
index fd1593d9d6d1751774d3c32c161f1891a898aedc..95f6124553e45a428569a110f9345ac11fec1cc5 100755 (executable)
@@ -67,7 +67,7 @@ function test_syscall_simple_list()
 
        start_lttng_tracing_ok
        eval ${TESTCMD}
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        # ensure each is there.
        validate_trace_exp "-e syscall_entry_$EVENT_NAME: -e compat_syscall_entry_$EVENT_NAME:" $TRACE_PATH
@@ -100,7 +100,7 @@ function test_syscall_simple_list_two()
 
        start_lttng_tracing_ok
        eval ${TESTCMD}
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        # ensure each is there.
        validate_trace_exp "-e syscall_entry_$EVENT_NAME: -e compat_syscall_entry_$EVENT_NAME:" $TRACE_PATH
@@ -131,7 +131,7 @@ function test_syscall_single()
 
        start_lttng_tracing_ok
        eval ${TESTCMD}
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        # ensure each is there.
        validate_trace_exp "-e syscall_entry_open: -e compat_syscall_entry_open:" $TRACE_PATH
@@ -159,7 +159,7 @@ function test_syscall_two()
 
        start_lttng_tracing_ok
        eval ${TESTCMD}
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        # ensure each is there.
        validate_trace_exp "-e syscall_entry_open: -e compat_syscall_entry_open:" $TRACE_PATH
@@ -189,7 +189,7 @@ function test_syscall_all()
 
        start_lttng_tracing_ok
        eval ${TESTCMD}
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        # ensure at least open and close are there.
        validate_trace_exp "-e syscall_entry_open: -e compat_syscall_entry_open:" $TRACE_PATH
@@ -220,7 +220,7 @@ function test_syscall_all_disable_one()
 
        start_lttng_tracing_ok
        eval ${TESTCMD}
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        # ensure "open" syscall is there.
        validate_trace_exp "-e syscall_entry_open: -e compat_syscall_entry_open: -e syscall_exit_open: -e compat_syscall_exit_open:" $TRACE_PATH
@@ -253,7 +253,7 @@ function test_syscall_all_disable_two()
        start_lttng_tracing_ok
        # generates open, close, execve (at least)
        eval ${TESTCMD}
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        # ensure "open" syscall is there.
        validate_trace_exp "-e syscall_entry_open: -e compat_syscall_entry_open: -e syscall_exit_open: -e compat_syscall_exit_open:" $TRACE_PATH
@@ -288,7 +288,7 @@ function test_syscall_enable_all_disable_all()
        start_lttng_tracing_ok
        # generates open, close, execve (at least)
        eval ${TESTCMD}
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        # ensure nothing has been traced.
        validate_trace_empty $TRACE_PATH
@@ -317,7 +317,7 @@ function test_syscall_enable_all_disable_all_enable_all()
        start_lttng_tracing_ok
        # generates open, close, execve (at least)
        eval ${TESTCMD}
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        # ensure at least open and close are there.
        validate_trace_exp "-e syscall_entry_open: -e compat_syscall_entry_open:" $TRACE_PATH
@@ -352,7 +352,7 @@ function test_syscall_enable_all_disable_all_twice()
        start_lttng_tracing_ok
        # generates open, close, execve (at least)
        eval ${TESTCMD}
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        # ensure nothing has been traced.
        validate_trace_empty $TRACE_PATH
@@ -379,7 +379,7 @@ function test_syscall_enable_one_disable_one()
        start_lttng_tracing_ok
        # generates open, close, execve (at least)
        eval ${TESTCMD}
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        # ensure nothing has been traced.
        validate_trace_empty $TRACE_PATH
@@ -408,7 +408,7 @@ function test_syscall_enable_two_disable_two()
        start_lttng_tracing_ok
        # generates open, close, execve (at least)
        eval ${TESTCMD}
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        # ensure nothing has been traced.
        validate_trace_empty $TRACE_PATH
@@ -436,7 +436,7 @@ function test_syscall_enable_two_disable_one()
        start_lttng_tracing_ok
        # generates open, close, execve (at least)
        eval ${TESTCMD}
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        # ensure open is there.
        validate_trace_exp "-e syscall_entry_open: -e compat_syscall_entry_open:" $TRACE_PATH
index 6ff8c210f7b00be2fee868e72ddfb15b55d445b2..0033c7ed51e4fd3d69fafddfe576328c90c3964a 100755 (executable)
@@ -59,7 +59,7 @@ function test_exclusion
        # Trace apps
        start_lttng_tracing_ok $SESSION_NAME
        run_apps
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        # Destroy session
        destroy_lttng_session $SESSION_NAME
index 9a9e31c83aaea4b64f6e8e9ad18e660a1f40e1d4..42f32e70583aae15f03dc08241067cce7e322c08 100755 (executable)
@@ -67,7 +67,7 @@ function test_valid_filter
        # Trace apps
        start_lttng_tracing_ok $SESSION_NAME
        run_apps
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        # Destroy session
        destroy_lttng_session $SESSION_NAME
index d55eab61f7440f6c1f6eb6751609ccbc513379c1..084649f9bf99697a19bd4a936c05bf0f7a4eefad 100755 (executable)
@@ -54,7 +54,7 @@ function setup_live_tracing()
 
 function clean_live_tracing()
 {
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 }
 
index b1d5c293103236b657be6091fde10acfb97829ae..bf66603f6b878b22841258638ac64f22e21e67ed 100755 (executable)
@@ -68,7 +68,7 @@ function setup_live_tracing()
 
 function clean_live_tracing()
 {
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 }
 
index 4c71fd8308604912c703bd864cb8c042c87cfb5d..5d2d4513f4d0f486a9043b8f5191604e76611702 100755 (executable)
@@ -580,7 +580,7 @@ function test_start_stop () {
        ok $? "Mi test: enabled element : $result expected: true"
 
        #Test stop command
-       stop_lttng_tracing $session_name
+       stop_lttng_tracing_ok $session_name
        $XML_VALIDATE $OUTPUT_DEST
        ok $? "Mi test: stop xsd validation"
 
@@ -595,7 +595,7 @@ function test_start_stop () {
        ok $? "Mi test: enabled element : $result expected: false"
 
        #Test failing stop command
-       stop_lttng_tracing $session_name 1
+       stop_lttng_tracing_fail $session_name
        $XML_VALIDATE $OUTPUT_DEST
        ok $? "Mi test: failed stop xsd validation"
 
index 61e5a7c0ecddb7dba91e8ecdc2e0844e074fb518..b4c7f9146e86f02ab7d84c82c6694e40a34e48d9 100755 (executable)
@@ -44,7 +44,7 @@ function test_kernel_local_snapshot ()
        start_lttng_tracing_ok $SESSION_NAME
        lttng_snapshot_add_output $SESSION_NAME $TRACE_PATH
        lttng_snapshot_record $SESSION_NAME
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test
@@ -64,7 +64,7 @@ function test_kernel_local_snapshot_after_stop ()
        enable_lttng_mmap_overwrite_kernel_channel $SESSION_NAME $CHANNEL_NAME
        lttng_enable_kernel_event $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
        start_lttng_tracing_ok $SESSION_NAME
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        lttng_snapshot_add_output $SESSION_NAME $TRACE_PATH
        lttng_snapshot_record $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
@@ -114,7 +114,7 @@ function test_kernel_local_snapshot_append_to_metadata ()
                break
        fi
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 }
 
@@ -141,7 +141,7 @@ function test_kernel_1000_local_snapshots ()
                        break
                fi
        done
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 }
 
index 233285743479ed564951ba910687ce64c35dd854..e37b8d464cf575a2e0c9ecfcde4ccef76ea4f68c 100755 (executable)
@@ -77,7 +77,7 @@ function test_kernel_default_name_with_del()
                return $?
        fi
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        return 0
@@ -93,7 +93,7 @@ function test_kernel_default_name()
        start_lttng_tracing_ok $SESSION_NAME
        snapshot_add_output $SESSION_NAME "net://localhost"
        lttng_snapshot_record $SESSION_NAME
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
        # Validate test
        validate_trace $EVENT_NAME $TRACE_PATH/$HOSTNAME/snapshot-1*
@@ -115,7 +115,7 @@ function test_kernel_custom_name()
        start_lttng_tracing_ok $SESSION_NAME
        snapshot_add_output $SESSION_NAME "net://localhost" $name
        lttng_snapshot_record $SESSION_NAME
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        if ls $TRACE_PATH/$HOSTNAME/$name* &> /dev/null; then
index 4dcac4a16a6c8c25aa77218a3afcf30f7c296e0a..4c93cb3db2765b6da05648a75cc8513e5dd64334 100755 (executable)
@@ -118,7 +118,7 @@ function test_ust_default_name_with_del()
                return $?
        fi
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        stop_test_apps
@@ -139,7 +139,7 @@ function test_ust_default_name()
 
        snapshot_add_output $SESSION_NAME "net://localhost"
        lttng_snapshot_record $SESSION_NAME
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
        # Validate test
        validate_trace $EVENT_NAME $TRACE_PATH/$HOSTNAME/snapshot-1*
@@ -162,7 +162,7 @@ function test_ust_default_name_custom_uri()
 
        snapshot_add_output $SESSION_NAME "-C tcp://localhost:5342 -D tcp://localhost:5343"
        lttng_snapshot_record $SESSION_NAME
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
        # Validate test
        validate_trace $EVENT_NAME $TRACE_PATH/$HOSTNAME/snapshot-1*
@@ -189,7 +189,7 @@ function test_ust_custom_name()
 
        snapshot_add_output $SESSION_NAME "net://localhost" $name
        lttng_snapshot_record $SESSION_NAME
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        if ls $TRACE_PATH/$HOSTNAME/$name* &> /dev/null; then
index 815a7f2b496b33722dea28a12c71eb258ce88886..2401794eb2b3b767d96c71dd7cf4d67c0a9f15f7 100755 (executable)
@@ -149,7 +149,7 @@ function test_ust_list_output ()
 
        ok $? "Snapshot named ${output_names[1]} present in list-output listing"
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 }
 
@@ -166,7 +166,7 @@ function test_ust_local_snapshot ()
        start_test_app
 
        lttng_snapshot_record $SESSION_NAME
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test
@@ -213,7 +213,7 @@ function test_ust_local_snapshot_max_size ()
 
        pass "Tracefiles size sum validation"
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test
@@ -243,7 +243,7 @@ function test_ust_local_snapshot_large_metadata ()
        $LM_BIN 1 1
        ok $? "Start application to trace"
        lttng_snapshot_record $SESSION_NAME
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test
@@ -276,7 +276,7 @@ function test_ust_per_uid_local_snapshot ()
        start_test_app
 
        lttng_snapshot_record $SESSION_NAME
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test
@@ -303,7 +303,7 @@ function test_ust_per_uid_local_snapshot_post_mortem ()
        stop_test_apps
 
        lttng_snapshot_record $SESSION_NAME
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test
@@ -337,7 +337,7 @@ function test_ust_local_snapshots ()
                        rm -rf $TRACE_PATH
                fi
        done
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        stop_test_apps
index 4a91524860cc994e80cfff5a1215cfc37f1ac3d3..f59ff053db757baa64d4eeb144aef7b78df773bf 100755 (executable)
@@ -105,7 +105,7 @@ function test_high_throughput
        diag "Waiting for applications to end"
        wait
        pass "waiting done"
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
        validate_event_count
 }
index 5718201b8bec515e13c46741dc009554b4b74b72..68b7247b60feef9247e41472045340b85fbb09f7 100755 (executable)
@@ -50,7 +50,7 @@ function test_kernel_before_start ()
        start_lttng_tracing_ok $SESSION_NAME
        # Give a second
        sleep 1
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 }
 
@@ -64,7 +64,7 @@ function test_kernel_after_start ()
        lttng_enable_kernel_event $SESSION_NAME $EVENT_NAME
        # Give a second
        sleep 1
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 }
 
index 68d92947c1051f55cb66cda4edf98575e4a254ce..44b993355398513fedbe9027e6ca336a3973d36e 100755 (executable)
@@ -66,7 +66,7 @@ function test_ust_before_start ()
        # Wait for the applications started in background
        wait
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
        rm -f ${file_sync_after_first}
        rm -f ${file_sync_before_last}
@@ -88,7 +88,7 @@ function test_ust_after_start ()
                sleep 0.5
        done
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Wait for the applications started in background
index 91e2136c984c95659db1b768105fa38f7aef5f7f..8e2747afabe57baf1f467173427251cae0e8c7ae 100755 (executable)
@@ -120,7 +120,7 @@ function test_tracefile_count_limit ()
 
        $TESTAPP_BIN $num_iter >/dev/null 2>&1
 
-       stop_lttng_tracing $session_name
+       stop_lttng_tracing_ok $session_name
 
        destroy_lttng_session $session_name
 
index 9fa772eb27a93e392ad1da1c60894d1f2373fbed..0f07d7c915258da3fac5926fa7e8bf697263d987 100755 (executable)
@@ -112,7 +112,7 @@ function test_tracefile_size_limit ()
 
        $TESTAPP_BIN $NR_ITER >/dev/null 2>&1
 
-       stop_lttng_tracing $session_name
+       stop_lttng_tracing_ok $session_name
 
        destroy_lttng_session $session_name
 
index 1ab94a7240c1647f80f65ec2edcaede02e8e316c..80b5c76ad6c4958ef39cbf9e9af258b73a1fb7dd 100755 (executable)
@@ -46,7 +46,7 @@ function test_before_apps()
        wait
        ok $? "Traced application stopped."
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
@@ -72,7 +72,7 @@ function test_after_apps()
 
        wait
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        rm -f ${file_sync_after_first}
index d21e8c34ad6f256bc8c927a97aa80442917ad862..fad120ca312184a7dceb6110d06df1314bb2d918 100755 (executable)
@@ -63,7 +63,7 @@ test_after_multiple_apps() {
        done
        wait
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        trace_match_only $EVENT_NAME $[NR_ITER * 5] $TRACE_PATH
@@ -98,7 +98,7 @@ test_before_multiple_apps() {
        wait
        pass "Waiting done"
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        for i in `seq 1 5`; do
@@ -135,7 +135,7 @@ test_after_app() {
        ok $? "Start application to trace"
        wait
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
@@ -165,7 +165,7 @@ test_before_app() {
 
        wait
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        rm -f ${file_sync_after_first}
@@ -214,7 +214,7 @@ test_multiple_channels() {
        ok $? "Start application to trace"
        wait
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        trace_match_only $EVENT_NAME $[NR_ITER * 5] $TRACE_PATH
        out=$?
 
index c236e5aaf00ce127ef1c5535752bb643cfa37a82..89895fd92e552bea29158945e27b1411fa52d3b6 100755 (executable)
@@ -53,7 +53,7 @@ diag "Waiting for applications to end"
 wait
 pass "Wait for applications to end"
 
-stop_lttng_tracing $SESSION_NAME
+stop_lttng_tracing_ok $SESSION_NAME
 destroy_lttng_session $SESSION_NAME
 
 stop_lttng_sessiond
index 03b6e2da913ca31eca435c922db8dd9b1c50c857..f4114fbe004e05609e6a395198d0126315a5a621 100755 (executable)
@@ -107,7 +107,7 @@ function test_jul_before_start ()
        # Wait for the applications started in background
        wait
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        rm -f ${file_sync_after_first}
@@ -131,7 +131,7 @@ function test_jul_after_start ()
        # Run 5 times with a 1 second delay
        run_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting all events.
@@ -152,7 +152,7 @@ function test_jul_loglevel ()
        # Run 5 times with a 1 second delay
        run_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting all events.
@@ -170,7 +170,7 @@ function test_jul_loglevel ()
        # Run 5 times with a 1 second delay
        run_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting 0 events.
@@ -188,7 +188,7 @@ function test_jul_loglevel ()
        # Run 5 times with a 1 second delay
        run_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting all events.
@@ -208,7 +208,7 @@ function test_jul_loglevel_multiple ()
        # Run 5 times with a 1 second delay and fire two TP.
        run_app 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting all events times two.
@@ -225,7 +225,7 @@ function test_jul_loglevel_multiple ()
        # Run 5 times with a 1 second delay and fire two TP.
        run_app 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting all events times two.
@@ -250,8 +250,8 @@ function test_jul_multi_session_loglevel()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 1 1
 
-       stop_lttng_tracing $SESSION_NAME-1
-       stop_lttng_tracing $SESSION_NAME-2
+       stop_lttng_tracing_ok $SESSION_NAME-1
+       stop_lttng_tracing_ok $SESSION_NAME-2
        destroy_lttng_session $SESSION_NAME-1
        destroy_lttng_session $SESSION_NAME-2
 
@@ -285,8 +285,8 @@ function test_jul_multi_session_disable()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME-1
-       stop_lttng_tracing $SESSION_NAME-2
+       stop_lttng_tracing_ok $SESSION_NAME-1
+       stop_lttng_tracing_ok $SESSION_NAME-2
        destroy_lttng_session $SESSION_NAME-1
        destroy_lttng_session $SESSION_NAME-2
 
@@ -320,8 +320,8 @@ function test_jul_multi_session_disable_wildcard()
 
        run_app
 
-       stop_lttng_tracing $SESSION_NAME-1
-       stop_lttng_tracing $SESSION_NAME-2
+       stop_lttng_tracing_ok $SESSION_NAME-1
+       stop_lttng_tracing_ok $SESSION_NAME-2
        destroy_lttng_session $SESSION_NAME-1
        destroy_lttng_session $SESSION_NAME-2
 
@@ -353,7 +353,7 @@ function test_jul_disable_all()
 
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting NO event of the first TP and second TP.
@@ -379,8 +379,8 @@ function test_jul_multi_session()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME-1
-       stop_lttng_tracing $SESSION_NAME-2
+       stop_lttng_tracing_ok $SESSION_NAME-1
+       stop_lttng_tracing_ok $SESSION_NAME-2
        destroy_lttng_session $SESSION_NAME-1
        destroy_lttng_session $SESSION_NAME-2
 
@@ -411,7 +411,7 @@ function test_jul_destroy_session()
        # Wait for the applications started in background
        wait
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting at least one event num 1
@@ -430,7 +430,7 @@ function test_jul_destroy_session()
        # Wait for the applications started in background
        wait
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting only one event num 2
@@ -452,7 +452,7 @@ function test_jul_filtering()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting one event of the second TP only.
@@ -470,7 +470,7 @@ function test_jul_filtering()
        # Run 5 times with a 1 second delay, fire finest and second TP.
        run_app 1 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting NR_ITER event of the main INFO tp.
@@ -494,7 +494,7 @@ function test_jul_disable()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting one event of the second TP only.
@@ -518,7 +518,7 @@ function test_jul_disable_enable()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting NR_ITER event of the main INFO tp.
@@ -546,7 +546,7 @@ function test_jul_filter_loglevel()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting no events.
index 6abc12fe301e4325caa908c87fc902ba91af99d9..9fd059447d041081c661763307a009afe88a54c7 100755 (executable)
@@ -108,7 +108,7 @@ function test_log4j_before_start ()
        # Wait for the applications started in background
        wait
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        rm -f ${file_sync_after_first}
@@ -132,7 +132,7 @@ function test_log4j_after_start ()
        # Run 5 times with a 1 second delay
        run_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting all events.
@@ -153,7 +153,7 @@ function test_log4j_loglevel ()
        # Run 5 times with a 1 second delay
        run_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting all events.
@@ -171,7 +171,7 @@ function test_log4j_loglevel ()
        # Run 5 times with a 1 second delay
        run_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting 0 events.
@@ -189,7 +189,7 @@ function test_log4j_loglevel ()
        # Run 5 times with a 1 second delay
        run_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting all events.
@@ -209,7 +209,7 @@ function test_log4j_loglevel_multiple ()
        # Run 5 times with a 1 second delay and fire two TP.
        run_app 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting all events times two.
@@ -226,7 +226,7 @@ function test_log4j_loglevel_multiple ()
        # Run 5 times with a 1 second delay and fire two TP.
        run_app 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting all events times two.
@@ -251,8 +251,8 @@ function test_log4j_multi_session_loglevel()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 1 1
 
-       stop_lttng_tracing $SESSION_NAME-1
-       stop_lttng_tracing $SESSION_NAME-2
+       stop_lttng_tracing_ok $SESSION_NAME-1
+       stop_lttng_tracing_ok $SESSION_NAME-2
        destroy_lttng_session $SESSION_NAME-1
        destroy_lttng_session $SESSION_NAME-2
 
@@ -286,8 +286,8 @@ function test_log4j_multi_session_disable()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME-1
-       stop_lttng_tracing $SESSION_NAME-2
+       stop_lttng_tracing_ok $SESSION_NAME-1
+       stop_lttng_tracing_ok $SESSION_NAME-2
        destroy_lttng_session $SESSION_NAME-1
        destroy_lttng_session $SESSION_NAME-2
 
@@ -321,8 +321,8 @@ function test_log4j_multi_session_disable_wildcard()
 
        run_app
 
-       stop_lttng_tracing $SESSION_NAME-1
-       stop_lttng_tracing $SESSION_NAME-2
+       stop_lttng_tracing_ok $SESSION_NAME-1
+       stop_lttng_tracing_ok $SESSION_NAME-2
        destroy_lttng_session $SESSION_NAME-1
        destroy_lttng_session $SESSION_NAME-2
 
@@ -354,7 +354,7 @@ function test_log4j_disable_all()
 
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting NO event of the first TP and second TP.
@@ -380,8 +380,8 @@ function test_log4j_multi_session()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME-1
-       stop_lttng_tracing $SESSION_NAME-2
+       stop_lttng_tracing_ok $SESSION_NAME-1
+       stop_lttng_tracing_ok $SESSION_NAME-2
        destroy_lttng_session $SESSION_NAME-1
        destroy_lttng_session $SESSION_NAME-2
 
@@ -411,7 +411,7 @@ function test_log4j_destroy_session()
        # Wait for the applications started in background
        wait
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting at least one event num 1
@@ -429,7 +429,7 @@ function test_log4j_destroy_session()
        # Wait for the applications started in background
        wait
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting only one event num 2
@@ -451,7 +451,7 @@ function test_log4j_filtering()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting one event of the second TP only.
@@ -469,7 +469,7 @@ function test_log4j_filtering()
        # Run 5 times with a 1 second delay, fire debug and second TP.
        run_app 1 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting NR_ITER event of the main INFO tp.
@@ -493,7 +493,7 @@ function test_log4j_disable()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting one event of the second TP only.
@@ -517,7 +517,7 @@ function test_log4j_disable_enable()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting NR_ITER event of the main INFO tp.
@@ -545,7 +545,7 @@ function test_log4j_filter_loglevel()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting no events.
index e98c06725af1e5f5d19b377c9febcb7ad972858a..a1948aa47f81c122bae26dd4e38d73019140fa72 100755 (executable)
@@ -47,7 +47,7 @@ start_lttng_tracing_ok $SESSION_NAME
 # This is going to take 20 minutes
 ./$CURDIR/$BIN_NAME >/dev/null 2>&1
 
-stop_lttng_tracing $SESSION_NAME
+stop_lttng_tracing_ok $SESSION_NAME
 destroy_lttng_session $SESSION_NAME
 
 stop_lttng_sessiond
index 4fcb54777a97c7f577ed19084eec73d4066cb842..45da8d20497522fe4c97ed79b44cfb4f54c4433e 100755 (executable)
@@ -48,7 +48,7 @@ test_multi_session() {
        pass "Wait for events to record"
 
        for i in `seq 0 3`; do
-               stop_lttng_tracing "$SESSION_NAME-$i"
+               stop_lttng_tracing_ok "$SESSION_NAME-$i"
                destroy_lttng_session "$SESSION_NAME-$i"
                out=$(babeltrace "$TRACE_PATH/$i" | grep "$EVENT_NAMEi$i" | wc -l)
                if [ $out -ne $NR_ITER ]; then
index 02fd0d0324f00dfd3b86fd30f5c0c4d357878e6b..40da06839f976d37d320b532b788803b6aa3ca9e 100755 (executable)
@@ -78,7 +78,7 @@ touch ${file_sync_before_last}
 # We don't validate whether the applications have traced here, rather
 # just that they registered to sessiond (above).
 
-stop_lttng_tracing $SESSION_NAME
+stop_lttng_tracing_ok $SESSION_NAME
 destroy_lttng_session $SESSION_NAME
 
 #TODO: add trace validation.
index f85a0ccc0551f2e61a08929e1af15b5bea4060c1..7a39332afe3b377ff19292e41d07e080e79a7588 100755 (executable)
@@ -91,7 +91,7 @@ test_enable_simple_wildcard()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_match_all_demo_events
 
@@ -113,7 +113,7 @@ test_enable_wildcard_filter()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_match_all_demo_events
        return $?
@@ -134,7 +134,7 @@ test_enable_wildcard_filter_2()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_match_all_demo_events
        return $?
@@ -155,7 +155,7 @@ test_enable_wildcard_filter_3()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_match_all_demo_events
        return $?
@@ -176,7 +176,7 @@ test_enable_wildcard_filter_4()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_match_no_demo_events
        return $?
@@ -197,7 +197,7 @@ test_enable_wildcard_filter_5()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_match_all_demo_events
        return $?
@@ -218,7 +218,7 @@ test_enable_wildcard_filter_6()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_matches $DEMO_EVENT1 $NUM_DEMO1_EVENT $TRACE_PATH
        trace_matches $DEMO_EVENT1_2 0 $TRACE_PATH
@@ -242,7 +242,7 @@ test_enable_wildcard_filter_7()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_match_all_demo_events
        return $?
@@ -263,7 +263,7 @@ test_enable_wildcard_filter_8()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_match_no_demo_events
        return $?
@@ -284,7 +284,7 @@ test_enable_same_wildcard_filter()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_match_all_demo_events
        return $?
@@ -312,7 +312,7 @@ test_enable_same_wildcard_filter_2()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_match_all_demo_events
        return $?
@@ -333,7 +333,7 @@ test_enable_same_wildcard_filter_3()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_match_all_demo_events
        return $?
@@ -354,7 +354,7 @@ test_enable_same_wildcard_filter_4()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_match_no_demo_events
        return $?
@@ -375,7 +375,7 @@ test_enable_same_event_filter()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_matches $DEMO_EVENT1 $NUM_DEMO1_EVENT $TRACE_PATH
        trace_matches $DEMO_EVENT1_2 0 $TRACE_PATH
@@ -401,7 +401,7 @@ test_disable_same_wildcard_filter()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_match_no_demo_events
        return $?
@@ -425,7 +425,7 @@ test_enable_bad_wildcard()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_match_no_demo_events
        return $?
@@ -446,7 +446,7 @@ test_enable_simple_wildcard_2()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_match_all_demo_events
        return $?
@@ -467,7 +467,7 @@ test_enable_loglevel_overlap()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_match_all_demo_events
        return $?
@@ -488,7 +488,7 @@ test_enable_loglevel_only_overlap()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_match_all_demo_events
        return $?
@@ -509,7 +509,7 @@ test_enable_loglevel_overlap_2()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_match_all_demo_events
        return $?
@@ -530,7 +530,7 @@ test_enable_same_wildcard_loglevels()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_match_all_demo_events
        return $?
@@ -551,7 +551,7 @@ test_enable_same_event_loglevels()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        trace_matches $DEMO_EVENT1 $NUM_DEMO1_EVENT $TRACE_PATH
        trace_matches $DEMO_EVENT1_2 0 $TRACE_PATH
@@ -578,7 +578,7 @@ test_disable_simple_wildcard()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        # No events are expected.
        trace_match_no_demo_events
@@ -602,7 +602,7 @@ test_disable_wildcard_overlap()
 
        run_demo_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
 
        # Expect only "ust_tests_demo" events.
        trace_matches "$DEMO_EVENT1" $NUM_DEMO1_EVENT $TRACE_PATH
index 90f5c4dd9b2e30b93c44314aeb01c8514e2f4a94..25b93ec9ee3365ce3de32eac49691b4bffb2ae2f 100755 (executable)
@@ -161,7 +161,7 @@ test_after_app_pid() {
                kill -s SIGKILL ${p}
                wait ${p} 2>/dev/null
        done
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        wait_trace_apps
@@ -208,7 +208,7 @@ test_before_app_pid() {
                wait ${p} 2>/dev/null
        done
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        wait_trace_apps
@@ -251,7 +251,7 @@ test_after_app_uid() {
                kill -s SIGKILL ${p}
                wait ${p} 2>/dev/null
        done
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        wait_trace_apps
@@ -296,7 +296,7 @@ test_before_app_uid() {
                kill -s SIGKILL ${p}
                wait ${p} 2>/dev/null
        done
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        wait_trace_apps
index 91e0c00c2adca715ddf1b944977bea7e3dddc938..5917b9fff161a798829b2cb0156708751516d7da 100755 (executable)
@@ -101,7 +101,7 @@ function test_python_before_start ()
        # Wait for the applications started in background
        wait
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting all events.
@@ -122,7 +122,7 @@ function test_python_after_start ()
        # Run 5 times with a 1 second delay
        run_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting all events.
@@ -143,7 +143,7 @@ function test_python_loglevel ()
        # Run 5 times with a 1 second delay
        run_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting all events.
@@ -161,7 +161,7 @@ function test_python_loglevel ()
        # Run 5 times with a 1 second delay
        run_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting 0 events.
@@ -179,7 +179,7 @@ function test_python_loglevel ()
        # Run 5 times with a 1 second delay
        run_app
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting all events.
@@ -199,7 +199,7 @@ function test_python_loglevel_multiple ()
        # Run 5 times with a 1 second delay and fire two TP.
        run_app 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting all events times two.
@@ -216,7 +216,7 @@ function test_python_loglevel_multiple ()
        # Run 5 times with a 1 second delay and fire two TP.
        run_app 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting all events times two.
@@ -241,8 +241,8 @@ function test_python_multi_session_loglevel()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 1 1
 
-       stop_lttng_tracing $SESSION_NAME-1
-       stop_lttng_tracing $SESSION_NAME-2
+       stop_lttng_tracing_ok $SESSION_NAME-1
+       stop_lttng_tracing_ok $SESSION_NAME-2
        destroy_lttng_session $SESSION_NAME-1
        destroy_lttng_session $SESSION_NAME-2
 
@@ -280,8 +280,8 @@ function test_python_multi_session_disable()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME-1
-       stop_lttng_tracing $SESSION_NAME-2
+       stop_lttng_tracing_ok $SESSION_NAME-1
+       stop_lttng_tracing_ok $SESSION_NAME-2
        destroy_lttng_session $SESSION_NAME-1
        destroy_lttng_session $SESSION_NAME-2
 
@@ -315,8 +315,8 @@ function test_python_multi_session_disable_wildcard()
 
        run_app
 
-       stop_lttng_tracing $SESSION_NAME-1
-       stop_lttng_tracing $SESSION_NAME-2
+       stop_lttng_tracing_ok $SESSION_NAME-1
+       stop_lttng_tracing_ok $SESSION_NAME-2
        destroy_lttng_session $SESSION_NAME-1
        destroy_lttng_session $SESSION_NAME-2
 
@@ -348,7 +348,7 @@ function test_python_disable_all()
 
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting NO event of the first TP and second TP.
@@ -374,8 +374,8 @@ function test_python_multi_session()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME-1
-       stop_lttng_tracing $SESSION_NAME-2
+       stop_lttng_tracing_ok $SESSION_NAME-1
+       stop_lttng_tracing_ok $SESSION_NAME-2
        destroy_lttng_session $SESSION_NAME-1
        destroy_lttng_session $SESSION_NAME-2
 
@@ -406,7 +406,7 @@ function test_python_destroy_session()
        # Wait for the applications started in background
        wait
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting at least one event num 1
@@ -425,7 +425,7 @@ function test_python_destroy_session()
        # Wait for the applications started in background
        wait
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting only one event num 2
@@ -447,7 +447,7 @@ function test_python_filtering()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting one event of the second TP only.
@@ -465,7 +465,7 @@ function test_python_filtering()
        # Run 5 times with a 1 second delay, fire debug and second TP.
        run_app 1 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting NR_ITER event of the main INFO tp.
@@ -489,7 +489,7 @@ function test_python_disable()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting one event of the second TP only.
@@ -513,7 +513,7 @@ function test_python_disable_enable()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting NR_ITER event of the main INFO tp.
@@ -541,7 +541,7 @@ function test_python_filter_loglevel()
        # Run 5 times with a 1 second delay and fire second TP.
        run_app 0 1
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        # Validate test. Expecting no events.
index 59089fd5aa557fddb3886fccae698fef31978d9a..df86d2914d88991886e1b85f63a5b588b529925c 100755 (executable)
@@ -91,10 +91,10 @@ function test_event_basic()
        enable_ust_lttng_event_per_chan $SESSION_NAME2 $EVENT_NAME3 $CHAN_NAME2
 
        start_lttng_tracing_ok
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        start_lttng_tracing_ok
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        TODO="Validate trace output is coherent"
        ok 0 "Validate trace"
index 84e56d31df7b48896bff109bbfc0b7bc4b8bd007..8bdff2c7b4f167f76c9bdf7093e2cdefd9068452 100755 (executable)
@@ -70,7 +70,7 @@ function test_event_basic()
 
        $TESTAPP_BIN $NR_ITER $NR_USEC_WAIT >/dev/null 2>&1
 
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        destroy_lttng_session $SESSION_NAME
 
index 1577445e4ee2496e14fb27bb082baddaac7d53da..a3344227f516427951d072ec98384956eaa0c366 100755 (executable)
@@ -44,7 +44,7 @@ function test_event_tracef()
        $TESTAPP_BIN $NR_ITER $NR_USEC_WAIT
        ok $? "Traced application stopped."
 
-       stop_lttng_tracing $SESSION_NAME
+       stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
 
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
index f50e5df87e3f921592bbac5aba16a4687f6dc2c9..2cb562f0fd8e9385cec8e983604a4f00fb24dd7d 100755 (executable)
@@ -43,7 +43,7 @@ function test_event_wildcard()
        enable_ust_lttng_event_ok $SESSION_NAME "$EVENT_NAME2"
 
        start_lttng_tracing_ok
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
        TODO="Validate trace output is coherent"
        ok 0 "Validate trace"
index 5d41fa517c7b55cd41cddf5a58e0e0583fd62240..97ccab2d5907e542d8ba72942e7e35bd77d16bf3 100755 (executable)
@@ -89,7 +89,7 @@ test_stress()
                done
 
                for a in $(seq 1 $NR_SESSION); do
-                       stop_lttng_tracing $SESSION_NAME-$a
+                       stop_lttng_tracing_ok $SESSION_NAME-$a
                        check_sessiond
                        destroy_lttng_session $SESSION_NAME-$a
                        check_sessiond
index 817621ab295c61d7bc84f9288b3a1c7524430e4e..1eafbd84ca521fbd70b3f89ddd5c3de05a03673f 100755 (executable)
@@ -126,7 +126,7 @@ test_stress()
                done
 
                for a in $(seq 1 $NR_SESSION); do
-                       stop_lttng_tracing $SESSION_NAME-$a
+                       stop_lttng_tracing_ok $SESSION_NAME-$a
                        check_sessiond
                        check_relayd
                        destroy_lttng_session $SESSION_NAME-$a
index 1b1cf56bdca9684d8adc77eff93151b23c07c4eb..60d7071f8726888a5eb3f69724ea33daca545ab2 100755 (executable)
@@ -128,7 +128,7 @@ test_stress()
                done
 
                for a in $(seq 1 $NR_SESSION); do
-                       stop_lttng_tracing $SESSION_NAME-$a
+                       stop_lttng_tracing_ok $SESSION_NAME-$a
                        check_sessiond
                        check_relayd
                        destroy_lttng_session $SESSION_NAME-$a
index f9df77bb0ec69050a5608c447e19ef03b44b041f..067a4f53224b71a93c536331466564ce78950484 100644 (file)
@@ -686,12 +686,12 @@ function start_lttng_tracing_fail ()
 
 function stop_lttng_tracing ()
 {
-       local sess_name=$1
-       local expected_to_fail=$2
+       local expected_to_fail=$1
+       local sess_name=$2
 
        $TESTDIR/../src/bin/lttng/$LTTNG_BIN stop $sess_name >$OUTPUT_DEST
        ret=$?
-       if [[ $expected_to_fail ]]; then
+       if [[ $expected_to_fail -eq "1" ]]; then
                test "$ret" -ne "0"
                ok $? "Expected fail on stop tracing for session: $sess_name"
        else
@@ -699,6 +699,16 @@ function stop_lttng_tracing ()
        fi
 }
 
+function stop_lttng_tracing_ok ()
+{
+       stop_lttng_tracing 0 "$@"
+}
+
+function stop_lttng_tracing_fail ()
+{
+       stop_lttng_tracing 1 "$@"
+}
+
 function destroy_lttng_session ()
 {
        local sess_name=$1
@@ -706,7 +716,7 @@ function destroy_lttng_session ()
 
        $TESTDIR/../src/bin/lttng/$LTTNG_BIN destroy $sess_name >$OUTPUT_DEST
        ret=$?
-       if [[ $expected_to_fail ]]; then
+       if [[ $expected_to_fail -eq "1" ]]; then
                test "$ret" -ne "0"
                ok $? "Expected fail on session deletion $sess_name"
        else
This page took 0.094452 seconds and 5 git commands to generate.