3 # Test the test command in btape
5 TestName="btape-test-changer"
14 scripts/copy-2tape-confs
16 change_jobname $JobName
19 if test "$debug" -eq 1 ; then
20 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log1.out
28 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log1.out
40 echo " !!!!! btape-changer test failed!!! !!!!! "
41 echo " !!!!! btape-changer test failed!!! !!!!! " >>test.out
47 # Increase block size to 262144
49 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
50 sed -e 's%64512%262144%' ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
52 if test "$debug" -eq 1 ; then
53 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log2.out
59 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA >${cwd}/tmp/log2.out 2>&1
69 echo " !!!!! btape-changer test failed!!! !!!!! "
70 echo " !!!!! btape-changer test failed!!! !!!!! " >>test.out
73 echo " ===== btape-changer test OK ===== "
74 echo " ===== btape-changer test OK ===== " >>test.out