]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
adjust antivirus-test to new jobid selection
authornorbert.bizet <norbert.bizet@baculasystems.com>
Thu, 5 Jan 2023 13:44:12 +0000 (08:44 -0500)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:00 +0000 (13:57 +0200)
regress/tests/antivirus-plugin-test

index dc85be4700d018298d1a557dddcd8f65a7d1cf8e..858ae899f63c9288ebb626e65242abd8e2933934 100755 (executable)
@@ -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