measure time spent per test

master
George Danchev 11 years ago
parent f0d0ac6f2d
commit d0015e78b9
  1. 7
      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
}

Loading…
Cancel
Save