From: Eric Bollengier Date: Wed, 2 Apr 2008 14:51:31 +0000 (+0000) Subject: ebl Add more incremental tests X-Git-Tag: Release-3.0.0~1619 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ab3387e89ae543e6b1af1a1d1f164a6f4ea5dc88;p=bacula%2Fbacula ebl Add more incremental tests git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6728 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/tests/accurate-test b/regress/tests/accurate-test index 63087d5214..0d84e9ad45 100755 --- a/regress/tests/accurate-test +++ b/regress/tests/accurate-test @@ -28,6 +28,12 @@ mkdir ${cwd}/build/accurate echo "test test" > ${cwd}/build/accurate/xxx echo "test test" > ${cwd}/build/accurate/yyy echo "test test" > ${cwd}/build/accurate/zzz +echo "test test" > ${cwd}/build/accurate/zzzzzz +echo "test test" > ${cwd}/build/accurate/xxxxxx +echo "test test" > ${cwd}/build/accurate/yyyyyy +echo "test test" > ${cwd}/build/accurate/xxxxxxxxx +echo "test test" > ${cwd}/build/accurate/yyyyyyyyy +echo "test test" > ${cwd}/build/accurate/zzzzzzzzz echo ${cwd}/build > ${cwd}/tmp/file-list start_test @@ -83,6 +89,58 @@ check_restore_diff rm -rf ${cwd}/tmp/bacula-restores +################################################################ +# Now do a third backup after making few changes +################################################################ +rm ${cwd}/build/accurate/yyyyyy # delete a file + +run_bconsole +check_for_zombie_jobs storage=File + +check_two_logs +check_restore_diff + +rm -rf ${cwd}/tmp/bacula-restores + +################################################################ +# Now do a 4 backup after making few changes +################################################################ +rm ${cwd}/build/accurate/zzzzzz # delete a file + +run_bconsole +check_for_zombie_jobs storage=File + +check_two_logs +check_restore_diff + +rm -rf ${cwd}/tmp/bacula-restores + +################################################################ +# Now do a 5 backup after making few changes +################################################################ +rm ${cwd}/build/accurate/zzzzzzzzz + +run_bconsole +check_for_zombie_jobs storage=File + +check_two_logs +check_restore_diff + +rm -rf ${cwd}/tmp/bacula-restores + +################################################################ +# Now do a backup after making few changes +################################################################ +touch ${cwd}/build/accurate/aaaaaa + +run_bconsole +check_for_zombie_jobs storage=File + +check_two_logs +check_restore_diff + +rm -rf ${cwd}/tmp/bacula-restores + ################################################################ # Check with bls ################################################################ @@ -94,7 +152,7 @@ if [ $? != 0 ] ; then fi ################################################################ -# Now do a third backup after making few changes +# Now do a backup after making few changes ################################################################ # some files will have disappear, others have their old mtime/ctime @@ -169,6 +227,31 @@ check_restore_diff rm -rf ${cwd}/tmp/bacula-restores +################################################################ +# Now do a backup after making few changes +################################################################ +rm ${cwd}/build/accurate/aaaaaa +touch ${cwd}/build/accurate/bbbbbb + +run_bconsole +check_for_zombie_jobs storage=File + +check_two_logs +check_restore_diff + +################################################################ +# Now do a backup after making few changes +################################################################ +mv ${cwd}/tmp/bacula-restores ${cwd}/build/accurate/ + +run_bconsole +check_for_zombie_jobs storage=File + +check_two_logs +check_restore_diff + +rm -rf ${cwd}/tmp/bacula-restores ${cwd}/build/accurate/bacula-restores + ################################################################ # Check with bscan ################################################################