Tests: add regression test for Java JUL support
[lttng-tools.git] / tests / utils / utils.sh
index 9e2c12d0be68de3cd2c8f6bd5d43a532bf6c3b78..968a6e61305ac92d1d633856027130f712584a5a 100644 (file)
@@ -257,6 +257,23 @@ function enable_ust_lttng_event ()
        ok $? "Enable event $event_name for session $sess_name"
 }
 
+function enable_jul_lttng_event()
+{
+       sess_name=$1
+       event_name="$2"
+       channel_name=$3
+
+       if [ -z $channel_name ]; then
+               # default channel if none specified
+               chan=""
+       else
+               chan="-c $channel_name"
+       fi
+
+       $TESTDIR/../src/bin/lttng/$LTTNG_BIN enable-event "$event_name" $chan -s $sess_name -j >/dev/null 2>&1
+       ok $? "Enable JUL event $event_name for session $sess_name"
+}
+
 function enable_ust_lttng_event_filter()
 {
        sess_name="$1"
This page took 0.034032 seconds and 5 git commands to generate.