#!/bin/sh # # Test the fill command in btape # TestName="btape-fill-1t1d-tape" JobName=filltape . scripts/functions 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 start_test cat <${cwd}/tmp/bconcmds fill s quit END_OF_DATA run_btape DDS-4 grep "^The last block on the tape matches\. Test succeeded\." ${cwd}/tmp/log1.out 2>&1 >/dev/null if [ $? != 0 ] ; then echo " " echo " " echo " !!!!! btape fill test failed!!! !!!!! " echo " !!!!! btape fill test failed!!! !!!!! " >>test.out echo " " else echo " ===== btape fill test OK ===== " echo " ===== btape fill test OK ===== " >>test.out # scripts/cleanup fi