start_test
if test "$debug" -eq 1 ; then
- $bin/btape -c bin/bacula-sd.conf tape <<END_OF_DATA
+ $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log1.out
test
quit
END_OF_DATA
else
- $bin/btape -c bin/bacula-sd.conf tape <<END_OF_DATA >${cwd}/tmp/log1.out 2>&1
+ $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA >${cwd}/tmp/log1.out 2>&1
test
quit
END_OF_DATA
if [ $? != 0 ] ; then
echo " "
echo " "
- echo " !!!!! btape fill test failed!!! !!!!! "
- echo " !!!!! btape fill test failed!!! !!!!! " >>test.out
+ echo " !!!!! btape test failed!!! !!!!! "
+ echo " !!!!! btape test failed!!! !!!!! " >>test.out
echo " "
exit 1
fi
sed -e 's%64512%262144%' ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
if test "$debug" -eq 1 ; then
- $bin/btape -c bin/bacula-sd.conf tape <<END_OF_DATA
+ $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA | tee ${cwd}/tmp/log2.out
test
quit
END_OF_DATA
else
- $bin/btape -c bin/bacula-sd.conf tape <<END_OF_DATA >${cwd}/tmp/log1.out 2>&1
+ $bin/btape -c bin/bacula-sd.conf Drive-0 <<END_OF_DATA >${cwd}/tmp/log2.out 2>&1
test
quit
END_OF_DATA
if [ $? != 0 ] ; then
echo " "
echo " "
- echo " !!!!! btape fill test failed!!! !!!!! "
- echo " !!!!! btape fill test failed!!! !!!!! " >>test.out
+ echo " !!!!! btape test failed!!! !!!!! "
+ echo " !!!!! btape test failed!!! !!!!! " >>test.out
echo " "
else
- echo " ===== btape fill test OK ===== "
- echo " ===== btape fill test OK ===== " >>test.out
-# scripts/cleanup
+ echo " ===== btape test OK ===== "
+ echo " ===== btape test OK ===== " >>test.out
+ scripts/cleanup
fi