From 89e846b3d405b2126aff05434c8e351d4c760350 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 2 Sep 2009 08:45:43 +0200 Subject: [PATCH] Tweak tape tests + add btape fill changer test --- regress/tests/btape-fill-full-changer | 52 +++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100755 regress/tests/btape-fill-full-changer diff --git a/regress/tests/btape-fill-full-changer b/regress/tests/btape-fill-full-changer new file mode 100755 index 0000000000..3d892f7ea1 --- /dev/null +++ b/regress/tests/btape-fill-full-changer @@ -0,0 +1,52 @@ +#!/bin/sh +# +# Test the fill command in btape +# +TestName="btape-fill-full-changer" +JobName=btape-fill-changer +. scripts/functions + +require_tape_drive +require_autochanger + +scripts/cleanup +scripts/copy-2tape-confs + +change_jobname $JobName +start_test + +# +# Increase block size to 262144 +# +cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1 +sed -e 's%64512%262144%' ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf + + +if test "$debug" -eq 1 ; then + $bin/btape -c bin/bacula-sd.conf DDS-4 <${cwd}/tmp/log1.out 2>&1 +fill +m + +quit +END_OF_DATA +fi + +grep "^The last block on the tape matches\. Test succeeded\." ${cwd}/tmp/log1.out >/dev/null 2>&1 +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 -- 2.39.5