]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/verify-voltocat-test
regress: add function to create many dirs
[bacula/bacula] / regress / tests / verify-voltocat-test
index 54477bb48d31acf2d1ff8c5a6bd424f394d94204..99f758e5b12a3cf2d1de015616e7dce521a16281 100755 (executable)
@@ -11,9 +11,6 @@ cwd=`pwd`
 scripts/cleanup
 scripts/copy-test-confs
 echo "${cwd}/build" >${cwd}/tmp/file-list
-echo "${cwd}/build/po" >>${cwd}/tmp/file-list
-cp $conf/bacula-dir.conf $tmp/1
-sed 's/"VerifyVol"/"VerifyVol"; Accurate = yes/' $tmp/1 > $conf/bacula-dir.conf
 
 change_jobname NightlySave $JobName
 start_test
@@ -36,40 +33,22 @@ run job=VerifyVolume level=VolumeToCatalog
 yes
 wait
 messages
-@$out
-quit
-END_OF_DATA
-
-run_bacula
-
-# we make a test in accurate mode
-mv $cwd/build/po/fr.po $cwd/build/po/fr.po.old
-
-cat <<END_OF_DATA >tmp/bconcmds
-@$out /dev/null
-messages
-@$out tmp/log11.out
-run level=incremental job=$JobName yes
+@$out ${cwd}/tmp/log3.out
+@#
+@# Now a backup with nothing changed
+run job=$JobName level=Incremental yes
 wait
 messages
-@# 
-@# now do a verify to catalog
-@#
-@$out ${cwd}/tmp/log22.out
-@# The fr.po file shouldn't be appear as new file
-setdebug level=12 dir
 run job=VerifyVolume level=VolumeToCatalog
 yes
 wait
 messages
-@$out
 quit
 END_OF_DATA
 
-run_bconsole
-mv $cwd/build/po/fr.po.old $cwd/build/po/fr.po
+run_bacula
 
-sleep 1
+sleep 2
 check_for_zombie_jobs storage=File 
 stop_bacula
 
@@ -77,11 +56,6 @@ grep "^  Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
 bstat=$?
 grep "^  Termination: *Verify OK" tmp/log2.out 2>&1 >/dev/null
 rstat=$?
-
-grep "^  Termination: *Backup OK" tmp/log11.out 2>&1 >/dev/null
-bstat=$(($bstat + $?))
-grep "^  Termination: *Verify OK" tmp/log22.out 2>&1 >/dev/null
-rstat=$(($bstat + $?))
-
-dstat=0
+grep "^  Termination: *Verify OK" tmp/log3.out 2>&1 >/dev/null
+dstat=$?
 end_test