From: Eric Bollengier Date: Tue, 9 Feb 2010 12:41:20 +0000 (+0100) Subject: regress: Use bbatch -r in speed-test X-Git-Tag: Release-5.2.1~1787 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=53ef53135705df8435542527bad83b62c126cb47;p=bacula%2Fbacula regress: Use bbatch -r in speed-test --- diff --git a/regress/tests/speed-test b/regress/tests/speed-test index 1b0ad4406a..987fc3b423 100755 --- a/regress/tests/speed-test +++ b/regress/tests/speed-test @@ -121,7 +121,14 @@ check_two_logs find ${tmp}/bacula-restores | wc -l | tee $tmp/bacula-restore-list rm -rf ${tmp}/bacula-restores -cp working/log files/log${WHICHDB}-$(date +%F_%H-%M).log +# check the time needed to compute restore list +if [ x$db_password != x ]; then + p="-P $db_password" +fi +time $src/src/tools/bbatch -r 1 -n $db_name -u $db_user $p -w $tmp >> $working/log + +cp $working/log files/log${WHICHDB}-$(date +%F_%H-%M).log cp $tmp/log2.out files/log2${WHICHDB}-$(date +%F_%H-%M).log + end_test