Add lttng-modules detection for tests
[lttng-tools.git] / tests / lttng / runall.sh
index c9ea8b8960f78ee2aed8cd13e7fc783cf24b606b..0817f681371573da83e213acbb68cab4b76e3a2e 100755 (executable)
@@ -1,16 +1,13 @@
 #!/bin/bash
 
-SESSIOND_BIN="ltt-sessiond"
-
-tmpdir=`mktemp -d`
-tests=( kernel_all_events_basic )
+tests=( lttng/run-kernel-tests.sh )
 exit_code=0
 
 function start_tests ()
 {
     for bin in ${tests[@]};
     do
-        ./$bin $tmpdir
+        ./$bin
         # Test must return 0 to pass.
         if [ $? -ne 0 ]; then
             exit_code=1
@@ -19,37 +16,6 @@ function start_tests ()
     done
 }
 
-echo -e "\n----------------------------------"
-echo -e "Testing lttng client (liblttngctl)"
-echo -e "----------------------------------"
-
-if [ -z $(pidof $SESSIOND_BIN) ]; then
-       echo -n "Starting session daemon... "
-       ../ltt-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
-
-rm -rf $tmpdir
-
 exit $exit_code
This page took 0.023435 seconds and 4 git commands to generate.