3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Test the test command in btape
10 TestName="btape-test-changer"
19 scripts/copy-2tape-confs
21 change_jobname $JobName
24 if test "$debug" -eq 1 ; then
25 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log1.out
33 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log1.out
45 echo " !!!!! btape-changer test failed!!! !!!!! "
46 echo " !!!!! btape-changer test failed!!! !!!!! " >>test.out
52 # Increase block size to 262144
54 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
55 sed -e 's%64512%262144%' ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
57 if test "$debug" -eq 1 ; then
58 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log2.out
64 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA >${cwd}/tmp/log2.out 2>&1
74 echo " !!!!! btape-changer test failed!!! !!!!! "
75 echo " !!!!! btape-changer test failed!!! !!!!! " >>test.out
78 echo " ===== btape-changer test OK ===== "
79 echo " ===== btape-changer test OK ===== " >>test.out