#
# Test the fill command in btape
#
-cwd=`pwd`
-scripts/copy-tape-confs
-scripts/cleanup-tape
+TestName="btape-fill-tape"
+JobName=filltape
+. scripts/functions
-echo "${cwd}/build" >/tmp/file-list
+copy_tape_confs
+
+echo "${cwd}/build" >${cwd}/tmp/file-list
cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
sed "s%# MaximumVolumeSize% MaximumVolumeSize%" ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
-echo " "
-echo " "
-echo " === Starting btape fill test ==="
-echo " === Starting btape fill test ===" >>working/log
-echo " "
+start_test
-bin/btape -c bin/bacula-sd.conf DDS-4 <<END_OF_DATA 2>&1 >tmp/log1.out
+cat <<END_OF_DATA >${cwd}/tmp/bconcmds
fill
s
-
quit
END_OF_DATA
+run_btape DDS-4
-grep "^The last block on the tape matches\. Test succeeded\." tmp/log1.out 2>&1 >/dev/null
+grep "^The last block on the tape matches\. Test succeeded\." ${cwd}/tmp/log1.out 2>&1 >/dev/null
if [ $? != 0 ] ; then
echo " "
echo " "