From ab3387e89ae543e6b1af1a1d1f164a6f4ea5dc88 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 2 Apr 2008 14:51:31 +0000 Subject: [PATCH] ebl Add more incremental tests git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6728 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/tests/accurate-test | 85 ++++++++++++++++++++++++++++++++++++- 1 file changed, 84 insertions(+), 1 deletion(-) 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 ################################################################ -- 2.39.5