}
}
+FileSet {
+ Name = "FS2"
+ Include { Options { verify=s2; signature=SHA256 }
+ File = <@tmpdir@/file-list
+ }
+ Include { Options { signature=SHA256; sparse=yes }
+ File = <@tmpdir@/file-list
+ }
+ Include { Options { signature=SHA256; compression=GZIP }
+ File = <@tmpdir@/file-list
+ }
+ Include { Options { signature=SHA256; compression=LZO }
+ File = <@tmpdir@/file-list
+ }
+ Include { Options { signature=SHA256; compression=LZO; sparse=yes }
+ File = <@tmpdir@/file-list
+ }
+ Include { Options { signature=SHA256; compression=GZIP; sparse=yes }
+ File = <@tmpdir@/file-list
+ }
+}
+
+FileSet {
+ Name = "FS3"
+ Include { Options { verify=s3; signature=SHA512 }
+ File = <@tmpdir@/file-list
+ }
+ Include { Options { signature=SHA512; sparse=yes }
+ File = <@tmpdir@/file-list
+ }
+ Include { Options { signature=SHA512; compression=GZIP }
+ File = <@tmpdir@/file-list
+ }
+ Include { Options { signature=SHA512; compression=LZO }
+ File = <@tmpdir@/file-list
+ }
+ Include { Options { signature=SHA512; compression=LZO; sparse=yes }
+ File = <@tmpdir@/file-list
+ }
+ Include { Options { signature=SHA512; compression=GZIP; sparse=yes }
+ File = <@tmpdir@/file-list
+ }
+}
+
FileSet {
Name = "SimpleSet"
Include {
JobName=VerifyVol
. scripts/functions
-require_linux
-
cwd=`pwd`
scripts/cleanup
scripts/copy-test-confs
run job=$JobName level=full fileset=FS5 yes
run job=$JobName level=full fileset=FSno5 yes
run job=$JobName level=full fileset=FS5nocheck yes
+run job=$JobName level=full fileset=FS2 yes
+run job=$JobName level=full fileset=FS3 yes
wait
messages
@#
run job=VerifyData jobid=2 yes
run job=VerifyData jobid=3 yes
run job=VerifyData jobid=4 yes
+run job=VerifyData jobid=5 yes
+run job=VerifyData jobid=6 yes
run job=VerifyData jobid=1 accurate=yes yes
run job=VerifyData jobid=2 accurate=yes yes
run job=VerifyData jobid=3 accurate=yes yes
run job=VerifyData jobid=4 accurate=yes yes
+run job=VerifyData jobid=5 accurate=yes yes
+run job=VerifyData jobid=6 accurate=yes yes
wait
messages
quit
$bperl -e 'add_attribute("$conf/bacula-sd.conf", "BlockChecksum", "no", "Device")'
-#
-# NOTE!!! sed is an ASCII file editor not a binary file editor
-# Thus in general, the following sed will not work and is
-# not portable. It is known to fail on FreeBSD, but *seems* to work
-# on Linux.
-#
-# Introduce a volume error by modifying the some Volume data
nbok=2
-if [ x$FORCE_DEDUP = xyes ]; then
- nbok=4
+if [ x$FORCE_DEDUP = xyes -o x$FORCE_CLOUD = xyes ]; then
+ nbok=6
elif [ x$FORCE_ALIGNED = xyes ]; then
sed -i 's/DUALCASE/PUALCASE/g' $tmp/TestVolume001.add
-elif [ x$FORCE_CLOUD = xyes ]; then
- sed -i 's/DUALCASE/PUALCASE/g' $tmp/TestVolume001/part.2
else
sed -i 's/DUALCASE/PUALCASE/g' $tmp/TestVolume001
fi
cat <<END_OF_DATA >tmp/bconcmds
@$out tmp/log3.out
@#
-@# now do a verify volume with errors. Note, which JobId produces
-@# verify errors depends on the size of data stored (less with dedup
-@# and ALIGNED).
+@# now do a verify volume with errors
@#
@$out ${cwd}/tmp/log3.out
setdebug level=10 client
run job=VerifyData jobid=2 yes
run job=VerifyData jobid=3 yes
run job=VerifyData jobid=4 yes
+run job=VerifyData jobid=5 yes
+run job=VerifyData jobid=6 yes
wait
messages
quit
run_bacula
-sleep 2
+sleep 1
check_for_zombie_jobs storage=File
stop_bacula
nb=`grep "^ Termination: *Backup OK" tmp/log1.out | wc -l`
-if [ $nb -ne 4 ]; then
+if [ $nb -ne 6 ]; then
bstat=1
fi
nb=`grep "^ Termination: *Verify OK" tmp/log2.out | wc -l`
-if [ $nb -ne 8 ]; then
+if [ $nb -ne 12 ]; then
vstat=1
fi
nb=`grep "^ Termination: *Verify OK" tmp/log3.out | wc -l`
if [ $nb -ne $nbok ]; then
- echo "nb=${nb} nbok=${nbok}"
- echo "tmp/log3.out"
- cat tmp/log3.out
vstat=2
fi
nb=`grep "^ Termination: *Verify Dif" tmp/log4.out | wc -l`
vstat=3
fi
dstat=0
+rstat=0
end_test