]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Test new FileEvent list
authorEric Bollengier <eric@baculasystems.com>
Tue, 13 Sep 2022 13:00:47 +0000 (15:00 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:59 +0000 (13:56 +0200)
regress/tests/antivirus-plugin-test

index ae6fcdd70808acd9c15deca17e98dd599ca75fa5..dc85be4700d018298d1a557dddcd8f65a7d1cf8e 100755 (executable)
@@ -87,6 +87,8 @@ run job=VerifyData jobid=3 storage=File1
 yes
 wait
 messages
+@$out ${cwd}/tmp/log5.out
+list fileevents jobid=3
 quit
 END_OF_DATA
 
@@ -104,5 +106,11 @@ if [ $nb != 1 ]; then
     estat=2
 fi
 
+nb=`grep "Eicar-Signature FOUND" $tmp/log5.out | wc -l`
+if [ $nb != 1 ]; then
+    print_debug "ERROR: Should find Eicar virus in $tmp/log5.out"
+    estat=2
+fi
+
 stop_bacula
 end_test