X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fbtape-fill-full-tape;h=bfa0b0d463c4bc1e07ffc5de11a1d4b745e02ded;hb=4d691342d4786448f9e8f0ebf95a958f3169c9d1;hp=b2fc446ad192178bbbef190d7e1fce10337891a8;hpb=00a8f284933e0d912ae9588924a6f9a68062bb46;p=bacula%2Fbacula diff --git a/regress/tests/btape-fill-full-tape b/regress/tests/btape-fill-full-tape index b2fc446ad1..bfa0b0d463 100755 --- a/regress/tests/btape-fill-full-tape +++ b/regress/tests/btape-fill-full-tape @@ -3,24 +3,41 @@ # Test the fill command in btape # TestName="btape-fill-full-tape" -JobName=AutoLabel +JobName=btape-fill . scripts/functions -scripts/copy-tape-confs +require_tape_drive + +scripts/copy-btape-confs scripts/cleanup-tape change_jobname $JobName start_test -bin/btape -c bin/bacula-sd.conf DDS-4 <&1 >tmp/log1.out +# +# 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 + + +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 " "