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

Diff of /code/trunk/testdata/grepoutput

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 222 by ph10, Fri Aug 17 10:48:51 2007 UTC revision 587 by ph10, Fri Jan 14 19:01:25 2011 UTC
# Line 2  Line 2 
2  PATTERN at the start of a line.  PATTERN at the start of a line.
3  In the middle of a line, PATTERN appears.  In the middle of a line, PATTERN appears.
4  Check up on PATTERN near the end.  Check up on PATTERN near the end.
5    RC=0
6  ---------------------------- Test 2 ------------------------------  ---------------------------- Test 2 ------------------------------
7  PATTERN at the start of a line.  PATTERN at the start of a line.
8    RC=0
9  ---------------------------- Test 3 ------------------------------  ---------------------------- Test 3 ------------------------------
10  7:PATTERN at the start of a line.  7:PATTERN at the start of a line.
11  8:In the middle of a line, PATTERN appears.  8:In the middle of a line, PATTERN appears.
12  10:This pattern is in lower case.  10:This pattern is in lower case.
13  608:Check up on PATTERN near the end.  608:Check up on PATTERN near the end.
14    RC=0
15  ---------------------------- Test 4 ------------------------------  ---------------------------- Test 4 ------------------------------
16  4  4
17    RC=0
18  ---------------------------- Test 5 ------------------------------  ---------------------------- Test 5 ------------------------------
19  ./testdata/grepinput:7:PATTERN at the start of a line.  ./testdata/grepinput:7:PATTERN at the start of a line.
20  ./testdata/grepinput:8:In the middle of a line, PATTERN appears.  ./testdata/grepinput:8:In the middle of a line, PATTERN appears.
# Line 18  PATTERN at the start of a line. Line 22  PATTERN at the start of a line.
22  ./testdata/grepinput:608:Check up on PATTERN near the end.  ./testdata/grepinput:608:Check up on PATTERN near the end.
23  ./testdata/grepinputx:3:Here is the pattern again.  ./testdata/grepinputx:3:Here is the pattern again.
24  ./testdata/grepinputx:5:Pattern  ./testdata/grepinputx:5:Pattern
25    ./testdata/grepinputx:42:This line contains pattern not on a line by itself.
26    RC=0
27  ---------------------------- Test 6 ------------------------------  ---------------------------- Test 6 ------------------------------
28  7:PATTERN at the start of a line.  7:PATTERN at the start of a line.
29  8:In the middle of a line, PATTERN appears.  8:In the middle of a line, PATTERN appears.
# Line 25  PATTERN at the start of a line. Line 31  PATTERN at the start of a line.
31  608:Check up on PATTERN near the end.  608:Check up on PATTERN near the end.
32  3:Here is the pattern again.  3:Here is the pattern again.
33  5:Pattern  5:Pattern
34    42:This line contains pattern not on a line by itself.
35    RC=0
36  ---------------------------- Test 7 ------------------------------  ---------------------------- Test 7 ------------------------------
37  ./testdata/grepinput  ./testdata/grepinput
38  ./testdata/grepinputx  ./testdata/grepinputx
39    RC=0
40  ---------------------------- Test 8 ------------------------------  ---------------------------- Test 8 ------------------------------
41  ./testdata/grepinput  ./testdata/grepinput
42    RC=0
43  ---------------------------- Test 9 ------------------------------  ---------------------------- Test 9 ------------------------------
44  RC=0  RC=0
45  ---------------------------- Test 10 -----------------------------  ---------------------------- Test 10 -----------------------------
# Line 75  RC=1 Line 85  RC=1
85  39:nineteen  39:nineteen
86  40:twenty  40:twenty
87  41:  41:
88  42:This is the last line of this file.  43:This is the last line of this file.
89    RC=0
90  ---------------------------- Test 12 -----------------------------  ---------------------------- Test 12 -----------------------------
91  Pattern  Pattern
92    RC=0
93  ---------------------------- Test 13 -----------------------------  ---------------------------- Test 13 -----------------------------
94  Here is the pattern again.  Here is the pattern again.
95  That time it was on a line by itself.  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 -----------------------------  ---------------------------- Test 14 -----------------------------
99  ./testdata/grepinputx:To pat or not to pat, that is the question.  ./testdata/grepinputx:To pat or not to pat, that is the question.
100    RC=0
101  ---------------------------- Test 15 -----------------------------  ---------------------------- Test 15 -----------------------------
102  pcregrep: Error in command-line regex at offset 4: nothing to repeat  pcregrep: Error in command-line regex at offset 4: nothing to repeat
103    RC=2
104  ---------------------------- Test 16 -----------------------------  ---------------------------- Test 16 -----------------------------
105  pcregrep: Failed to open ./testdata/nonexistfile: No such file or directory  pcregrep: Failed to open ./testdata/nonexistfile: No such file or directory
106    RC=2
107  ---------------------------- Test 17 -----------------------------  ---------------------------- Test 17 -----------------------------
108  features should be added at the end, because some of the tests involve the  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.  output of line numbers, and we don't want these to change.
110    RC=0
111  ---------------------------- Test 18 -----------------------------  ---------------------------- Test 18 -----------------------------
112  4:features should be added at the end, because some of the tests involve the  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.  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.  583:brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
115  -------------------------------------------------------------------------------  -------------------------------------------------------------------------------
116    RC=0
117  ---------------------------- Test 19 -----------------------------  ---------------------------- Test 19 -----------------------------
118  Pattern  Pattern
119    RC=0
120  ---------------------------- Test 20 -----------------------------  ---------------------------- Test 20 -----------------------------
121  10:complete pair  10:complete pair
122  of lines  of lines
123  16:complete pair  16:complete pair
124  of lines  of lines
125    RC=0
126  ---------------------------- Test 21 -----------------------------  ---------------------------- Test 21 -----------------------------
127  24:four  24:four
128  25-five  25-five
# Line 112  of lines Line 133  of lines
133  35-fifteen  35-fifteen
134  36-sixteen  36-sixteen
135  37-seventeen  37-seventeen
136    RC=0
137  ---------------------------- Test 22 -----------------------------  ---------------------------- Test 22 -----------------------------
138  21-one  21-one
139  22-two  22-two
# Line 122  of lines Line 144  of lines
144  32-twelve  32-twelve
145  33-thirteen  33-thirteen
146  34:fourteen  34:fourteen
147    RC=0
148  ---------------------------- Test 23 -----------------------------  ---------------------------- Test 23 -----------------------------
149  one  one
150  two  two
# Line 138  fourteen Line 161  fourteen
161  fifteen  fifteen
162  sixteen  sixteen
163  seventeen  seventeen
164    RC=0
165  ---------------------------- Test 24 -----------------------------  ---------------------------- Test 24 -----------------------------
166  four  four
167  five  five
# Line 157  eighteen Line 181  eighteen
181  nineteen  nineteen
182  twenty  twenty
183    
184    This line contains pattern not on a line by itself.
185  This is the last line of this file.  This is the last line of this file.
186    RC=0
187  ---------------------------- Test 25 -----------------------------  ---------------------------- Test 25 -----------------------------
188  15-  15-
189  16-complete pair  16-complete pair
# Line 179  This is the last line of this file. Line 205  This is the last line of this file.
205  32-twelve  32-twelve
206  33-thirteen  33-thirteen
207  34:fourteen  34:fourteen
208    RC=0
209  ---------------------------- Test 26 -----------------------------  ---------------------------- Test 26 -----------------------------
210    
211  complete pair  complete pair
# Line 207  eighteen Line 234  eighteen
234  nineteen  nineteen
235  twenty  twenty
236    
237    This line contains pattern not on a line by itself.
238  This is the last line of this file.  This is the last line of this file.
239    RC=0
240  ---------------------------- Test 27 -----------------------------  ---------------------------- Test 27 -----------------------------
241  four  four
242  five  five
# Line 227  eighteen Line 256  eighteen
256  nineteen  nineteen
257  twenty  twenty
258    
259    This line contains pattern not on a line by itself.
260  This is the last line of this file.  This is the last line of this file.
261    RC=0
262  ---------------------------- Test 28 -----------------------------  ---------------------------- Test 28 -----------------------------
263  14-of lines all by themselves.  14-of lines all by themselves.
264  15-  15-
# Line 250  This is the last line of this file. Line 281  This is the last line of this file.
281  32-twelve  32-twelve
282  33-thirteen  33-thirteen
283  34:fourteen  34:fourteen
284    RC=0
285  ---------------------------- Test 29 -----------------------------  ---------------------------- Test 29 -----------------------------
286  of lines all by themselves.  of lines all by themselves.
287    
# Line 279  eighteen Line 311  eighteen
311  nineteen  nineteen
312  twenty  twenty
313    
314    This line contains pattern not on a line by itself.
315  This is the last line of this file.  This is the last line of this file.
316    RC=0
317  ---------------------------- Test 30 -----------------------------  ---------------------------- Test 30 -----------------------------
318  ./testdata/grepinput-4-features should be added at the end, because some of the tests involve the  ./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.  ./testdata/grepinput-5-output of line numbers, and we don't want these to change.
# Line 299  This is the last line of this file. Line 333  This is the last line of this file.
333  ./testdata/grepinputx:3:Here is the pattern again.  ./testdata/grepinputx:3:Here is the pattern again.
334  ./testdata/grepinputx-4-  ./testdata/grepinputx-4-
335  ./testdata/grepinputx:5:Pattern  ./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 -----------------------------  ---------------------------- Test 31 -----------------------------
343  ./testdata/grepinput:7:PATTERN at the start of a line.  ./testdata/grepinput:7:PATTERN at the start of a line.
344  ./testdata/grepinput:8:In the middle of a line, PATTERN appears.  ./testdata/grepinput:8:In the middle of a line, PATTERN appears.
# Line 317  This is the last line of this file. Line 357  This is the last line of this file.
357  ./testdata/grepinputx-6-That time it was on a line by itself.  ./testdata/grepinputx-6-That time it was on a line by itself.
358  ./testdata/grepinputx-7-  ./testdata/grepinputx-7-
359  ./testdata/grepinputx-8-To pat or not to pat, that is the question.  ./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 -----------------------------  ---------------------------- Test 32 -----------------------------
365  ./testdata/grepinputx  ./testdata/grepinputx
366    RC=0
367  ---------------------------- Test 33 -----------------------------  ---------------------------- Test 33 -----------------------------
368  pcregrep: Failed to open ./testdata/grepnonexist: No such file or directory  pcregrep: Failed to open ./testdata/grepnonexist: No such file or directory
369  RC=2  RC=2
# Line 328  RC=2 Line 373  RC=2
373  ./testdata/grepinputx  ./testdata/grepinputx
374  RC=0  RC=0
375  ---------------------------- Test 36 -----------------------------  ---------------------------- Test 36 -----------------------------
376    ./testdata/grepinput3
377  ./testdata/grepinput8  ./testdata/grepinput8
378  ./testdata/grepinputx  ./testdata/grepinputx
379  RC=0  RC=0
# Line 336  aaaaa0 Line 382  aaaaa0
382  aaaaa2  aaaaa2
383  RC=0  RC=0
384  ======== STDERR ========  ======== STDERR ========
385  pcregrep: pcre_exec() error -8 while matching this line:  pcregrep: pcre_exec() gave error -8 while matching this text:
386    
387  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
388  pcregrep: error -8 means that a resource limit was exceeded  
389  pcregrep: check your regex for nested unlimited loops  pcregrep: pcre_exec() gave error -8 while matching this text:
390  pcregrep: pcre_exec() error -8 while matching this line:  
391  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
392    
393    pcregrep: Error -8 or -21 means that a resource limit was exceeded.
394    pcregrep: Check your regex for nested unlimited loops.
395  ---------------------------- Test 38 ------------------------------  ---------------------------- Test 38 ------------------------------
396  This line contains a binary zero here >< for testing.  This line contains a binary zero here >< for testing.
397    RC=0
398  ---------------------------- Test 39 ------------------------------  ---------------------------- Test 39 ------------------------------
399  This is a line before the binary zero.  This is a line before the binary zero.
400  This line contains a binary zero here >< for testing.  This line contains a binary zero here >< for testing.
401    RC=0
402  ---------------------------- Test 40 ------------------------------  ---------------------------- Test 40 ------------------------------
403  This line contains a binary zero here >< for testing.  This line contains a binary zero here >< for testing.
404  This is a line after the binary zero.  This is a line after the binary zero.
405    RC=0
406  ---------------------------- Test 41 ------------------------------  ---------------------------- Test 41 ------------------------------
407  before the binary zero  before the binary zero
408  after the binary zero  after the binary zero
409  ---------------------------- Test 41 ------------------------------  RC=0
410    ---------------------------- Test 42 ------------------------------
411  ./testdata/grepinput:595:before the binary zero  ./testdata/grepinput:595:before the binary zero
412  ./testdata/grepinput:597:after the binary zero  ./testdata/grepinput:597:after the binary zero
413  ---------------------------- Test 42 ------------------------------  RC=0
414    ---------------------------- Test 43 ------------------------------
415  595:before  595:before
416    595:zero
417  596:zero  596:zero
418  597:after  597:after
419  ---------------------------- Test 43 ------------------------------  597:zero
420    RC=0
421    ---------------------------- Test 44 ------------------------------
422  595:before  595:before
423    595:zero
424  596:zero  596:zero
425  597:zero  597:zero
426  ---------------------------- Test 44 ------------------------------  RC=0
427    ---------------------------- Test 45 ------------------------------
428  10:pattern  10:pattern
429  595:binary  595:binary
430  596:binary  596:binary
431  597:binary  597:binary
432  ---------------------------- Test 45 ------------------------------  RC=0
 pcregrep: Error in 2nd command-line regex at offset 9: missing )  
