]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Add checks for SDPacketCheck autotuning
authorEric Bollengier <eric@baculasystems.com>
Wed, 10 Mar 2021 14:56:44 +0000 (15:56 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:01 +0000 (09:03 +0100)
regress/tests/sd-packet-check-test

index fa6f067ed6bad7533bc991e45e6b5086ce9d493b..87bea29da3f5473737cef1d9c1af89fac75ba4d0 100755 (executable)
@@ -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