From 88d91176badab94c593ea8027f0f3eaa8e5e4e99 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 1 Sep 2009 18:54:58 +0200 Subject: [PATCH] tweak btape fill test --- regress/tests/btape-fill-full-tape | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/regress/tests/btape-fill-full-tape b/regress/tests/btape-fill-full-tape index 6c34094ab8..f33a89848e 100755 --- a/regress/tests/btape-fill-full-tape +++ b/regress/tests/btape-fill-full-tape @@ -3,24 +3,39 @@ # Test the fill command in btape # TestName="btape-fill-full-tape" -JobName=AutoLabel +JobName=btape-fill . scripts/functions require_tape_drive -scripts/copy-tape-confs +scripts/copy-btape-confs scripts/cleanup-tape change_jobname $JobName start_test -$bin/btape -c bin/bacula-sd.conf DDS-4 <${cwd}/tmp/log1.out 2>&1 +# +# 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 tape <${cwd}/tmp/log1.out 2>&1 +fill +s +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 -- 2.39.5