kill $PID_SESSIOND
-echo -e "\nResults will be available shortly in $RESULTS_PATH"
-echo ""
-
-tail -F $RESULTS_PATH --pid $PID_SESSIOND 2>/dev/null
+# Trick to wait for a PID which is not a child
+tail --pid=$PID_SESSIOND --quiet -F $RESULTS_PATH > /dev/null 2>&1
exit 0
PID_SESSIOND=`pidof lt-$SESSIOND_BIN`
-echo -e "\nResults will be available shortly in $RESULTS_PATH"
-echo ""
-
kill $PID_SESSIOND
-tail -F $RESULTS_PATH --pid $PID_SESSIOND 2>/dev/null
+
+# Trick to wait for a PID which is not a child
+tail --pid=$PID_SESSIOND --quiet -F $RESULTS_PATH > /dev/null 2>&1
exit 0
RESULTS_PATH="/tmp/lttng-bench-results.txt"
BASEDIR=`dirname $0`
-echo "Session daemon boot process benchmark"
+echo "Session daemon boot"
`BENCH_UST_REGISTER=1 $BASEDIR/../ltt-sessiond/$SESSIOND_BIN --daemonize --quiet`
if [ $? -ne 0 ]; then
# Start libust instrumented application to register.
UST_AUTOPROBE=1 UST_TRACE=1 ./$BASEDIR/hello
-echo -e "\nResults will be available shortly in $RESULTS_PATH"
-echo ""
-
kill $PID_SESSIOND
-tail -F $RESULTS_PATH --pid $PID_SESSIOND 2>/dev/null
+
+# Trick to wait for a PID which is not a child
+tail --pid=$PID_SESSIOND --quiet -F $RESULTS_PATH > /dev/null 2>&1
exit 0
#### ADD TESTS HERE ####
-test_suite=( "run-boot-time.sh" "run-sessions.sh" "run-ust-register.sh" )
+test_suite=( "run-boot-time.sh" "run-sessions.sh" "run-ust-register.sh" \
+ "run-ust-notify.sh" )
#### END TESTS HERE ####