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 tape <<END_OF_DATA | tee ${cwd}/tmp/log1.out
26 $bin/btape -c bin/bacula-sd.conf tape <<END_OF_DATA >${cwd}/tmp/log1.out 2>&1
36 echo " !!!!! btape-changer test failed!!! !!!!! "
37 echo " !!!!! btape-changer test failed!!! !!!!! " >>test.out
43 # Increase block size to 262144
45 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
46 sed -e 's%64512%262144%' ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
48 if test "$debug" -eq 1 ; then
49 $bin/btape -c bin/bacula-sd.conf tape <<END_OF_DATA | tee ${cwd}/tmp/log2.out
55 $bin/btape -c bin/bacula-sd.conf tape <<END_OF_DATA >${cwd}/tmp/log2.out 2>&1
65 echo " !!!!! btape-changer test failed!!! !!!!! "
66 echo " !!!!! btape-changer test failed!!! !!!!! " >>test.out
69 echo " ===== btape-changer test OK ===== "
70 echo " ===== btape-changer test OK ===== " >>test.out