#!/bin/sh # # Test the fill command in btape # cwd=`pwd` scripts/copy-tape-confs scripts/cleanup-tape echo " " echo " " echo " === Starting btape fill test at `date +%R:%S` ===" echo " === Starting btape fill test at `date +%R:%S` ===" >>working/log echo " " bin/btape -c bin/bacula-sd.conf DDS-4 <&1 >tmp/log1.out fill s quit END_OF_DATA grep "^The last block on the tape matches\. Test succeeded\." 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