From: Eric Bollengier Date: Wed, 10 Mar 2021 14:56:44 +0000 (+0100) Subject: regress: Add checks for SDPacketCheck autotuning X-Git-Tag: Release-11.3.2~625 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09bb9bf0de1ed2ed4cb734d8e7186205a0d4fc80;p=thirdparty%2Fbacula.git regress: Add checks for SDPacketCheck autotuning --- diff --git a/regress/tests/sd-packet-check-test b/regress/tests/sd-packet-check-test index fa6f067ed..87bea29da 100755 --- a/regress/tests/sd-packet-check-test +++ b/regress/tests/sd-packet-check-test @@ -21,9 +21,12 @@ echo "s% Schedule =%# Schedule =%g" >${outf} cp $scripts/bacula-dir.conf $tmp/1 sed -f ${outf} $tmp/1 >$scripts/bacula-dir.conf -nbpacket=10 +nbpacket=100 $bperl -e "add_attribute('$conf/bacula-fd.conf', 'SDPacketCheck', '$nbpacket', 'FileDaemon')" +$bperl -e "add_attribute('$conf/bacula-sd.conf', 'CommCompression', 'no', 'Storage')" +$bperl -e "add_attribute('$conf/bacula-fd.conf', 'CommCompression', 'no', 'FileDaemon')" +$bperl -e "add_attribute('$conf/bacula-dir.conf', 'CommCompression', 'no', 'Director')" change_jobname BackupClient1 $JobName start_test @@ -82,6 +85,12 @@ if [ $? != 0 ]; then estat=1 fi +grep "Adjust the number of packet sent before a POLL" $working/*fd.trace > /dev/null +if [ $? != 0 ]; then + print_debug "ERROR: Should find some autotuning request in $working/*fd.trace" + estat=1 +fi + run_bconsole check_for_zombie_jobs storage=File1 stop_bacula