3 SESSIOND_BIN
="ltt-sessiond"
6 tests
=( kernel_event_basic kernel_all_events_basic
)
9 function start_tests
()
11 for bin
in ${tests[@]};
14 # Test must return 0 to pass.
24 function check_lttng_modules
()
26 local out
=`modprobe -l | grep lttng`
27 if [ -z "$out" ]; then
28 echo "LTTng modules not detected. Aborting kernel tests!"
30 # Exit status 0 so the tests can continue
35 echo -e "\n--------------------------------------------------"
36 echo -e "Kernel tracer - Testing lttng client (liblttngctl)"
37 echo -e "--------------------------------------------------"
39 # Detect lttng-modules installed
43 if [ -z $
(pidof
$SESSIOND_BIN) ]; then
44 echo -n "Starting session daemon... "
45 ..
/ltt-sessiond
/$SESSIOND_BIN --daemonize --quiet
47 echo -e '\e[1;31mFAILED\e[0m'
51 echo -e "\e[1;32mOK\e[0m"
55 PID_SESSIOND
=`pidof lt-$SESSIOND_BIN`
57 # Simply wait for the session daemon bootstrap
62 echo -e -n "\nKilling session daemon... "
63 kill $PID_SESSIOND >/dev
/null
2>&1
65 echo -e '\e[1;31mFAILED\e[0m'
67 echo -e "\e[1;32mOK\e[0m"