From 09bb9bf0de1ed2ed4cb734d8e7186205a0d4fc80 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 10 Mar 2021 15:56:44 +0100 Subject: [PATCH] regress: Add checks for SDPacketCheck autotuning --- regress/tests/sd-packet-check-test | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- 2.47.3