]> git.sur5r.net Git - bacula/bacula/commitdiff
regress: Use bbatch -r in speed-test
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 9 Feb 2010 12:41:20 +0000 (13:41 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:49:27 +0000 (16:49 +0200)
regress/tests/speed-test

index 1b0ad4406a85a25b5f78ef6a0e5e3f45412f40d6..987fc3b4231f0f1efcca30f38009296ab0055786 100755 (executable)
@@ -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