From a58404e62ff3ad0f4bfdf999c7d4c9c41e9ce6a3 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 9 Feb 2010 13:41:20 +0100 Subject: [PATCH] regress: Use bbatch -r in speed-test --- regress/tests/speed-test | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- 2.39.5