/[pcre]/code/trunk/testdata/grepoutput
ViewVC logotype

Contents of /code/trunk/testdata/grepoutput

Parent Directory Parent Directory | Revision Log Revision Log


Revision 564 - (show annotations) (download)
Sun Oct 31 16:07:24 2010 UTC (3 years, 11 months ago) by ph10
File size: 13660 byte(s)
Fix bad return code from pcregrep when -o is used (yielded 1, not 0, after a 
match).

1 ---------------------------- Test 1 ------------------------------
2 PATTERN at the start of a line.
3 In the middle of a line, PATTERN appears.
4 Check up on PATTERN near the end.
5 RC=0
6 ---------------------------- Test 2 ------------------------------
7 PATTERN at the start of a line.
8 RC=0
9 ---------------------------- Test 3 ------------------------------
10 7:PATTERN at the start of a line.
11 8:In the middle of a line, PATTERN appears.
12 10:This pattern is in lower case.
13 608:Check up on PATTERN near the end.
14 RC=0
15 ---------------------------- Test 4 ------------------------------
16 4
17 RC=0
18 ---------------------------- Test 5 ------------------------------
19 ./testdata/grepinput:7:PATTERN at the start of a line.
20 ./testdata/grepinput:8:In the middle of a line, PATTERN appears.
21 ./testdata/grepinput:10:This pattern is in lower case.
22 ./testdata/grepinput:608:Check up on PATTERN near the end.
23 ./testdata/grepinputx:3:Here is the pattern again.
24 ./testdata/grepinputx:5:Pattern
25 ./testdata/grepinputx:42:This line contains pattern not on a line by itself.
26 RC=0
27 ---------------------------- Test 6 ------------------------------
28 7:PATTERN at the start of a line.
29 8:In the middle of a line, PATTERN appears.
30 10:This pattern is in lower case.
31 608:Check up on PATTERN near the end.
32 3:Here is the pattern again.
33 5:Pattern
34 42:This line contains pattern not on a line by itself.
35 RC=0
36 ---------------------------- Test 7 ------------------------------
37 ./testdata/grepinput
38 ./testdata/grepinputx
39 RC=0
40 ---------------------------- Test 8 ------------------------------
41 ./testdata/grepinput
42 RC=0
43 ---------------------------- Test 9 ------------------------------
44 RC=0
45 ---------------------------- Test 10 -----------------------------
46 RC=1
47 ---------------------------- Test 11 -----------------------------
48 1:This is a second file of input for the pcregrep tests.
49 2:
50 4:
51 5:Pattern
52 6:That time it was on a line by itself.
53 7:
54 8:To pat or not to pat, that is the question.
55 9:
56 10:complete pair
57 11:of lines
58 12:
59 13:That was a complete pair
60 14:of lines all by themselves.
61 15:
62 16:complete pair
63 17:of lines
64 18:
65 19:And there they were again, to check line numbers.
66 20:
67 21:one
68 22:two
69 23:three
70 24:four
71 25:five
72 26:six
73 27:seven
74 28:eight
75 29:nine
76 30:ten
77 31:eleven
78 32:twelve
79 33:thirteen
80 34:fourteen
81 35:fifteen
82 36:sixteen
83 37:seventeen
84 38:eighteen
85 39:nineteen
86 40:twenty
87 41:
88 43:This is the last line of this file.
89 RC=0
90 ---------------------------- Test 12 -----------------------------
91 Pattern
92 RC=0
93 ---------------------------- Test 13 -----------------------------
94 Here is the pattern again.
95 That time it was on a line by itself.
96 This line contains pattern not on a line by itself.
97 RC=0
98 ---------------------------- Test 14 -----------------------------
99 ./testdata/grepinputx:To pat or not to pat, that is the question.
100 RC=0
101 ---------------------------- Test 15 -----------------------------
102 pcregrep: Error in command-line regex at offset 4: nothing to repeat
103 RC=2
104 ---------------------------- Test 16 -----------------------------
105 pcregrep: Failed to open ./testdata/nonexistfile: No such file or directory
106 RC=2
107 ---------------------------- Test 17 -----------------------------
108 features should be added at the end, because some of the tests involve the
109 output of line numbers, and we don't want these to change.
110 RC=0
111 ---------------------------- Test 18 -----------------------------
112 4:features should be added at the end, because some of the tests involve the
113 output of line numbers, and we don't want these to change.
114 583:brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
115 -------------------------------------------------------------------------------
116 RC=0
117 ---------------------------- Test 19 -----------------------------
118 Pattern
119 RC=0
120 ---------------------------- Test 20 -----------------------------
121 10:complete pair
122 of lines
123 16:complete pair
124 of lines
125 RC=0
126 ---------------------------- Test 21 -----------------------------
127 24:four
128 25-five
129 26-six
130 27-seven
131 --
132 34:fourteen
133 35-fifteen
134 36-sixteen
135 37-seventeen
136 RC=0
137 ---------------------------- Test 22 -----------------------------
138 21-one
139 22-two
140 23-three
141 24:four
142 --
143 31-eleven
144 32-twelve
145 33-thirteen
146 34:fourteen
147 RC=0
148 ---------------------------- Test 23 -----------------------------
149 one
150 two
151 three
152 four
153 five
154 six
155 seven
156 --
157 eleven
158 twelve
159 thirteen
160 fourteen
161 fifteen
162 sixteen
163 seventeen
164 RC=0
165 ---------------------------- Test 24 -----------------------------
166 four
167 five
168 six
169 seven
170 eight
171 nine
172 ten
173 eleven
174 twelve
175 thirteen
176 fourteen
177 fifteen
178 sixteen
179 seventeen
180 eighteen
181 nineteen
182 twenty
183
184 This line contains pattern not on a line by itself.
185 This is the last line of this file.
186 RC=0
187 ---------------------------- Test 25 -----------------------------
188 15-
189 16-complete pair
190 17-of lines
191 18-
192 19-And there they were again, to check line numbers.
193 20-
194 21-one
195 22-two
196 23-three
197 24:four
198 25-five
199 26-six
200 27-seven
201 28-eight
202 29-nine
203 30-ten
204 31-eleven
205 32-twelve
206 33-thirteen
207 34:fourteen
208 RC=0
209 ---------------------------- Test 26 -----------------------------
210
211 complete pair
212 of lines
213
214 And there they were again, to check line numbers.
215
216 one
217 two
218 three
219 four
220 five
221 six
222 seven
223 eight
224 nine
225 ten
226 eleven
227 twelve
228 thirteen
229 fourteen
230 fifteen
231 sixteen
232 seventeen
233 eighteen
234 nineteen
235 twenty
236
237 This line contains pattern not on a line by itself.
238 This is the last line of this file.
239 RC=0
240 ---------------------------- Test 27 -----------------------------
241 four
242 five
243 six
244 seven
245 eight
246 nine
247 ten
248 eleven
249 twelve
250 thirteen
251 fourteen
252 fifteen
253 sixteen
254 seventeen
255 eighteen
256 nineteen
257 twenty
258
259 This line contains pattern not on a line by itself.
260 This is the last line of this file.
261 RC=0
262 ---------------------------- Test 28 -----------------------------
263 14-of lines all by themselves.
264 15-
265 16-complete pair
266 17-of lines
267 18-
268 19-And there they were again, to check line numbers.
269 20-
270 21-one
271 22-two
272 23-three
273 24:four
274 25-five
275 26-six
276 27-seven
277 28-eight
278 29-nine
279 30-ten
280 31-eleven
281 32-twelve
282 33-thirteen
283 34:fourteen
284 RC=0
285 ---------------------------- Test 29 -----------------------------
286 of lines all by themselves.
287
288 complete pair
289 of lines
290
291 And there they were again, to check line numbers.
292
293 one
294 two
295 three
296 four
297 five
298 six
299 seven
300 eight
301 nine
302 ten
303 eleven
304 twelve
305 thirteen
306 fourteen
307 fifteen
308 sixteen
309 seventeen
310 eighteen
311 nineteen
312 twenty
313
314 This line contains pattern not on a line by itself.
315 This is the last line of this file.
316 RC=0
317 ---------------------------- Test 30 -----------------------------
318 ./testdata/grepinput-4-features should be added at the end, because some of the tests involve the
319 ./testdata/grepinput-5-output of line numbers, and we don't want these to change.
320 ./testdata/grepinput-6-
321 ./testdata/grepinput:7:PATTERN at the start of a line.
322 ./testdata/grepinput:8:In the middle of a line, PATTERN appears.
323 ./testdata/grepinput-9-
324 ./testdata/grepinput:10:This pattern is in lower case.
325 --
326 ./testdata/grepinput-605-PUT NEW DATA ABOVE THIS LINE.
327 ./testdata/grepinput-606-=============================
328 ./testdata/grepinput-607-
329 ./testdata/grepinput:608:Check up on PATTERN near the end.
330 --
331 ./testdata/grepinputx-1-This is a second file of input for the pcregrep tests.
332 ./testdata/grepinputx-2-
333 ./testdata/grepinputx:3:Here is the pattern again.
334 ./testdata/grepinputx-4-
335 ./testdata/grepinputx:5:Pattern
336 --
337 ./testdata/grepinputx-39-nineteen
338 ./testdata/grepinputx-40-twenty
339 ./testdata/grepinputx-41-
340 ./testdata/grepinputx:42:This line contains pattern not on a line by itself.
341 RC=0
342 ---------------------------- Test 31 -----------------------------
343 ./testdata/grepinput:7:PATTERN at the start of a line.
344 ./testdata/grepinput:8:In the middle of a line, PATTERN appears.
345 ./testdata/grepinput-9-
346 ./testdata/grepinput:10:This pattern is in lower case.
347 ./testdata/grepinput-11-
348 ./testdata/grepinput-12-Here follows a whole lot of stuff that makes the file over 24K long.
349 ./testdata/grepinput-13-
350 --
351 ./testdata/grepinput:608:Check up on PATTERN near the end.
352 ./testdata/grepinput-609-This is the last line of this file.
353 --
354 ./testdata/grepinputx:3:Here is the pattern again.
355 ./testdata/grepinputx-4-
356 ./testdata/grepinputx:5:Pattern
357 ./testdata/grepinputx-6-That time it was on a line by itself.
358 ./testdata/grepinputx-7-
359 ./testdata/grepinputx-8-To pat or not to pat, that is the question.
360 --
361 ./testdata/grepinputx:42:This line contains pattern not on a line by itself.
362 ./testdata/grepinputx-43-This is the last line of this file.
363 RC=0
364 ---------------------------- Test 32 -----------------------------
365 ./testdata/grepinputx
366 RC=0
367 ---------------------------- Test 33 -----------------------------
368 pcregrep: Failed to open ./testdata/grepnonexist: No such file or directory
369 RC=2
370 ---------------------------- Test 34 -----------------------------
371 RC=2
372 ---------------------------- Test 35 -----------------------------
373 ./testdata/grepinputx
374 RC=0
375 ---------------------------- Test 36 -----------------------------
376 ./testdata/grepinput8
377 ./testdata/grepinputx
378 RC=0
379 ---------------------------- Test 37 -----------------------------
380 aaaaa0
381 aaaaa2
382 RC=0
383 ======== STDERR ========
384 pcregrep: pcre_exec() gave error -8 while matching this text:
385
386 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
387
388 pcregrep: pcre_exec() gave error -8 while matching this text:
389
390 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
391
392 pcregrep: Error -8 or -21 means that a resource limit was exceeded.
393 pcregrep: Check your regex for nested unlimited loops.
394 ---------------------------- Test 38 ------------------------------
395 This line contains a binary zero here >< for testing.
396 RC=0
397 ---------------------------- Test 39 ------------------------------
398 This is a line before the binary zero.
399 This line contains a binary zero here >< for testing.
400 RC=0
401 ---------------------------- Test 40 ------------------------------
402 This line contains a binary zero here >< for testing.
403 This is a line after the binary zero.
404 RC=0
405 ---------------------------- Test 41 ------------------------------
406 before the binary zero
407 after the binary zero
408 RC=0
409 ---------------------------- Test 42 ------------------------------
410 ./testdata/grepinput:595:before the binary zero
411 ./testdata/grepinput:597:after the binary zero
412 RC=0
413 ---------------------------- Test 43 ------------------------------
414 595:before
415 595:zero
416 596:zero
417 597:after
418 597:zero
419 RC=0
420 ---------------------------- Test 44 ------------------------------
421 595:before
422 595:zero
423 596:zero
424 597:zero
425 RC=0
426 ---------------------------- Test 45 ------------------------------
427 10:pattern
428 595:binary
429 596:binary
430 597:binary
431 RC=0
432 ---------------------------- Test 46 ------------------------------
433 pcregrep: Error in 2nd command-line regex at offset 9: missing )
434 RC=2
435 ---------------------------- Test 47 ------------------------------
436 AB.VE
437 RC=0
438 ---------------------------- Test 48 ------------------------------
439 ABOVE the elephant
440 AB.VE
441 AB.VE the turtle
442 RC=0
443 ---------------------------- Test 49 ------------------------------
444 ABOVE the elephant
445 AB.VE
446 AB.VE the turtle
447 PUT NEW DATA ABOVE THIS LINE.
448 RC=0
449 ---------------------------- Test 50 ------------------------------
450 RC=1
451 ---------------------------- Test 51 ------------------------------
452 over the lazy dog.
453 This time it jumps and jumps and jumps.
454 RC=0
455 ---------------------------- Test 52 ------------------------------
456 fox jumps
457 This time it jumps and jumps and jumps.
458 RC=0
459 ---------------------------- Test 53 ------------------------------
460 36972,6
461 36990,4
462 37024,4
463 37066,5
464 37083,4
465 RC=0
466 ---------------------------- Test 54 ------------------------------
467 595:15,6
468 595:33,4
469 596:28,4
470 597:15,5
471 597:32,4
472 RC=0
473 ---------------------------- Test 55 -----------------------------
474 Here is the pattern again.
475 That time it was on a line by itself.
476 This line contains pattern not on a line by itself.
477 RC=0
478 ---------------------------- Test 56 -----------------------------
479 ./testdata/grepinput:456
480 ./testdata/grepinput8:0
481 ./testdata/grepinputv:1
482 ./testdata/grepinputx:0
483 RC=0
484 ---------------------------- Test 57 -----------------------------
485 ./testdata/grepinput:456
486 ./testdata/grepinputv:1
487 RC=0
488 ---------------------------- Test 58 -----------------------------
489 PATTERN at the start of a line.
490 In the middle of a line, PATTERN appears.
491 Check up on PATTERN near the end.
492 RC=0
493 ---------------------------- Test 59 -----------------------------
494 PATTERN at the start of a line.
495 In the middle of a line, PATTERN appears.
496 Check up on PATTERN near the end.
497 RC=0
498 ---------------------------- Test 60 -----------------------------
499 PATTERN at the start of a line.
500 In the middle of a line, PATTERN appears.
501 Check up on PATTERN near the end.
502 RC=0
503 ---------------------------- Test 61 -----------------------------
504 PATTERN at the start of a line.
505 In the middle of a line, PATTERN appears.
506 Check up on PATTERN near the end.
507 RC=0
508 ---------------------------- Test 62 -----------------------------
509 pcregrep: pcre_exec() gave error -8 while matching text that starts:
510
511 This is a file of miscellaneous text that is used as test data for checking
512 that the pcregrep command is working correctly. The file must be more than 24K
513 long so that it needs more than a single read
514
515 pcregrep: Error -8 or -21 means that a resource limit was exceeded.
516 pcregrep: Check your regex for nested unlimited loops.
517 RC=1
518 ---------------------------- Test 63 -----------------------------
519 pcregrep: pcre_exec() gave error -21 while matching text that starts:
520
521 This is a file of miscellaneous text that is used as test data for checking
522 that the pcregrep command is working correctly. The file must be more than 24K
523 long so that it needs more than a single read
524
525 pcregrep: Error -8 or -21 means that a resource limit was exceeded.
526 pcregrep: Check your regex for nested unlimited loops.
527 RC=1

Properties

Name Value
svn:keywords "Author Date Id Revision Url"

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12