3 # Test the fill command in btape
6 bin/bacula stop 2>&1 >/dev/null
7 scripts/copy-tape-confs
9 echo "${cwd}/build" >/tmp/file-list
11 ./drop_bacula_tables >/dev/null 2>&1
12 ./make_bacula_tables >/dev/null 2>&1
13 ./grant_bacula_privileges 2>&1 >/dev/null
15 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
16 sed "s%# MaximumVolumeSize% MaximumVolumeSize%" ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
20 echo " === Starting btape fill test ==="
21 echo " === Starting btape fill test ===" >>working/log
24 bin/btape -c bin/bacula-sd.conf DDS-4 <<END_OF_DATA 2>&1 >tmp/log1.out
32 grep "^The last block on the tape matches\. Test succeeded\." tmp/log1.out 2>&1 >/dev/null
36 echo " !!!!! btape fill test failed!!! !!!!! "
37 echo " !!!!! btape fill test failed!!! !!!!! " >>test.out
40 echo " ===== btape fill test OK ===== "
41 echo " ===== btape fill test OK ===== " >>test.out