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

Contents of /code/trunk/testdata/grepoutput

Parent Directory Parent Directory | Revision Log Revision Log


Revision 91 - (hide annotations) (download)
Sat Feb 24 21:41:34 2007 UTC (7 years, 5 months ago) by nigel
File size: 10440 byte(s)
Load pcre-6.7 into code/trunk.

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12