/[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 563 by ph10, Sat Oct 30 18:37:47 2010 UTC revision 564 by ph10, Sun Oct 31 16:07:24 2010 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 19  PATTERN at the start of a line. Line 23  PATTERN at the start of a line.
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.  ./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 27  PATTERN at the start of a line. Line 32  PATTERN at the start of a line.
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.  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 78  RC=1 Line 86  RC=1
86  40:twenty  40:twenty
87  41:  41:
88  43: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.  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 115  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 125  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 141  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 162  twenty Line 183  twenty
183    
184  This line contains pattern not on a line by itself.  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 183  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 213  twenty Line 236  twenty
236    
237  This line contains pattern not on a line by itself.  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 234  twenty Line 258  twenty
258    
259  This line contains pattern not on a line by itself.  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 256  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 287  twenty Line 313  twenty
313    
314  This line contains pattern not on a line by itself.  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 311  This is the last line of this file. Line 338  This is the last line of this file.
338  ./testdata/grepinputx-40-twenty  ./testdata/grepinputx-40-twenty
339  ./testdata/grepinputx-41-  ./testdata/grepinputx-41-
340  ./testdata/grepinputx:42:This line contains pattern not on a line by itself.  ./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 332  This is the last line of this file. Line 360  This is the last line of this file.
360  --  --
361  ./testdata/grepinputx:42:This line contains pattern not on a line by itself.  ./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.  ./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 363  pcregrep: Error -8 or -21 means that a r Line 393  pcregrep: Error -8 or -21 means that a r
393  pcregrep: Check your regex for nested unlimited loops.  pcregrep: Check your regex for nested unlimited loops.
394  ---------------------------- Test 38 ------------------------------  ---------------------------- Test 38 ------------------------------
395  This line contains a binary zero here >< for testing.  This line contains a binary zero here >< for testing.
396    RC=0
397  ---------------------------- Test 39 ------------------------------  ---------------------------- Test 39 ------------------------------
398  This is a line before the binary zero.  This is a line before the binary zero.
399  This line contains a binary zero here >< for testing.  This line contains a binary zero here >< for testing.
400    RC=0
401  ---------------------------- Test 40 ------------------------------  ---------------------------- Test 40 ------------------------------
402  This line contains a binary zero here >< for testing.  This line contains a binary zero here >< for testing.
403  This is a line after the binary zero.  This is a line after the binary zero.
404    RC=0
405  ---------------------------- Test 41 ------------------------------  ---------------------------- Test 41 ------------------------------
406  before the binary zero  before the binary zero
407  after the binary zero  after the binary zero
408  ---------------------------- Test 41 ------------------------------  RC=0
409    ---------------------------- Test 42 ------------------------------
410  ./testdata/grepinput:595:before the binary zero  ./testdata/grepinput:595:before the binary zero
411  ./testdata/grepinput:597:after the binary zero  ./testdata/grepinput:597:after the binary zero
412  ---------------------------- Test 42 ------------------------------  RC=0
413    ---------------------------- Test 43 ------------------------------
414  595:before  595:before
415  595:zero  595:zero
416  596:zero  596:zero
417  597:after  597:after
418  597:zero  597:zero
419  ---------------------------- Test 43 ------------------------------  RC=0
420    ---------------------------- Test 44 ------------------------------
421  595:before  595:before
422  595:zero  595:zero
423  596:zero  596:zero
424  597:zero  597:zero
425  ---------------------------- Test 44 ------------------------------  RC=0
426    ---------------------------- Test 45 ------------------------------
427  10:pattern  10:pattern
428  595:binary  595:binary
429  596:binary  596:binary
430  597:binary  597:binary
431  ---------------------------- Test 45 ------------------------------  RC=0
 pcregrep: Error in 2nd command-line regex at offset 9: missing )  
