From: Ondřej Kuzník Date: Wed, 21 Apr 2021 12:27:31 +0000 (+0100) Subject: ITS#6207 Log timings for lloadd tests X-Git-Tag: OPENLDAP_REL_ENG_2_6_0~233 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9b5163670789a41ca9494f0d28b0902d6bfdd07;p=thirdparty%2Fopenldap.git ITS#6207 Log timings for lloadd tests --- diff --git a/tests/scripts/lloadd-all b/tests/scripts/lloadd-all index 26f11bdc60..00d282b259 100755 --- a/tests/scripts/lloadd-all +++ b/tests/scripts/lloadd-all @@ -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