/[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 81 by nigel, Sat Feb 24 21:40:59 2007 UTC revision 93 by nigel, Sat Feb 24 21:41:42 2007 UTC
# Line 1  Line 1 
 pcregrep version 4.0 07-Jun-2005 using PCRE version 6.2 01-Aug-2005  
1  ---------------------------- Test 1 ------------------------------  ---------------------------- Test 1 ------------------------------
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.
# Line 9  PATTERN at the start of a line. Line 8  PATTERN at the start of a line.
8  7:PATTERN at the start of a line.  7:PATTERN at the start of a line.
9  8:In the middle of a line, PATTERN appears.  8:In the middle of a line, PATTERN appears.
10  10:This pattern is in lower case.  10:This pattern is in lower case.
11  586:Check up on PATTERN near the end.  608:Check up on PATTERN near the end.
12  ---------------------------- Test 4 ------------------------------  ---------------------------- Test 4 ------------------------------
13  4  4
14  ---------------------------- Test 5 ------------------------------  ---------------------------- Test 5 ------------------------------
15  ./testdata/grepinput:7:PATTERN at the start of a line.  ./testdata/grepinput:7:PATTERN at the start of a line.
16  ./testdata/grepinput:8:In the middle of a line, PATTERN appears.  ./testdata/grepinput:8:In the middle of a line, PATTERN appears.
17  ./testdata/grepinput:10:This pattern is in lower case.  ./testdata/grepinput:10:This pattern is in lower case.
18  ./testdata/grepinput:586:Check up on PATTERN near the end.  ./testdata/grepinput:608:Check up on PATTERN near the end.
 --  
19  ./testdata/grepinputx:3:Here is the pattern again.  ./testdata/grepinputx:3:Here is the pattern again.
20  ./testdata/grepinputx:5:Pattern  ./testdata/grepinputx:5:Pattern
21  ---------------------------- Test 6 ------------------------------  ---------------------------- Test 6 ------------------------------
22  7:PATTERN at the start of a line.  7:PATTERN at the start of a line.
23  8:In the middle of a line, PATTERN appears.  8:In the middle of a line, PATTERN appears.
24  10:This pattern is in lower case.  10:This pattern is in lower case.
25  586:Check up on PATTERN near the end.  608:Check up on PATTERN near the end.
 --  
26  3:Here is the pattern again.  3:Here is the pattern again.
27  5:Pattern  5:Pattern
28  ---------------------------- Test 7 ------------------------------  ---------------------------- Test 7 ------------------------------
# Line 78  RC=1 Line 75  RC=1
75  39:nineteen  39:nineteen
76  40:twenty  40:twenty
77  41:  41:
78  42:This is the last line of this file.  42:Here follows some CR/LF/CRLF test data.
79    43:
80    44:abc def
81    45:ghi
82    46:jkl
83    47:
84    48:This is the last line of this file.
85  ---------------------------- Test 12 -----------------------------  ---------------------------- Test 12 -----------------------------
86  Pattern  Pattern
87  ---------------------------- Test 13 -----------------------------  ---------------------------- Test 13 -----------------------------
# Line 87  That time it was on a line by itself. Line 90  That time it was on a line by itself.
90  ---------------------------- Test 14 -----------------------------  ---------------------------- Test 14 -----------------------------
91  ./testdata/grepinputx:To pat or not to pat, that is the question.  ./testdata/grepinputx:To pat or not to pat, that is the question.
92  ---------------------------- Test 15 -----------------------------  ---------------------------- Test 15 -----------------------------
93  pcregrep: Error in regex at offset 4: nothing to repeat  pcregrep: Error in command-line regex at offset 4: nothing to repeat
94  ---------------------------- Test 16 -----------------------------  ---------------------------- Test 16 -----------------------------
95  pcregrep: Failed to open ./testdata/nonexistfile: No such file or directory  pcregrep: Failed to open ./testdata/nonexistfile: No such file or directory
96  ---------------------------- Test 17 -----------------------------  ---------------------------- Test 17 -----------------------------
# Line 116  of lines Line 119  of lines
119  36-sixteen  36-sixteen
120  37-seventeen  37-seventeen
121  ---------------------------- Test 22 -----------------------------  ---------------------------- Test 22 -----------------------------
122  20-one  21-one
123  21-two  22-two
124  22-three  23-three
125  24:four  24:four
126  --  --
127  30-eleven  31-eleven
128  31-twelve  32-twelve
129  32-thirteen  33-thirteen
130  34:fourteen  34:fourteen
131  ---------------------------- Test 23 -----------------------------  ---------------------------- Test 23 -----------------------------
132  one  one
# Line 160  eighteen Line 163  eighteen
163  nineteen  nineteen
164  twenty  twenty
165    
166  This is the last line of this file.  Here follows some CR/LF/CRLF test data.
167    
168  ---------------------------- Test 25 -----------------------------  ---------------------------- Test 25 -----------------------------
169  14-  15-
170  15-complete pair  16-complete pair
171  16-of lines  17-of lines
172  17-  18-
173  18-And there they were again, to check line numbers.  19-And there they were again, to check line numbers.
174  19-  20-
175  20-one  21-one
176  21-two  22-two
177  22-three  23-three
178  24:four  24:four
179  25-five  25-five
180  26-six  26-six
# Line 210  eighteen Line 214  eighteen
214  nineteen  nineteen
215  twenty  twenty
216    
217  This is the last line of this file.  Here follows some CR/LF/CRLF test data.
218    
219  ---------------------------- Test 27 -----------------------------  ---------------------------- Test 27 -----------------------------
220  four  four
221  five  five
# Line 230  eighteen Line 235  eighteen
235  nineteen  nineteen
236  twenty  twenty
237    
238  This is the last line of this file.  Here follows some CR/LF/CRLF test data.
239    
240    abc def
241  ---------------------------- Test 28 -----------------------------  ---------------------------- Test 28 -----------------------------
242  13-of lines all by themselves.  14-of lines all by themselves.
243  14-  15-
244  15-complete pair  16-complete pair
245  16-of lines  17-of lines
246  17-  18-
247  18-And there they were again, to check line numbers.  19-And there they were again, to check line numbers.
248  19-  20-
249  20-one  21-one
250  21-two  22-two
251  22-three  23-three
252  24:four  24:four
253  25-five  25-five
254  26-six  26-six
# Line 282  eighteen Line 289  eighteen
289  nineteen  nineteen
290  twenty  twenty
291    
292  This is the last line of this file.  Here follows some CR/LF/CRLF test data.
293    
294    abc def
295    ghi
296    jkl
297  ---------------------------- Test 30 -----------------------------  ---------------------------- Test 30 -----------------------------
298  ./testdata/grepinput-3-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
299  ./testdata/grepinput-4-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.
300  ./testdata/grepinput-5-  ./testdata/grepinput-6-
301  ./testdata/grepinput:7:PATTERN at the start of a line.  ./testdata/grepinput:7:PATTERN at the start of a line.
302  ./testdata/grepinput:8:In the middle of a line, PATTERN appears.  ./testdata/grepinput:8:In the middle of a line, PATTERN appears.
303  ./testdata/grepinput-9-  ./testdata/grepinput-9-
304  ./testdata/grepinput:10:This pattern is in lower case.  ./testdata/grepinput:10:This pattern is in lower case.
305  --  --
306  ./testdata/grepinput-582-brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.  ./testdata/grepinput-605-PUT NEW DATA ABOVE THIS LINE.
307  ./testdata/grepinput-583--------------------------------------------------------------------------------  ./testdata/grepinput-606-=============================
308  ./testdata/grepinput-584-  ./testdata/grepinput-607-
309  ./testdata/grepinput:586:Check up on PATTERN near the end.  ./testdata/grepinput:608:Check up on PATTERN near the end.
310  --  --
311  ./testdata/grepinputx-1-This is a second file of input for the pcregrep tests.  ./testdata/grepinputx-1-This is a second file of input for the pcregrep tests.
312  ./testdata/grepinputx-2-  ./testdata/grepinputx-2-
# Line 311  This is the last line of this file. Line 322  This is the last line of this file.
322  ./testdata/grepinput-12-Here follows a whole lot of stuff that makes the file over 24K long.  ./testdata/grepinput-12-Here follows a whole lot of stuff that makes the file over 24K long.
323  ./testdata/grepinput-13-  ./testdata/grepinput-13-
324  --  --
325  ./testdata/grepinput:586:Check up on PATTERN near the end.  ./testdata/grepinput:608:Check up on PATTERN near the end.
326  ./testdata/grepinput-587-  ./testdata/grepinput-609-This is the last line of this file.
 ./testdata/grepinput-588-This is the last line of this file.  
327  --  --
328  ./testdata/grepinputx:3:Here is the pattern again.  ./testdata/grepinputx:3:Here is the pattern again.
329  ./testdata/grepinputx-4-  ./testdata/grepinputx-4-
# Line 333  RC=2 Line 343  RC=2
343  RC=0  RC=0
344  ---------------------------- Test 36 -----------------------------  ---------------------------- Test 36 -----------------------------
345  ./testdata/grepinputx  ./testdata/grepinputx
346    ./testdata/grepinput8
347  RC=0  RC=0
348    ---------------------------- Test 37 -----------------------------
349    aaaaa0
350    aaaaa2
351    RC=0
352    ======== STDERR ========
353    pcregrep: pcre_exec() error -8 while matching this line:
354    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
355    pcregrep: error -8 means that a resource limit was exceeded
356    pcregrep: check your regex for nested unlimited loops
357    pcregrep: pcre_exec() error -8 while matching this line:
358    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
359    ---------------------------- Test 38 ------------------------------
360    This line contains a binary zero here >< for testing.
361    ---------------------------- Test 39 ------------------------------
362    This is a line before the binary zero.
363    This line contains a binary zero here >< for testing.
364    ---------------------------- Test 40 ------------------------------
365    This line contains a binary zero here >< for testing.
366    This is a line after the binary zero.
367    ---------------------------- Test 41 ------------------------------
368    before the binary zero
369    after the binary zero
370    ---------------------------- Test 41 ------------------------------
371    ./testdata/grepinput:595:before the binary zero
372    ./testdata/grepinput:597:after the binary zero
373    ---------------------------- Test 42 ------------------------------
374    595:before
375    596:zero
376    597:after
377    ---------------------------- Test 43 ------------------------------
378    595:before
379    596:zero
380    597:zero
381    ---------------------------- Test 44 ------------------------------
382    10:pattern
383    595:binary
384    596:binary
385    597:binary
386    ---------------------------- Test 45 ------------------------------
387    pcregrep: Error in 2nd command-line regex at offset 9: missing )
388    ---------------------------- Test 46 ------------------------------
389    AB.VE
390    ---------------------------- Test 47 ------------------------------
391    ABOVE the elephant
392    AB.VE
393    AB.VE the turtle
394    ---------------------------- Test 48 ------------------------------
395    ABOVE the elephant
396    AB.VE
397    AB.VE the turtle
398    PUT NEW DATA ABOVE THIS LINE.
399    ---------------------------- Test 49 ------------------------------
400    abc def
401    ghi
402    jkl
403    ---------------------------- Test 50 ------------------------------
404    def ---------------------------- Test 51 ------------------------------
405    ghi
406    jkl
407    
408    This is the last line of this file.
409    ---------------------------- Test 52 ------------------------------
410    def
411    ghi
412    jkl
413    
414    This is the last line of this file.
415    ---------------------------- Test 53 ------------------------------
416    ghi
417    jkl
418    
419    This is the last line of this file.
420    ---------------------------- Test 54 ------------------------------
421    44:abc 45:def
422    46:ghi
423    47:jkl

Legend:
Removed from v.81  
changed lines
  Added in v.93

  ViewVC Help
Powered by ViewVC 1.1.5