3 SESSIOND_BIN
="lttng-sessiond"
4 TESTDIR
=$
(dirname $0)/..
6 source $TESTDIR/utils.sh
9 tests
=( kernel_event_basic kernel_all_events_basic
)
12 function start_tests
()
14 for bin
in ${tests[@]};
19 # Test must return 0 to pass.
32 function check_lttng_modules
()
34 local out
=`modprobe -l | grep lttng`
35 if [ -z "$out" ]; then
36 echo "LTTng modules not detected. Aborting kernel tests!"
38 # Exit status 0 so the tests can continue
43 echo -e "\n---------------------"
44 echo -e "Testing Kernel tracer"
45 echo -e "---------------------"
47 # Detect lttng-modules installed