Tests: Add helper functions for printing status and banner
[lttng-tools.git] / tests / ust / high-throughput / run
index bc30c8399935a4820416c308eb76ab920c5453c0..de3111ddde8b95540600cb796e43fd2ef8a18fa2 100755 (executable)
@@ -28,7 +28,7 @@ echo -e "\n-------------------------------------------"
 echo -e "UST tracer - Testing high events throughput"
 echo -e "-------------------------------------------"
 
-if [ ! -e "$CURDIR/$BIN_NAME" ]; then
+if [ ! -x "$CURDIR/$BIN_NAME" ]; then
        echo -e "No UST nevents binary detected. Passing."
        exit 0
 fi
@@ -48,8 +48,12 @@ for i in `seq 1 $NR_ITER`; do
        ./$CURDIR/$BIN_NAME & >/dev/null 2>&1
 done
 
-echo "Waiting for all tracing to settle"
-sleep 5
+echo "Waiting for applications to end"
+while [ -n "$(pidof $BIN_NAME)" ]; do
+       echo -n "."
+       sleep 0.5
+done
+echo ""
 
 stop_tracing $SESSION_NAME
 destroy_lttng_session $SESSION_NAME
This page took 0.0244 seconds and 4 git commands to generate.