Add UST test for n events using validation
[lttng-tools.git] / tests / lttng / run-kernel-tests.sh
index 04814fc9c55b4770c9754818478fa8cb38f3a1c9..d5a41382b010cd5dbc7b37142dc529af1bd1f9a5 100755 (executable)
@@ -1,6 +1,9 @@
 #!/bin/bash
 
 SESSIOND_BIN="lttng-sessiond"
+TESTDIR=$(dirname $0)/..
+
+source $TESTDIR/utils.sh
 
 tmpdir=`mktemp -d`
 tests=( kernel_event_basic kernel_all_events_basic )
@@ -16,9 +19,10 @@ function start_tests ()
             exit_code=1
             break
         fi
-               # Cleaning up
-               rm -rf $tmpdir
     done
+
+       # Cleaning up
+       rm -rf $tmpdir
 }
 
 function check_lttng_modules ()
@@ -40,31 +44,9 @@ echo -e "--------------------------------------------------"
 
 check_lttng_modules
 
-if [ -z $(pidof $SESSIOND_BIN) ]; then
-       echo -n "Starting session daemon... "
-       ../lttng-sessiond/$SESSIOND_BIN --daemonize --quiet
-       if [ $? -eq 1 ]; then
-               echo -e '\e[1;31mFAILED\e[0m'
-               rm -rf $tmpdir
-               exit 1
-       else
-               echo -e "\e[1;32mOK\e[0m"
-       fi
-fi
-
-PID_SESSIOND=`pidof lt-$SESSIOND_BIN`
-
 # Simply wait for the session daemon bootstrap
 sleep 1
 
 start_tests
 
-echo -e -n "\nKilling session daemon... "
-kill $PID_SESSIOND >/dev/null 2>&1
-if [ $? -eq 1 ]; then
-    echo -e '\e[1;31mFAILED\e[0m'
-else
-    echo -e "\e[1;32mOK\e[0m"
-fi
-
 exit $exit_code
This page took 0.024485 seconds and 5 git commands to generate.