From 0bf4e1402bb82940004908d5d41a12b7fd308487 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 5 Dec 2011 14:16:38 -0500 Subject: [PATCH] Fix tests to output waiting time Signed-off-by: David Goulet --- benchmark/run-ust-notify.sh | 10 ++++++++++ benchmark/run-ust-register.sh | 11 +++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/benchmark/run-ust-notify.sh b/benchmark/run-ust-notify.sh index f326241fb..723ed2925 100755 --- a/benchmark/run-ust-notify.sh +++ b/benchmark/run-ust-notify.sh @@ -34,8 +34,18 @@ else echo "PID session daemon: $PID_SESSIOND" fi +# Session daemon need to boot up and run benchmark +echo -n "Waiting." +sleep 1 +echo -n "." +sleep 1 +echo "." +sleep 1 + kill $PID_SESSIOND wait $PID_SESSIOND +echo "Benchmarks done in $RESULTS_PATH" + exit 0 diff --git a/benchmark/run-ust-register.sh b/benchmark/run-ust-register.sh index 072fbde94..96d70a268 100755 --- a/benchmark/run-ust-register.sh +++ b/benchmark/run-ust-register.sh @@ -33,8 +33,13 @@ else echo "PID session daemon: $PID_SESSIOND" fi -# Wait for sessiond to settle -sleep 2 +# Session daemon need to boot up and run benchmark +echo -n "Waiting." +sleep 1 +echo -n "." +sleep 1 +echo "." +sleep 1 # Start libust instrumented application to register. UST_AUTOPROBE=1 UST_TRACE=1 ./$BASEDIR/hello @@ -43,4 +48,6 @@ kill $PID_SESSIOND wait $PID_SESSIOND +echo "Benchmarks done in $RESULTS_PATH" + exit 0 -- 2.34.1