tests: propagate CPPFLAGS into build invocations
[exim.git] / test / scripts / 4017_scan_avast_multiline / 4017
1 # content scan interface: avast
2 ### clean |  multiline response
3 server DIR/eximdir/avast_sock
4 >LF>220 ready
5 <FLAGS -fullfiles
6 >LF>210 FLAGS DATA
7 >LF>FLAGS -fullfiles
8 >LF>FLAGS +extra
9 >LF>200 FLAGS OK
10 <SCAN
11 >LF>210 SCAN DATA
12 >LF>/bin/clean1 [+]
13 >LF>/bin/clean2 [+]
14 >LF>200 SCAN OK
15 <QUIT
16 *eof
17 ****
18 #
19 #
20 #
21 exim -odi -bs -DOPTION="FLAGS -fullfiles" -DINSERT=
22 ehlo test.ex
23 mail from:<>
24 rcpt to:<userx@test.ex>
25 data
26 Date: Fri, 17 Dec 2004 14:35:01 +0100
27 Subject: message should be accepted
28
29 .
30 quit
31 ****
32 #
33 #
34 ### scanner tmpfail -> defer
35 server DIR/eximdir/avast_sock
36 >LF>220 ready
37 <SCAN
38 >LF>210 SCAN DATA
39 >LF>/bin/error  [E]0.0  Error 13 Permission\\ denied
40 >LF>451 SCAN Engine error 13 Permission denied
41 <QUIT
42 *eof
43 ****
44 #
45 #
46 #
47 exim -odi -bs -DOPTION= -DINSERT=
48 ehlo test.ex
49 mail from:<>
50 rcpt to:<userx@test.ex>
51 data
52 Date: Fri, 17 Dec 2004 14:35:01 +0100
53 Subject: defer this one, the scanner had an error
54
55 .
56 quit
57 ****
58 #
59 #
60 # clean and infected -> reject
61 server DIR/eximdir/avast_sock
62 >LF>220 ready
63 <SCAN
64 >LF>210 SCAN DATA
65 >LF>/bin/clean  [+]
66 >LF>v\\ i\\ a\\ r\\ u\\ s       [L]9.0  0 This\\ is\\ not\\ even\\ an\\ EICAR\\ test\\ virus.
67 >LF>200 SCAN OK
68 <QUIT
69 *eof
70 ****
71 #
72 #
73 #
74 exim -odi -bs -DOPTION= -DINSERT="/defer_ok"
75 ehlo test.ex
76 mail from:<>
77 rcpt to:<userx@test.ex>
78 data
79 Date: Fri, 17 Dec 2004 14:35:01 +0100
80 Subject: message should be rejected
81
82 .
83 quit
84 ****
85 #
86 #
87 # clean, error, infected -> reject
88 server DIR/eximdir/avast_sock
89 >LF>220 ready
90 <SCAN
91 >LF>210 SCAN DATA
92 >LF>/bin/clean  [+]
93 >LF>/bin/error  [E]0.0  Error 42110 The\\ file\\ is\\ a\\ decompression\\ bomb
94 >LF>v\\ i\\ a\\ r\\ u\\ s       [L]9.0  0 This\\ is\\ not\\ even\\ an\\ EICAR\\ test\\ virus.
95 >LF>200 SCAN OK
96 <QUIT
97 *eof
98 ****
99 #
100 #
101 #
102 exim -odi -bs -DOPTION= -DINSERT="/defer_ok"
103 ehlo test.ex
104 mail from:<>
105 rcpt to:<userx@test.ex>
106 data
107 Date: Fri, 17 Dec 2004 14:35:01 +0100
108 Subject: message should be rejected
109
110 .
111 quit
112 ****
113 #
114 #
115 # clean, error -> reject
116 server DIR/eximdir/avast_sock
117 >LF>220 ready
118 <SCAN
119 >LF>210 SCAN DATA
120 >LF>/bin/clean  [+]
121 >LF>/bin/error  [E]0.0  Error 42110 The\\ file\\ is\\ a\\ decompression\\ bomb
122 >LF>200 SCAN OK
123 <QUIT
124 *eof
125 ****
126 #
127 #
128 #
129 exim -odi -bs -DOPTION= -DINSERT=
130 ehlo test.ex
131 mail from:<>
132 rcpt to:<userx@test.ex>
133 data
134 Date: Fri, 17 Dec 2004 14:35:01 +0100
135 Subject: message should be rejected
136
137 .
138 quit
139 ****
140 #
141 #
142 # clean, error (pass_unscanned) -> accept
143 server DIR/eximdir/avast_sock
144 >LF>220 ready
145 <SCAN
146 >LF>210 SCAN DATA
147 >LF>/bin/clean  [+]
148 >LF>/bin/error  [E]0.0  Error 42110 The\\ file\\ is\\ a\\ decompression\\ bomb
149 >LF>200 SCAN OK
150 <QUIT
151 *eof
152 ****
153 #
154 #
155 #
156 exim -odi -bs -DOPTION=pass_unscanned -DINSERT=
157 ehlo test.ex
158 mail from:<>
159 rcpt to:<userx@test.ex>
160 data
161 Date: Fri, 17 Dec 2004 14:35:01 +0100
162 Subject: message should be accepted
163
164 .
165 quit
166 ****