From: Kern Sibbald Date: Thu, 11 Sep 2008 08:48:07 +0000 (+0000) Subject: UPdate verify-vol-test X-Git-Tag: Release-7.0.0~4144 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0ceb42617ec2b7bef0447037cb0a8c67f701a217;p=bacula%2Fbacula UPdate verify-vol-test git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7584 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/functions b/regress/scripts/functions index b468081304..de08eb340f 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -213,7 +213,7 @@ check_restore_diff() if test "$debug" -eq 1 ; then diff -ur build tmp/bacula-restores${cwd}/build else - diff -r build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null + diff -ur build tmp/bacula-restores${cwd}/build 2>&1 >/dev/null fi dstat=$? } @@ -223,7 +223,7 @@ check_restore_tmp_build_diff() if test "$debug" -eq 1 ; then diff -ur tmp/build tmp/bacula-restores${cwd}/tmp/build else - diff -r tmp/build tmp/bacula-restores${cwd}/tmp/build 2>&1 >/dev/null + diff -ur tmp/build tmp/bacula-restores${cwd}/tmp/build 2>&1 >/dev/null fi dstat=$? } diff --git a/regress/scripts/new-test-bacula-dir.conf.in b/regress/scripts/new-test-bacula-dir.conf.in index 736fe99fb8..7e79d25faa 100644 --- a/regress/scripts/new-test-bacula-dir.conf.in +++ b/regress/scripts/new-test-bacula-dir.conf.in @@ -186,7 +186,8 @@ Job { # List of files to be backed up FileSet { Name = "Full Set" - Include { Options { signature=MD5 } + Include { + Options { signature=MD5; sparse=yes } File = <@tmpdir@/file-list } } diff --git a/regress/tests/verify-vol-test b/regress/tests/verify-vol-test index 9977d8ebf8..d56c242804 100755 --- a/regress/tests/verify-vol-test +++ b/regress/tests/verify-vol-test @@ -11,6 +11,8 @@ cwd=`pwd` scripts/cleanup scripts/copy-test-confs echo "${cwd}/build" >${cwd}/tmp/file-list +rm -f ${cwd}/build/sparsefile +dd if=${cwd}/build/configure of=${cwd}/build/sparsefile bs=1 count=1 seek=10M change_jobname NightlySave $JobName start_test @@ -42,6 +44,14 @@ messages quit END_OF_DATA +# +# ***FIXME*** +# Note, add sparse file backup and check that checksum is +# correct. Bug #1140 +# create sparse file +# dd if=/dev/zero of=sparsefile bs=1 count=0 seek=10M +# + run_bacula sleep 2