From: norbert.bizet Date: Thu, 5 Jan 2023 13:44:12 +0000 (-0500) Subject: adjust antivirus-test to new jobid selection X-Git-Tag: Beta-15.0.0~291 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04b83622efdaf093111a43ac699783893036cd51;p=thirdparty%2Fbacula.git adjust antivirus-test to new jobid selection --- diff --git a/regress/tests/antivirus-plugin-test b/regress/tests/antivirus-plugin-test index dc85be470..858ae899f 100755 --- a/regress/tests/antivirus-plugin-test +++ b/regress/tests/antivirus-plugin-test @@ -89,6 +89,11 @@ wait messages @$out ${cwd}/tmp/log5.out list fileevents jobid=3 +@$out ${cwd}/tmp/log6.out +list fileevents jobid=1,2,3 +@# list a range of jobids is not supported for now +@$out ${cwd}/tmp/log7.out +list fileevents jobid=1-3 quit END_OF_DATA @@ -112,5 +117,19 @@ if [ $nb != 1 ]; then estat=2 fi +nb=`grep "Eicar-Signature FOUND" $tmp/log6.out | wc -l` +if [ $nb != 1 ]; then + print_debug "ERROR: Should find Eicar virus in $tmp/log6.out" + estat=2 +fi + +# range jobid is not working for the moment +nb=`grep "Eicar-Signature FOUND" $tmp/log7.out | wc -l` +if [ $nb != 0 ]; then + print_debug "ERROR: Should not find Eicar virus in $tmp/log7.out" + estat=2 +fi + + stop_bacula end_test