3 # Test the fill command in btape
6 scripts/copy-tape-confs
9 echo "${cwd}/build" >/tmp/file-list
11 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
12 sed "s%# MaximumVolumeSize% MaximumVolumeSize%" ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
16 echo " === Starting btape fill test `date +%R:%S` ==="
17 echo " === Starting btape fill test `date +%R:%S` ===" >>working/log
20 bin/btape -c bin/bacula-sd.conf DDS-4 <<END_OF_DATA 2>&1 >tmp/log1.out
28 grep "^The last block on the tape matches\. Test succeeded\." tmp/log1.out 2>&1 >/dev/null
32 echo " !!!!! btape fill test failed!!! !!!!! "
33 echo " !!!!! btape fill test failed!!! !!!!! " >>test.out
36 echo " ===== btape fill test OK ===== "
37 echo " ===== btape fill test OK ===== " >>test.out