]> git.sur5r.net Git - bacula/bacula/commitdiff
UPdate verify-vol-test
authorKern Sibbald <kern@sibbald.com>
Thu, 11 Sep 2008 08:48:07 +0000 (08:48 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 11 Sep 2008 08:48:07 +0000 (08:48 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7584 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/functions
regress/scripts/new-test-bacula-dir.conf.in
regress/tests/verify-vol-test

index b468081304bb6a4b43076b1824da2d7963c007e0..de08eb340f2fba603359643332ca5dfa07ca5e7e 100644 (file)
@@ -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=$?
 }
index 736fe99fb824dffda0f7174d7f42c0d7c6ba3c40..7e79d25faab40f0f112c371957f10e16d553c7fe 100644 (file)
@@ -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
   }
 }
index 9977d8ebf82434d8347d9bb0f86e73f391841fce..d56c2428043d3c8c6ef9242e79f8a215aa1656a7 100755 (executable)
@@ -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