432  ---------------------------- Test 46 ------------------------------  ---------------------------- Test 46 ------------------------------
433  AB.VE  pcregrep: Error in 2nd command-line regex at offset 9: missing )
434    RC=2
435  ---------------------------- Test 47 ------------------------------  ---------------------------- Test 47 ------------------------------
436    AB.VE
437    RC=0
438    ---------------------------- Test 48 ------------------------------
439  ABOVE the elephant  ABOVE the elephant
440  AB.VE  AB.VE
441  AB.VE the turtle  AB.VE the turtle
442  ---------------------------- Test 48 ------------------------------  RC=0
443    ---------------------------- Test 49 ------------------------------
444  ABOVE the elephant  ABOVE the elephant
445  AB.VE  AB.VE
446  AB.VE the turtle  AB.VE the turtle
447  PUT NEW DATA ABOVE THIS LINE.  PUT NEW DATA ABOVE THIS LINE.
448  ---------------------------- Test 49 ------------------------------  RC=0
449  ---------------------------- Test 50 ------------------------------  ---------------------------- Test 50 ------------------------------
450    RC=1
451    ---------------------------- Test 51 ------------------------------
452  over the lazy dog.  over the lazy dog.
453  This time it jumps and jumps and jumps.  This time it jumps and jumps and jumps.
454  ---------------------------- Test 51 ------------------------------  RC=0
455    ---------------------------- Test 52 ------------------------------
456  fox jumps  fox jumps
457  This time it jumps and jumps and jumps.  This time it jumps and jumps and jumps.
458  ---------------------------- Test 52 ------------------------------  RC=0
459    ---------------------------- Test 53 ------------------------------
460  36972,6  36972,6
461  36990,4  36990,4
462  37024,4  37024,4
463  37066,5  37066,5
464  37083,4  37083,4
465  ---------------------------- Test 53 ------------------------------  RC=0
466    ---------------------------- Test 54 ------------------------------
467  595:15,6  595:15,6
468  595:33,4  595:33,4
469  596:28,4  596:28,4
470  597:15,5  597:15,5
471  597:32,4  597:32,4
472  ---------------------------- Test 54 -----------------------------  RC=0
473    ---------------------------- Test 55 -----------------------------
474  Here is the pattern again.  Here is the pattern again.
475  That time it was on a line by itself.  That time it was on a line by itself.
476  This line contains pattern not on a line by itself.  This line contains pattern not on a line by itself.
477  ---------------------------- Test 55 -----------------------------  RC=0
478    ---------------------------- Test 56 -----------------------------
479  ./testdata/grepinput:456  ./testdata/grepinput:456
480  ./testdata/grepinput8:0  ./testdata/grepinput8:0
481  ./testdata/grepinputv:1  ./testdata/grepinputv:1
482  ./testdata/grepinputx:0  ./testdata/grepinputx:0
483  ---------------------------- Test 56 -----------------------------  RC=0
484    ---------------------------- Test 57 -----------------------------
485  ./testdata/grepinput:456  ./testdata/grepinput:456
486  ./testdata/grepinputv:1  ./testdata/grepinputv:1
487  ---------------------------- Test 57 -----------------------------  RC=0
 PATTERN at the start of a line.  
 In the middle of a line, PATTERN appears.  
 Check up on PATTERN near the end.  
488  ---------------------------- Test 58 -----------------------------  ---------------------------- Test 58 -----------------------------
489  PATTERN at the start of a line.  PATTERN at the start of a line.
490  In the middle of a line, PATTERN appears.  In the middle of a line, PATTERN appears.
491  Check up on PATTERN near the end.  Check up on PATTERN near the end.
492    RC=0
493  ---------------------------- Test 59 -----------------------------  ---------------------------- Test 59 -----------------------------
494  PATTERN at the start of a line.  PATTERN at the start of a line.
495  In the middle of a line, PATTERN appears.  In the middle of a line, PATTERN appears.
496  Check up on PATTERN near the end.  Check up on PATTERN near the end.
497    RC=0
498  ---------------------------- Test 60 -----------------------------  ---------------------------- Test 60 -----------------------------
499  PATTERN at the start of a line.  PATTERN at the start of a line.
500  In the middle of a line, PATTERN appears.  In the middle of a line, PATTERN appears.
501  Check up on PATTERN near the end.  Check up on PATTERN near the end.
502    RC=0
503  ---------------------------- Test 61 -----------------------------  ---------------------------- 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:  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  This is a file of miscellaneous text that is used as test data for checking
# Line 460  long so that it needs more than a single Line 514  long so that it needs more than a single
514    
515  pcregrep: Error -8 or -21 means that a resource limit was exceeded.  pcregrep: Error -8 or -21 means that a resource limit was exceeded.
516  pcregrep: Check your regex for nested unlimited loops.  pcregrep: Check your regex for nested unlimited loops.
517  ---------------------------- Test 62 -----------------------------  RC=1
518    ---------------------------- Test 63 -----------------------------
519  pcregrep: pcre_exec() gave error -21 while matching text that starts:  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  This is a file of miscellaneous text that is used as test data for checking
# Line 469  long so that it needs more than a single Line 524  long so that it needs more than a single
524    
525  pcregrep: Error -8 or -21 means that a resource limit was exceeded.  pcregrep: Error -8 or -21 means that a resource limit was exceeded.
526  pcregrep: Check your regex for nested unlimited loops.  pcregrep: Check your regex for nested unlimited loops.
527    RC=1

Legend:
Removed from v.563  
changed lines
  Added in v.564

  ViewVC Help
Powered by ViewVC 1.1.5