From 407edadcb62571140636820afd6d36337ffec2cd Mon Sep 17 00:00:00 2001 From: George Danchev Date: Sun, 26 Jun 2011 14:23:13 +0000 Subject: [PATCH] measure time spent per test --- libisoburn/trunk/releng/run_all | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libisoburn/trunk/releng/run_all b/libisoburn/trunk/releng/run_all index 08583776..061aa0ea 100755 --- a/libisoburn/trunk/releng/run_all +++ b/libisoburn/trunk/releng/run_all @@ -16,13 +16,16 @@ for s in `ls | grep -v ${SELF}`; do set +e printf "\n$0: running ${s}..." # -rc -clean are shared options amongst the all releng scripts + T1=`date '+%s'` ./${s} -rc -clean 1>>${CLOG1} 2>>${CLOG2} RET=$? - printf "Done (return code: $RET)" + T2=`date '+%s'` + let TS="${T2}-${T1}" + printf "Done (return code: $RET; time spent: ${TS})" set -e fi done -printf "\n" +printf "\n$0: inspect ${CLOG1} and ${CLOG2}\n\n" exit 0 }