3 # Copyright (C) 2000-2017 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
7 # Test the fill command in btape
9 TestName="btape-fill-full-tape"
15 scripts/copy-btape-confs
18 change_jobname $JobName
22 # Increase block size to 262144
24 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
25 sed -e 's%64512%262144%' ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
28 if test "$debug" -eq 1 ; then
29 $bin/btape -w $tmp -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log1.out
36 $bin/btape -w $tmp -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA >${cwd}/tmp/log1.out 2>&1
44 grep "^The last block on the tape matches\. Test succeeded\." ${cwd}/tmp/log1.out >/dev/null 2>&1
48 echo " !!!!! btape fill test failed!!! !!!!! "
49 echo " !!!!! btape fill test failed!!! !!!!! " >>test.out
52 echo " ===== btape fill test OK ===== "
53 echo " ===== btape fill test OK ===== " >>test.out