433  ---------------------------- Test 46 ------------------------------  ---------------------------- Test 46 ------------------------------
434  AB.VE  pcregrep: Error in 2nd command-line regex at offset 9: missing )
435    RC=2
436  ---------------------------- Test 47 ------------------------------  ---------------------------- Test 47 ------------------------------
437    AB.VE
438    RC=0
439    ---------------------------- Test 48 ------------------------------
440  ABOVE the elephant  ABOVE the elephant
441  AB.VE  AB.VE
442  AB.VE the turtle  AB.VE the turtle
443  ---------------------------- Test 48 ------------------------------  RC=0
444    ---------------------------- Test 49 ------------------------------
445  ABOVE the elephant  ABOVE the elephant
446  AB.VE  AB.VE
447  AB.VE the turtle  AB.VE the turtle
448  PUT NEW DATA ABOVE THIS LINE.  PUT NEW DATA ABOVE THIS LINE.
449  ---------------------------- Test 49 ------------------------------  RC=0
450  ---------------------------- Test 50 ------------------------------  ---------------------------- Test 50 ------------------------------
451    RC=1
452    ---------------------------- Test 51 ------------------------------
453  over the lazy dog.  over the lazy dog.
454    This time it jumps and jumps and jumps.
455    RC=0
456    ---------------------------- Test 52 ------------------------------
457    fox jumps
458    This time it jumps and jumps and jumps.
459    RC=0
460    ---------------------------- Test 53 ------------------------------
461    36972,6
462    36990,4
463    37024,4
464    37066,5
465    37083,4
466    RC=0
467    ---------------------------- Test 54 ------------------------------
468    595:15,6
469    595:33,4
470    596:28,4
471    597:15,5
472    597:32,4
473    RC=0
474    ---------------------------- Test 55 -----------------------------
475    Here is the pattern again.
476    That time it was on a line by itself.
477    This line contains pattern not on a line by itself.
478    RC=0
479    ---------------------------- Test 56 -----------------------------
480    ./testdata/grepinput:456
481    ./testdata/grepinput3:0
482    ./testdata/grepinput8:0
483    ./testdata/grepinputv:1
484    ./testdata/grepinputx:0
485    RC=0
486    ---------------------------- Test 57 -----------------------------
487    ./testdata/grepinput:456
488    ./testdata/grepinputv:1
489    RC=0
490    ---------------------------- Test 58 -----------------------------
491    PATTERN at the start of a line.
492    In the middle of a line, PATTERN appears.
493    Check up on PATTERN near the end.
494    RC=0
495    ---------------------------- Test 59 -----------------------------
496    PATTERN at the start of a line.
497    In the middle of a line, PATTERN appears.
498    Check up on PATTERN near the end.
499    RC=0
500    ---------------------------- Test 60 -----------------------------
501    PATTERN at the start of a line.
502    In the middle of a line, PATTERN appears.
503    Check up on PATTERN near the end.
504    RC=0
505    ---------------------------- Test 61 -----------------------------
506    PATTERN at the start of a line.
507    In the middle of a line, PATTERN appears.
508    Check up on PATTERN near the end.
509    RC=0
510    ---------------------------- Test 62 -----------------------------
511    pcregrep: pcre_exec() gave error -8 while matching text that starts:
512    
513    This is a file of miscellaneous text that is used as test data for checking
514    that the pcregrep command is working correctly. The file must be more than 24K
515    long so that it needs more than a single read
516    
517    pcregrep: Error -8 or -21 means that a resource limit was exceeded.
518    pcregrep: Check your regex for nested unlimited loops.
519    RC=1
520    ---------------------------- Test 63 -----------------------------
521    pcregrep: pcre_exec() gave error -21 while matching text that starts:
522    
523    This is a file of miscellaneous text that is used as test data for checking
524    that the pcregrep command is working correctly. The file must be more than 24K
525    long so that it needs more than a single read
526    
527    pcregrep: Error -8 or -21 means that a resource limit was exceeded.
528    pcregrep: Check your regex for nested unlimited loops.
529    RC=1
530    ---------------------------- Test 64 ------------------------------
531    appears
532    RC=0
533    ---------------------------- Test 65 ------------------------------
534    pear
535    RC=0
536    ---------------------------- Test 66 ------------------------------
537    RC=0
538    ---------------------------- Test 67 ------------------------------
539    RC=0
540    ---------------------------- Test 68 ------------------------------
541    pear
542    RC=0
543    ---------------------------- Test 69 -----------------------------
544    1:This is a second file of input for the pcregrep tests.
545    2:
546    4:
547    5:Pattern
548    6:That time it was on a line by itself.
549    7:
550    8:To pat or not to pat, that is the question.
551    9:
552    10:complete pair
553    11:of lines
554    12:
555    13:That was a complete pair
556    14:of lines all by themselves.
557    15:
558    16:complete pair
559    17:of lines
560    18:
561    19:And there they were again, to check line numbers.
562    20:
563    21:one
564    22:two
565    23:three
566    24:four
567    25:five
568    26:six
569    27:seven
570    28:eight
571    29:nine
572    30:ten
573    31:eleven
574    32:twelve
575    33:thirteen
576    34:fourteen
577    35:fifteen
578    36:sixteen
579    37:seventeen
580    38:eighteen
581    39:nineteen
582    40:twenty
583    41:
584    43:This is the last line of this file.
585    RC=0
586    ---------------------------- Test 70 -----------------------------
587    triple:  t1_txt  s1_tag  s_txt   p_tag   p_txt   o_tag   o_txt
588    
589    triple:     t3_txt  s2_tag  s_txt   p_tag   p_txt   o_tag   o_txt
590    
591    triple:     t4_txt  s1_tag  s_txt   p_tag   p_txt   o_tag   o_txt
592    
593    triple:     t4_txt  s1_tag  s_txt   p_tag   p_txt   o_tag   o_txt
594    
595    triple:     t6_txt  s2_tag  s_txt   p_tag   p_txt   o_tag   o_txt
596    
597    RC=0

Legend:
Removed from v.222  
changed lines
  Added in v.587

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12