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