mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-23 14:09:39 +08:00
ITS#6207 Print out test timings
This commit is contained in:
parent
720057f4f3
commit
6d9e9e6cb0
@ -254,8 +254,10 @@ while [ $COUNTER -le $LOOP ]; do
|
||||
if [ $LOOP -gt 1 ]; then
|
||||
echo "Running $COUNTER of $LOOP iterations"
|
||||
fi
|
||||
START=`date +%s`
|
||||
$SCRIPT $*
|
||||
RC=$?
|
||||
END=`date +%s`
|
||||
|
||||
if test $CLEAN = yes ; then
|
||||
echo "Cleaning up test run directory from this run."
|
||||
|
@ -60,12 +60,15 @@ EOF
|
||||
BCMD=`basename $CMD`
|
||||
if [ -x "$CMD" ]; then
|
||||
echo ">>>>> Starting ${TB}$BCMD${TN} for $BACKEND..."
|
||||
START=`date +%s`
|
||||
$CMD
|
||||
RC=$?
|
||||
END=`date +%s`
|
||||
|
||||
if test $RC -eq 0 ; then
|
||||
echo ">>>>> $BCMD completed ${TB}OK${TN} for $BACKEND."
|
||||
echo ">>>>> $BCMD completed ${TB}OK${TN} for $BACKEND after $(( $END - $START )) seconds."
|
||||
else
|
||||
echo ">>>>> $BCMD ${TB}failed${TN} for $BACKEND"
|
||||
echo ">>>>> $BCMD ${TB}failed${TN} for $BACKEND after $(( $END - $START )) seconds"
|
||||
FAILCOUNT=`expr $FAILCOUNT + 1`
|
||||
|
||||
if [ -n "$NOEXIT" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user