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

Contents of /code/trunk/testdata/grepoutput

Parent Directory Parent Directory | Revision Log Revision Log


Revision 279 - (hide annotations) (download)
Tue Dec 4 20:01:43 2007 UTC (6 years, 8 months ago) by ph10
File size: 10178 byte(s)
Fix -o bugs in pcregrep.

1 nigel 77 ---------------------------- 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     ---------------------------- Test 2 ------------------------------
6     PATTERN at the start of a line.
7     ---------------------------- Test 3 ------------------------------
8     7:PATTERN at the start of a line.
9     8:In the middle of a line, PATTERN appears.
10     10:This pattern is in lower case.
11 nigel 87 608:Check up on PATTERN near the end.
12 nigel 77 ---------------------------- Test 4 ------------------------------
13     4
14     ---------------------------- Test 5 ------------------------------
15     ./testdata/grepinput:7:PATTERN at the start of a line.
16     ./testdata/grepinput:8:In the middle of a line, PATTERN appears.
17     ./testdata/grepinput:10:This pattern is in lower case.
18 nigel 87 ./testdata/grepinput:608:Check up on PATTERN near the end.
19 nigel 77 ./testdata/grepinputx:3:Here is the pattern again.
20     ./testdata/grepinputx:5:Pattern
21     ---------------------------- Test 6 ------------------------------
22     7:PATTERN at the start of a line.
23     8:In the middle of a line, PATTERN appears.
24     10:This pattern is in lower case.
25 nigel 87 608:Check up on PATTERN near the end.
26 nigel 77 3:Here is the pattern again.
27     5:Pattern
28     ---------------------------- Test 7 ------------------------------
29     ./testdata/grepinput
30     ./testdata/grepinputx
31     ---------------------------- Test 8 ------------------------------
32     ./testdata/grepinput
33     ---------------------------- Test 9 ------------------------------
34     RC=0
35     ---------------------------- Test 10 -----------------------------
36     RC=1
37     ---------------------------- Test 11 -----------------------------
38     1:This is a second file of input for the pcregrep tests.
39     2:
40     4:
41     5:Pattern
42     6:That time it was on a line by itself.
43     7:
44     8:To pat or not to pat, that is the question.
45     9:
46     10:complete pair
47     11:of lines
48     12:
49     13:That was a complete pair
50     14:of lines all by themselves.
51     15:
52     16:complete pair
53     17:of lines
54     18:
55     19:And there they were again, to check line numbers.
56     20:
57     21:one
58     22:two
59     23:three
60     24:four
61     25:five
62     26:six
63     27:seven
64     28:eight
65     29:nine
66     30:ten
67     31:eleven
68     32:twelve
69     33:thirteen
70     34:fourteen
71     35:fifteen
72     36:sixteen
73     37:seventeen
74     38:eighteen
75     39:nineteen
76     40:twenty
77     41:
78 ph10 158 42:This is the last line of this file.
79 nigel 77 ---------------------------- Test 12 -----------------------------
80     Pattern
81     ---------------------------- Test 13 -----------------------------
82     Here is the pattern again.
83     That time it was on a line by itself.
84     ---------------------------- Test 14 -----------------------------
85     ./testdata/grepinputx:To pat or not to pat, that is the question.
86     ---------------------------- Test 15 -----------------------------
87 nigel 87 pcregrep: Error in command-line regex at offset 4: nothing to repeat
88 nigel 77 ---------------------------- Test 16 -----------------------------
89     pcregrep: Failed to open ./testdata/nonexistfile: No such file or directory
90     ---------------------------- Test 17 -----------------------------
91     features should be added at the end, because some of the tests involve the
92     output of line numbers, and we don't want these to change.
93     ---------------------------- Test 18 -----------------------------
94     4:features should be added at the end, because some of the tests involve the
95     output of line numbers, and we don't want these to change.
96     583:brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
97     -------------------------------------------------------------------------------
98     ---------------------------- Test 19 -----------------------------
99     Pattern
100     ---------------------------- Test 20 -----------------------------
101     10:complete pair
102     of lines
103     16:complete pair
104     of lines
105     ---------------------------- Test 21 -----------------------------
106     24:four
107     25-five
108     26-six
109     27-seven
110     --
111     34:fourteen
112     35-fifteen
113     36-sixteen
114     37-seventeen
115     ---------------------------- Test 22 -----------------------------
116 nigel 87 21-one
117     22-two
118     23-three
119 nigel 77 24:four
120     --
121 nigel 87 31-eleven
122     32-twelve
123     33-thirteen
124 nigel 77 34:fourteen
125     ---------------------------- Test 23 -----------------------------
126     one
127     two
128     three
129     four
130     five
131     six
132     seven
133     --
134     eleven
135     twelve
136     thirteen
137     fourteen
138     fifteen
139     sixteen
140     seventeen
141     ---------------------------- Test 24 -----------------------------
142     four
143     five
144     six
145     seven
146     eight
147     nine
148     ten
149     eleven
150     twelve
151     thirteen
152     fourteen
153     fifteen
154     sixteen
155     seventeen
156     eighteen
157     nineteen
158     twenty
159    
160 ph10 158 This is the last line of this file.
161 nigel 77 ---------------------------- Test 25 -----------------------------
162 nigel 87 15-
163     16-complete pair
164     17-of lines
165     18-
166     19-And there they were again, to check line numbers.
167     20-
168     21-one
169     22-two
170     23-three
171 nigel 77 24:four
172     25-five
173     26-six
174     27-seven
175     28-eight
176     29-nine
177     30-ten
178     31-eleven
179     32-twelve
180     33-thirteen
181     34:fourteen
182     ---------------------------- Test 26 -----------------------------
183    
184     complete pair
185     of lines
186    
187     And there they were again, to check line numbers.
188    
189     one
190     two
191     three
192     four
193     five
194     six
195     seven
196     eight
197     nine
198     ten
199     eleven
200     twelve
201     thirteen
202     fourteen
203     fifteen
204     sixteen
205     seventeen
206     eighteen
207     nineteen
208     twenty
209    
210 ph10 158 This is the last line of this file.
211 nigel 77 ---------------------------- Test 27 -----------------------------
212     four
213     five
214     six
215     seven
216     eight
217     nine
218     ten
219     eleven
220     twelve
221     thirteen
222     fourteen
223     fifteen
224     sixteen
225     seventeen
226     eighteen
227     nineteen
228     twenty
229    
230 ph10 158 This is the last line of this file.
231 nigel 77 ---------------------------- Test 28 -----------------------------
232 nigel 87 14-of lines all by themselves.
233     15-
234     16-complete pair
235     17-of lines
236     18-
237     19-And there they were again, to check line numbers.
238     20-
239     21-one
240     22-two
241     23-three
242 nigel 77 24:four
243     25-five
244     26-six
245     27-seven
246     28-eight
247     29-nine
248     30-ten
249     31-eleven
250     32-twelve
251     33-thirteen
252     34:fourteen
253     ---------------------------- Test 29 -----------------------------
254     of lines all by themselves.
255    
256     complete pair
257     of lines
258    
259     And there they were again, to check line numbers.
260    
261     one
262     two
263     three
264     four
265     five
266     six
267     seven
268     eight
269     nine
270     ten
271     eleven
272     twelve
273     thirteen
274     fourteen
275     fifteen
276     sixteen
277     seventeen
278     eighteen
279     nineteen
280     twenty
281    
282 ph10 158 This is the last line of this file.
283 nigel 77 ---------------------------- Test 30 -----------------------------
284 nigel 87 ./testdata/grepinput-4-features should be added at the end, because some of the tests involve the
285     ./testdata/grepinput-5-output of line numbers, and we don't want these to change.
286     ./testdata/grepinput-6-
287 nigel 77 ./testdata/grepinput:7:PATTERN at the start of a line.
288     ./testdata/grepinput:8:In the middle of a line, PATTERN appears.
289     ./testdata/grepinput-9-
290     ./testdata/grepinput:10:This pattern is in lower case.
291     --
292 nigel 87 ./testdata/grepinput-605-PUT NEW DATA ABOVE THIS LINE.
293     ./testdata/grepinput-606-=============================
294     ./testdata/grepinput-607-
295     ./testdata/grepinput:608:Check up on PATTERN near the end.
296 nigel 77 --
297     ./testdata/grepinputx-1-This is a second file of input for the pcregrep tests.
298     ./testdata/grepinputx-2-
299     ./testdata/grepinputx:3:Here is the pattern again.
300     ./testdata/grepinputx-4-
301     ./testdata/grepinputx:5:Pattern
302     ---------------------------- Test 31 -----------------------------
303     ./testdata/grepinput:7:PATTERN at the start of a line.
304     ./testdata/grepinput:8:In the middle of a line, PATTERN appears.
305     ./testdata/grepinput-9-
306     ./testdata/grepinput:10:This pattern is in lower case.
307     ./testdata/grepinput-11-
308     ./testdata/grepinput-12-Here follows a whole lot of stuff that makes the file over 24K long.
309     ./testdata/grepinput-13-
310     --
311 nigel 87 ./testdata/grepinput:608:Check up on PATTERN near the end.
312     ./testdata/grepinput-609-This is the last line of this file.
313 nigel 77 --
314     ./testdata/grepinputx:3:Here is the pattern again.
315     ./testdata/grepinputx-4-
316     ./testdata/grepinputx:5:Pattern
317     ./testdata/grepinputx-6-That time it was on a line by itself.
318     ./testdata/grepinputx-7-
319     ./testdata/grepinputx-8-To pat or not to pat, that is the question.
320     ---------------------------- Test 32 -----------------------------
321     ./testdata/grepinputx
322     ---------------------------- Test 33 -----------------------------
323     pcregrep: Failed to open ./testdata/grepnonexist: No such file or directory
324     RC=2
325     ---------------------------- Test 34 -----------------------------
326     RC=2
327     ---------------------------- Test 35 -----------------------------
328     ./testdata/grepinputx
329     RC=0
330     ---------------------------- Test 36 -----------------------------
331 ph10 97 ./testdata/grepinput8
332 nigel 77 ./testdata/grepinputx
333     RC=0
334 nigel 87 ---------------------------- Test 37 -----------------------------
335     aaaaa0
336     aaaaa2
337     RC=0
338     ======== STDERR ========
339     pcregrep: pcre_exec() error -8 while matching this line:
340     aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
341     pcregrep: error -8 means that a resource limit was exceeded
342     pcregrep: check your regex for nested unlimited loops
343     pcregrep: pcre_exec() error -8 while matching this line:
344     aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
345     ---------------------------- Test 38 ------------------------------
346     This line contains a binary zero here >
347     ---------------------------- Test 39 ------------------------------
348     This is a line before the binary zero.
349     This line contains a binary zero here >
350     ---------------------------- Test 40 ------------------------------
351     This line contains a binary zero here >
352     This is a line after the binary zero.
353     ---------------------------- Test 41 ------------------------------
354     before the binary zero
355     after the binary zero
356     ---------------------------- Test 41 ------------------------------
357     ./testdata/grepinput:595:before the binary zero
358     ./testdata/grepinput:597:after the binary zero
359     ---------------------------- Test 42 ------------------------------
360     595:before
361 ph10 279 595:zero
362 nigel 87 596:zero
363     597:after
364 ph10 279 597:zero
365 nigel 87 ---------------------------- Test 43 ------------------------------
366     595:before
367 ph10 279 595:zero
368 nigel 87 596:zero
369     597:zero
370     ---------------------------- Test 44 ------------------------------
371     10:pattern
372     595:binary
373     596:binary
374     597:binary
375     ---------------------------- Test 45 ------------------------------
376     pcregrep: Error in 2nd command-line regex at offset 9: missing )
377     ---------------------------- Test 46 ------------------------------
378     AB.VE
379     ---------------------------- Test 47 ------------------------------
380     ABOVE the elephant
381     AB.VE
382     AB.VE the turtle
383     ---------------------------- Test 48 ------------------------------
384     ABOVE the elephant
385     AB.VE
386     AB.VE the turtle
387     PUT NEW DATA ABOVE THIS LINE.
388 nigel 91 ---------------------------- Test 49 ------------------------------
389 ph10 222 ---------------------------- Test 50 ------------------------------
390     over the lazy dog.
391 ph10 239 ---------------------------- Test 51 ------------------------------
392     fox jumps

Properties

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12