#!/bin/sh # # Test the fill command in btape # TestName="btape-fill-full-tape" JobName=AutoLabel . scripts/functions require_tape_drive scripts/copy-tape-confs scripts/cleanup-tape change_jobname $JobName start_test bin/btape -c bin/bacula-sd.conf DDS-4 <&1 >${cwd}/tmp/log1.out fill s quit END_OF_DATA 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