]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#6207 Log timings for lloadd tests
authorOndřej Kuzník <okuznik@symas.com>
Wed, 21 Apr 2021 12:27:31 +0000 (13:27 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 10 May 2021 18:49:13 +0000 (18:49 +0000)
tests/scripts/lloadd-all

index 26f11bdc60ed2a5d5f95494fe76145bbefa34bc0..00d282b2596c550ac72bdf5205ac9b1045687a6e 100755 (executable)
@@ -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