measure time spent per test

This commit is contained in:
George Danchev 2011-06-26 14:23:13 +00:00
parent f0d0ac6f2d
commit d0015e78b9

View File

@ -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
}