diff options
Diffstat (limited to 'test/scripts')
-rw-r--r-- | test/scripts/4007_scan_avast/4007 | 34 | ||||
-rw-r--r-- | test/scripts/4017_scan_avast_multiline/4017 | 40 |
2 files changed, 63 insertions, 11 deletions
diff --git a/test/scripts/4007_scan_avast/4007 b/test/scripts/4007_scan_avast/4007 index 0611f2a96..fc6c627cf 100644 --- a/test/scripts/4007_scan_avast/4007 +++ b/test/scripts/4007_scan_avast/4007 @@ -28,13 +28,13 @@ quit **** # # -# +### (non-internal) scanner error -> paniclog server DIR/eximdir/avast_sock >LF>220 ready <SCAN >LF>210 SCAN DATA ->LF>blah [E] ->LF>200 SCAN OK +>LF>blah [E]0.0 Error 13 Permission\\ denied +>LF>451 SCAN Engine error 13 Permission denied <QUIT *eof **** @@ -59,7 +59,7 @@ server DIR/eximdir/avast_sock >LF>220 ready <SCAN >LF>210 SCAN DATA ->LF>b\\ l\\ a\\ h [L]9.9 9 VNAME +>LF>b\\ l\\ a\\ h [L]9.0 0 VNAME >LF>200 SCAN OK <QUIT *eof @@ -118,3 +118,29 @@ Subject: message should be accepted despite timeout . quit **** +# +# +### internal scanner error, no panic log +server DIR/eximdir/avast_sock +>LF>220 ready +<SCAN +>LF>210 SCAN DATA +>LF>blah [E]0.0 Error 42110 The\\ file\\ is\\ a\\ decompression\\ bomb +>LF>200 SCAN OK +<QUIT +*eof +**** +# +# +# +exim -odi -bs -DOPTION= -DINSERT= +ehlo test.ex +mail from:<> +rcpt to:<userx@test.ex> +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: defer this one, the scanner had an error + +. +quit +**** diff --git a/test/scripts/4017_scan_avast_multiline/4017 b/test/scripts/4017_scan_avast_multiline/4017 index d075825b8..3e6b06713 100644 --- a/test/scripts/4017_scan_avast_multiline/4017 +++ b/test/scripts/4017_scan_avast_multiline/4017 @@ -31,15 +31,13 @@ quit **** # # -### clean and error | multiline response +### scanner tmpfail -> defer server DIR/eximdir/avast_sock >LF>220 ready <SCAN >LF>210 SCAN DATA ->LF>/bin/ok [+] ->LF>/bin/error [E]0.0 ->LF>/bin/infected [L]0.0 0 This is not even EICAR! ->LF>200 SCAN OK +>LF>/bin/error [E]0.0 Error 13 Permission\\ denied +>LF>451 SCAN Engine error 13 Permission denied <QUIT *eof **** @@ -59,13 +57,41 @@ quit **** # # -# clean and infected | multiline response +# clean and infected -> reject +server DIR/eximdir/avast_sock +>LF>220 ready +<SCAN +>LF>210 SCAN DATA +>LF>/bin/clean [+] +>LF>v\\ i\\ a\\ r\\ u\\ s [L]9.0 0 This\\ is\\ not\\ even\\ an\\ EICAR\\ test\\ virus. +>LF>200 SCAN OK +<QUIT +*eof +**** +# +# +# +exim -odi -bs -DOPTION= -DINSERT="/defer_ok" +ehlo test.ex +mail from:<> +rcpt to:<userx@test.ex> +data +Date: Fri, 17 Dec 2004 14:35:01 +0100 +Subject: message should be rejected + +. +quit +**** +# +# +# clean, error, infected -> reject server DIR/eximdir/avast_sock >LF>220 ready <SCAN >LF>210 SCAN DATA >LF>/bin/clean [+] ->LF>v\\ i\\ a\\ r\\ u\\ s [L]9.9 9 This ist not even an EICAR test virus. +>LF>/bin/error [E]0.0 Error 42110 The\\ file\\ is\\ a\\ decompression\\ bomb +>LF>v\\ i\\ a\\ r\\ u\\ s [L]9.0 0 This\\ is\\ not\\ even\\ an\\ EICAR\\ test\\ virus. >LF>200 SCAN OK <QUIT *eof |