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-tape"
16 scripts/copy-btape-confs
19 change_jobname $JobName
22 if test "$debug" -eq 1 ; then
23 $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 >${cwd}/tmp/log1.out 2>&1
37 echo " !!!!! btape test failed!!! !!!!! "
38 echo " !!!!! btape 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
55 $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA >${cwd}/tmp/log2.out 2>&1
64 echo " !!!!! btape test failed!!! !!!!! "
65 echo " !!!!! btape test failed!!! !!!!! " >>test.out
68 echo " ===== btape test OK ===== "
69 echo " ===== btape test OK ===== " >>test.out