cwd=`pwd`
scripts/copy-test-confs
rm -rf /tmp/TestVolume001 /tmp/bacula-restores
+rm -f tmp/original
bin/bacula stop 2>&1 >/dev/null
bin/drop_sqlite_tables
bin/make_sqlite_tables
run job=VerifyVolume
yes
wait
-@tee /tmp/original
+@tee ${cwd}/tmp/original
messages
@output
quit
END_OF_DATA
sleep 2
bin/bacula stop
-grep "Termination: *Verify OK" /tmp/original 2>&1 >/dev/null
+grep "Termination: *Verify OK" ${cwd}/tmp/original 2>&1 >/dev/null
if [ $? != 0 ] ; then
echo " "
echo " "
else
echo " ===== Verify Volume Test OK ===== "
echo " ===== Verify Volume Test OK ===== " >>test.out
+ rm -rf /tmp/bacula-restores /tmp/TestVolume001
+ rm -f ${cwd}/tmp/original
fi
-rm -rf /tmp/bacula-restores
-rm -f /tmp/original