From: Kern Sibbald Date: Mon, 4 Feb 2019 11:20:05 +0000 (+0100) Subject: Enhance verify-voltocat-test to detect comparing deleted files X-Git-Tag: Release-9.4.2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f08939c0c110e13efdd54b63f3c2c027d84aa5c;p=thirdparty%2Fbacula.git Enhance verify-voltocat-test to detect comparing deleted files --- diff --git a/regress/tests/verify-voltocat-test b/regress/tests/verify-voltocat-test index fa140833c..7d1aa58e0 100755 --- a/regress/tests/verify-voltocat-test +++ b/regress/tests/verify-voltocat-test @@ -15,6 +15,7 @@ JobName=VerifyVol cwd=`pwd` scripts/cleanup scripts/copy-test-confs +touch ${cwd}/build/src/dird/verify-dummy # create dummy file echo "${cwd}/build" >${cwd}/tmp/file-list change_jobname NightlySave $JobName @@ -50,11 +51,15 @@ wait messages @$out ${cwd}/tmp/log3.out @# -@# Now a backup with nothing changed -run job=$JobName level=Incremental yes +@# Delete file and make some changes to be backed up +@exec "rm $cwd/build/src/dird/verify-dummy" +@exec "sh -c 'touch ${cwd}/build/src/dird/*.o'" +@# now run and Incremental job +@#setdebug level=50 dir +run job=$JobName Accurate=yes level=Incremental yes wait messages -run job=VerifyVolume level=VolumeToCatalog +run job=VerifyVolume Accurate=yes level=VolumeToCatalog yes wait messages