3 # Copyright (C) 2000-2017 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
6 # Test the test command in btape
8 TestName="btape-test-changer"
17 scripts/copy-2tape-confs
19 change_jobname $JobName
22 if test "$debug" -eq 1 ; then
23 $bin/btape -w $tmp -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log1.out
31 $bin/btape -w $tmp -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log1.out
43 echo " !!!!! btape-changer test failed!!! !!!!! "
44 echo " !!!!! btape-changer test failed!!! !!!!! " >>test.out
50 # Increase block size to 262144
52 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
53 sed -e 's%64512%262144%' ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
55 if test "$debug" -eq 1 ; then
56 $bin/btape -w $tmp -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log2.out
62 $bin/btape -w $tmp -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA >${cwd}/tmp/log2.out 2>&1
72 echo " !!!!! btape-changer test failed!!! !!!!! "
73 echo " !!!!! btape-changer test failed!!! !!!!! " >>test.out
76 echo " ===== btape-changer test OK ===== "
77 echo " ===== btape-changer test OK ===== " >>test.out