3 # Test the test command in btape
5 TestName="btape-test-tape"
11 scripts/copy-btape-confs
14 change_jobname $JobName
17 if test "$debug" -eq 1 ; then
18 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log1.out
23 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA >${cwd}/tmp/log1.out 2>&1
32 echo " !!!!! btape test failed!!! !!!!! "
33 echo " !!!!! btape test failed!!! !!!!! " >>test.out
39 # Increase block size to 262144
41 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
42 sed -e 's%64512%262144%' ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
44 if test "$debug" -eq 1 ; then
45 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log2.out
50 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA >${cwd}/tmp/log2.out 2>&1
59 echo " !!!!! btape test failed!!! !!!!! "
60 echo " !!!!! btape test failed!!! !!!!! " >>test.out
63 echo " ===== btape test OK ===== "
64 echo " ===== btape test OK ===== " >>test.out