]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/speed-test
regress: test restore object in plugin-test
[bacula/bacula] / regress / tests / speed-test
index 1b0ad4406a85a25b5f78ef6a0e5e3f45412f40d6..aad96bc28fa7efe12be09be9c5495aed2e3f905a 100755 (executable)
@@ -17,6 +17,9 @@ JobName=speed
 
 ${rscripts}/cleanup
 ${rscripts}/copy-test-confs
+sed 's/Max Run Time/#Max Run Time/' $conf/bacula-dir.conf > $tmp/1
+sed 's/SpoolData/#SpoolData/' $tmp/1 > $conf/bacula-dir.conf
+
 echo "${cwd}/files" >${tmp}/file-list
 rm -rf ${tmp}/bacula-restores
 mkdir -p $cwd/files
@@ -121,7 +124,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 2>&1
+
+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