3 # Test the fill command in btape
5 TestName="btape-fill-full-tape"
11 scripts/copy-btape-confs
14 change_jobname $JobName
18 # Increase block size to 262144
20 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
21 sed -e 's%64512%262144%' ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
24 if test "$debug" -eq 1 ; then
25 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log1.out
32 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA >${cwd}/tmp/log1.out 2>&1
40 grep "^The last block on the tape matches\. Test succeeded\." ${cwd}/tmp/log1.out >/dev/null 2>&1
44 echo " !!!!! btape fill test failed!!! !!!!! "
45 echo " !!!!! btape fill test failed!!! !!!!! " >>test.out
48 echo " ===== btape fill test OK ===== "
49 echo " ===== btape fill test OK ===== " >>test.out