measure time spent per test
This commit is contained in:
parent
b313d77b83
commit
407edadcb6
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user