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
26 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log1.out
37 echo " !!!!! btape-changer test failed!!! !!!!! "
38 echo " !!!!! btape-changer test failed!!! !!!!! " >>test.out
44 # Increase block size to 262144
46 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
47 sed -e 's%64512%262144%' ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
49 if test "$debug" -eq 1 ; then
50 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log2.out
56 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA >${cwd}/tmp/log2.out 2>&1
66 echo " !!!!! btape-changer test failed!!! !!!!! "
67 echo " !!!!! btape-changer test failed!!! !!!!! " >>test.out
70 echo " ===== btape-changer test OK ===== "
71 echo " ===== btape-changer test OK ===== " >>test.out