X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fbtape-fill-full-tape;h=bfa0b0d463c4bc1e07ffc5de11a1d4b745e02ded;hb=b76f7bc37b0fd454157e383cdf8e31672726dce3;hp=a2d5b5a2815c32c968c6105b49c918f11aa74a5c;hpb=c4d3e4a4f6af72c0003ca8b062b6085bc4987d45;p=bacula%2Fbacula diff --git a/regress/tests/btape-fill-full-tape b/regress/tests/btape-fill-full-tape index a2d5b5a281..bfa0b0d463 100755 --- a/regress/tests/btape-fill-full-tape +++ b/regress/tests/btape-fill-full-tape @@ -2,25 +2,42 @@ # # Test the fill command in btape # -cwd=`pwd` -scripts/copy-tape-confs +TestName="btape-fill-full-tape" +JobName=btape-fill +. scripts/functions + +require_tape_drive + +scripts/copy-btape-confs scripts/cleanup-tape -echo " " -echo " " -echo " === Starting btape fill test ===" -echo " === Starting btape fill test ===" >>working/log -echo " " +change_jobname $JobName +start_test + +# +# Increase block size to 262144 +# +cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1 +sed -e 's%64512%262144%' ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf + -bin/btape -c bin/bacula-sd.conf DDS-4 <&1 >tmp/log1.out +if test "$debug" -eq 1 ; then + $bin/btape -c bin/bacula-sd.conf Drive-0 <${cwd}/tmp/log1.out 2>&1 +fill +s +quit +END_OF_DATA +fi -grep "^The last block on the tape matches\. Test succeeded\." tmp/log1.out 2>&1 >/dev/null +grep "^The last block on the tape matches\. Test succeeded\." ${cwd}/tmp/log1.out >/dev/null 2>&1 if [ $? != 0 ] ; then echo " " echo " "