3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Test the fill command in btape
10 TestName="btape-fill-full-changer"
11 JobName=btape-fill-changer
18 scripts/copy-btape-confs
20 change_jobname $JobName
24 # Increase block size to 262144
26 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
27 sed -e 's%64512%262144%' ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
29 # Limit Volume size for debugging without waiting too long
31 # cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
32 # sed -e 's%# MaximumVolumeSize = 400M% MaximumVolumeSize = 400M%' ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
34 if test "$debug" -eq 1 ; then
35 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log1.out
42 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA >${cwd}/tmp/log1.out 2>&1
50 grep "^The last block on the second tape matches\. Test succeeded\." ${cwd}/tmp/log1.out >/dev/null 2>&1
54 echo " !!!!! btape fill test failed!!! !!!!! "
55 echo " !!!!! btape fill test failed!!! !!!!! " >>test.out
58 echo " ===== btape fill test OK ===== "
59 echo " ===== btape fill test OK ===== " >>test.out