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-7.0.0~2252 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a58404e62ff3ad0f4bfdf999c7d4c9c41e9ce6a3;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