-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.expect
316 lines (314 loc) · 6.91 KB
/
test.expect
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
--- multilog prints nothing with no actions
0
--- multilog e prints to stderr
one
two
0
--- multilog inserts newline after partial final line
one
two
0
--- multilog handles multiple actions
one
one
two
two
0
--- multilog handles wildcard -
0
--- multilog handles literal +
one
0
--- multilog handles long lines for stderr
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
0
01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
0
01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789...
0
--- multilog handles status files
0
_1_two
_997_
--- multilog t has the right format on stderr
@xxxxxxxxxxxxxxxxxxxxxxxx ONE
@xxxxxxxxxxxxxxxxxxxxxxxx TWO
--- multilog t has the right format in status files
0
@xxxxxxxxxxxxxxxxxxxxxxxx TWO
--- multilog t ./x has the right format
0
@xxxxxxxxxxxxxxxxxxxxxxxx ONE
@xxxxxxxxxxxxxxxxxxxxxxxx TWO
--- multilog ./x inserts newline after partial final line
0
one
two
--- multilog ./x handles overlong lines
0
1234567890abcdef
123456
123456123456
123
--- multilog t ./x handles overlong lines
0
@xxxxxxxxxxxxxxxxxxxxxxxx ABCDEFGIHJKLMNOP
@xxxxxxxxxxxxxxxxxxxxxxxx ABCDEF
@xxxxxxxxxxxxxxxxxxxxxxxx ABCDEFABCDEF
@xxxxxxxxxxxxxxxxxxxxxxxx ABC
--- multilog t ./x handles overlong lines
0
@xxxxxxxxxxxxxxxxxxxxxxxx ABCDEFGIHJKLMNOP
@xxxxxxxxxxxxxxxxxxxxxxxx ABCDEF
@xxxxxxxxxxxxxxxxxxxxxxxx ABCDEFABCDEF
@xxxxxxxxxxxxxxxxxxxxxxxx ABC
--- multilog ./x s4096 works
0
0123456789abcde
0000000 30 31 32 33 34 35 36 37 38 39 61 62 63 64 65 0a
*
0010000
--- multilog ./x s4096 n3 works
0
0123456789abcde
0000000 30 31 32 33 34 35 36 37 38 39 61 62 63 64 65 0a
*
0020000
--- multilog ./x s4096 n2 works
0
0123456789abcde
0000000 30 31 32 33 34 35 36 37 38 39 61 62 63 64 65 0a
*
0010000
--- multilog ./x s8192 n2 works
0
0123456789abcde
0000000 30 31 32 33 34 35 36 37 38 39 61 62 63 64 65 0a
*
0020000
--- multilog ./x s8192 n2 works
0
0123456789abcde
0000000 30 31 32 33 34 35 36 37 38 39 61 62 63 64 65 0a
*
0020000
--- multilog ./x !sed work
0
0123456789abcde
0000000 30 31 32 33 34 35 36 37 38 39 61 62 63 64 66 0a
*
0010000
--- multilog ./x !sed works with state
0
current:
state:ffffff
od:
0000000 30 31 32 33 34 35 36 37 38 39 61 62 63 64 65 0a
*
0010000
--- multilog ./x ! repeats if processor fails
0
0123456789abcde
done
testflag set
0000000 64 6f 6e 65 0a
0000005
--- multilog ./x continues cleanly after stop
0
current has x bit
0
0000000 30 31 32 33 34 35 36 37 38 39 61 62 63 64 65 0a
*
0000040
--- multilog ./x continues cleanly after crash
0
0
current has x bit
current:
0000000 30 31 32 33 34 35 36 37 38 39 61 62 63 64 65 0a
0000020
.u:
0000000 30 31 32 33 34 35 36 37 38 39 61 62 63 64 65 0a
0000020
--- multilog n1 is corrected to 2
0
current:
0000000 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 0a
0000020
.s:
0000000 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 0a
0000020 61 61 61 61 61 61 61 61 61 61 61 61 61 0a
0000036
--- multilog -a* deselects
--- multilog +* selects everything
anything
--- multilog handles negative size or number
failed to parse s-999: strconv.ParseUint: parsing "-999": invalid syntax
1
failed to parse n-999: strconv.ParseUint: parsing "-999": invalid syntax
1
--- multilog parses facility.severity
0
failed to parse severity emer (kern.emer)
1
failed to parse severity emergx (kern.emergx)
1
0
failed to parse severity aler (kern.aler)
1
failed to parse severity alertx (kern.alertx)
1
0
failed to parse severity cri (kern.cri)
1
failed to parse severity critx (kern.critx)
1
0
failed to parse severity er (kern.er)
1
failed to parse severity errx (kern.errx)
1
0
failed to parse severity warnin (kern.warnin)
1
failed to parse severity warningx (kern.warningx)
1
0
failed to parse severity inf (kern.inf)
1
failed to parse severity infox (kern.infox)
1
0
failed to parse severity debu (kern.debu)
1
failed to parse severity debugx (kern.debugx)
1
0
failed to parse facility ker (ker.debug)
1
failed to parse facility kernx (kernx.debug)
1
0
failed to parse facility use (use.debug)
1
failed to parse facility userx (userx.debug)
1
0
failed to parse facility mai (mai.debug)
1
failed to parse facility mailx (mailx.debug)
1
0
failed to parse facility daemo (daemo.debug)
1
failed to parse facility daemonx (daemonx.debug)
1
0
failed to parse facility aut (aut.debug)
1
failed to parse facility authx (authx.debug)
1
0
failed to parse facility syslo (syslo.debug)
1
failed to parse facility syslogx (syslogx.debug)
1
0
failed to parse facility lp (lp.debug)
1
failed to parse facility lprx (lprx.debug)
1
0
failed to parse facility new (new.debug)
1
failed to parse facility newsx (newsx.debug)
1
0
failed to parse facility uuc (uuc.debug)
1
failed to parse facility uucpx (uucpx.debug)
1
0
failed to parse facility cro (cro.debug)
1
failed to parse facility cronx (cronx.debug)
1
0
failed to parse facility authpri (authpri.debug)
1
failed to parse facility authprivx (authprivx.debug)
1
0
failed to parse facility ft (ft.debug)
1
failed to parse facility ftpx (ftpx.debug)
1
0
failed to parse facility nt (nt.debug)
1
failed to parse facility ntpx (ntpx.debug)
1
0
failed to parse facility audi (audi.debug)
1
failed to parse facility auditx (auditx.debug)
1
0
failed to parse facility lp (lp.debug)
1
failed to parse facility lprx (lprx.debug)
1
0
failed to parse facility local (local.debug)
1
failed to parse facility local0x (local0x.debug)
1
failed to parse facility local8 (local8.debug)
1
0
failed to parse severity .debu
1
0
failed to parse facility use
1
--- multilog t t- works
@xxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxx
0
0123456789abcde
0
--- multilog tbad fails
unable to understand tbad
1
--- multilog i is known
0123456789abcde
0
--- multilog $ is unknown
unable to understand $
1
--- multilog d(one) works
0
--- multilog d(one) works if selected
0123456789abcde
0
oldstuff, must not change
--- multilog d(one) does not break loop if unselected
0
0123456789abcde
--- multilog longer match
0
delivery 7851: failure: Sorry,_I_couldn't_find_a_mail_exchanger_or_IP_address._(#5.4.4)/
starting delivery 7850: msg ...
--- multilog tUnix: timestamp in seconds since epoch
18 dddddddddd content
--- multilog tUnixMs: timestamp in seconds since epoch with ms
21 ddddddddddddd content
--- multilog tUnixUs: timestamp in seconds since epoch with us
24 dddddddddddddddd content
--- multilog tUnixNs: timestamp in seconds since epoch with ns
27 ddddddddddddddddddd content
--- multilog tRFC3339: timestamp in RFC3339 format
33 dddd-dd-ddTdd:dd:dd+dd:dd content
--- multilog tRFC3339Nano: timestamp in RFC3339 format with ns
37 dddd-dd-ddTdd:dd:dd.DXX+dd:dd content
--- multilog tT: timestamp in RFC3339 format with ns
37 dddd-dd-ddTdd:dd:dd.DXX+dd:dd content