3 SESSIOND_BIN
="lttng-sessiond"
6 tests
=( ust_global_event_basic ust_global_all_events_basic
)
9 function start_tests
()
11 for bin
in ${tests[@]};
14 # Test must return 0 to pass.
24 echo -e "\n-------------------------------------------"
25 echo -e "UST tracer - GLOBAL DOMAIN (LTTNG_DOMAIN_UST)"
26 echo -e "---------------------------------------------"
28 if [ -z $
(pidof
$SESSIOND_BIN) ]; then
29 echo -n "Starting session daemon... "
30 ..
/lttng-sessiond
/$SESSIOND_BIN --daemonize --quiet
32 echo -e '\e[1;31mFAILED\e[0m'
36 echo -e "\e[1;32mOK\e[0m"
40 PID_SESSIOND
=`pidof lt-$SESSIOND_BIN`
42 # Simply wait for the session daemon bootstrap
47 echo -e -n "\nKilling session daemon... "
48 kill $PID_SESSIOND >/dev
/null
2>&1
50 echo -e '\e[1;31mFAILED\e[0m'
52 echo -e "\e[1;32mOK\e[0m"