blob: 9b3fb296d139490a9ff6987b832f0e8c846cf79f [file] [log] [blame]
Tristan Matthews04616462013-11-14 16:09:34 -05001---------------------------- Test 1 ------------------------------
2PATTERN at the start of a line.
3In the middle of a line, PATTERN appears.
4Check up on PATTERN near the end.
5RC=0
6---------------------------- Test 2 ------------------------------
7PATTERN at the start of a line.
8RC=0
9---------------------------- Test 3 ------------------------------
107:PATTERN at the start of a line.
118:In the middle of a line, PATTERN appears.
1210:This pattern is in lower case.
13610:Check up on PATTERN near the end.
14RC=0
15---------------------------- Test 4 ------------------------------
164
17RC=0
18---------------------------- Test 5 ------------------------------
19./testdata/grepinput:7:PATTERN at the start of a line.
20./testdata/grepinput:8:In the middle of a line, PATTERN appears.
21./testdata/grepinput:10:This pattern is in lower case.
22./testdata/grepinput:610:Check up on PATTERN near the end.
23./testdata/grepinputx:3:Here is the pattern again.
24./testdata/grepinputx:5:Pattern
25./testdata/grepinputx:42:This line contains pattern not on a line by itself.
26RC=0
27---------------------------- Test 6 ------------------------------
287:PATTERN at the start of a line.
298:In the middle of a line, PATTERN appears.
3010:This pattern is in lower case.
31610:Check up on PATTERN near the end.
323:Here is the pattern again.
335:Pattern
3442:This line contains pattern not on a line by itself.
35RC=0
36---------------------------- Test 7 ------------------------------
37./testdata/grepinput
38./testdata/grepinputx
39RC=0
40---------------------------- Test 8 ------------------------------
41./testdata/grepinput
42RC=0
43---------------------------- Test 9 ------------------------------
44RC=0
45---------------------------- Test 10 -----------------------------
46RC=1
47---------------------------- Test 11 -----------------------------
481:This is a second file of input for the pcregrep tests.
492:
504:
515:Pattern
526:That time it was on a line by itself.
537:
548:To pat or not to pat, that is the question.
559:
5610:complete pair
5711:of lines
5812:
5913:That was a complete pair
6014:of lines all by themselves.
6115:
6216:complete pair
6317:of lines
6418:
6519:And there they were again, to check line numbers.
6620:
6721:one
6822:two
6923:three
7024:four
7125:five
7226:six
7327:seven
7428:eight
7529:nine
7630:ten
7731:eleven
7832:twelve
7933:thirteen
8034:fourteen
8135:fifteen
8236:sixteen
8337:seventeen
8438:eighteen
8539:nineteen
8640:twenty
8741:
8843:This is the last line of this file.
89RC=0
90---------------------------- Test 12 -----------------------------
91Pattern
92RC=0
93---------------------------- Test 13 -----------------------------
94Here is the pattern again.
95That time it was on a line by itself.
96This line contains pattern not on a line by itself.
97RC=0
98---------------------------- Test 14 -----------------------------
99./testdata/grepinputx:To pat or not to pat, that is the question.
100RC=0
101---------------------------- Test 15 -----------------------------
102pcregrep: Error in command-line regex at offset 4: nothing to repeat
103RC=2
104---------------------------- Test 16 -----------------------------
105pcregrep: Failed to open ./testdata/nonexistfile: No such file or directory
106RC=2
107---------------------------- Test 17 -----------------------------
108features should be added at the end, because some of the tests involve the
109output of line numbers, and we don't want these to change.
110RC=0
111---------------------------- Test 18 -----------------------------
1124:features should be added at the end, because some of the tests involve the
113output of line numbers, and we don't want these to change.
114583:brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
115-------------------------------------------------------------------------------
116RC=0
117---------------------------- Test 19 -----------------------------
118Pattern
119RC=0
120---------------------------- Test 20 -----------------------------
12110:complete pair
122of lines
12316:complete pair
124of lines
125RC=0
126---------------------------- Test 21 -----------------------------
12724:four
12825-five
12926-six
13027-seven
131--
13234:fourteen
13335-fifteen
13436-sixteen
13537-seventeen
136RC=0
137---------------------------- Test 22 -----------------------------
13821-one
13922-two
14023-three
14124:four
142--
14331-eleven
14432-twelve
14533-thirteen
14634:fourteen
147RC=0
148---------------------------- Test 23 -----------------------------
149one
150two
151three
152four
153five
154six
155seven
156--
157eleven
158twelve
159thirteen
160fourteen
161fifteen
162sixteen
163seventeen
164RC=0
165---------------------------- Test 24 -----------------------------
166four
167five
168six
169seven
170eight
171nine
172ten
173eleven
174twelve
175thirteen
176fourteen
177fifteen
178sixteen
179seventeen
180eighteen
181nineteen
182twenty
183
184This line contains pattern not on a line by itself.
185This is the last line of this file.
186RC=0
187---------------------------- Test 25 -----------------------------
18815-
18916-complete pair
19017-of lines
19118-
19219-And there they were again, to check line numbers.
19320-
19421-one
19522-two
19623-three
19724:four
19825-five
19926-six
20027-seven
20128-eight
20229-nine
20330-ten
20431-eleven
20532-twelve
20633-thirteen
20734:fourteen
208RC=0
209---------------------------- Test 26 -----------------------------
210
211complete pair
212of lines
213
214And there they were again, to check line numbers.
215
216one
217two
218three
219four
220five
221six
222seven
223eight
224nine
225ten
226eleven
227twelve
228thirteen
229fourteen
230fifteen
231sixteen
232seventeen
233eighteen
234nineteen
235twenty
236
237This line contains pattern not on a line by itself.
238This is the last line of this file.
239RC=0
240---------------------------- Test 27 -----------------------------
241four
242five
243six
244seven
245eight
246nine
247ten
248eleven
249twelve
250thirteen
251fourteen
252fifteen
253sixteen
254seventeen
255eighteen
256nineteen
257twenty
258
259This line contains pattern not on a line by itself.
260This is the last line of this file.
261RC=0
262---------------------------- Test 28 -----------------------------
26314-of lines all by themselves.
26415-
26516-complete pair
26617-of lines
26718-
26819-And there they were again, to check line numbers.
26920-
27021-one
27122-two
27223-three
27324:four
27425-five
27526-six
27627-seven
27728-eight
27829-nine
27930-ten
28031-eleven
28132-twelve
28233-thirteen
28334:fourteen
284RC=0
285---------------------------- Test 29 -----------------------------
286of lines all by themselves.
287
288complete pair
289of lines
290
291And there they were again, to check line numbers.
292
293one
294two
295three
296four
297five
298six
299seven
300eight
301nine
302ten
303eleven
304twelve
305thirteen
306fourteen
307fifteen
308sixteen
309seventeen
310eighteen
311nineteen
312twenty
313
314This line contains pattern not on a line by itself.
315This is the last line of this file.
316RC=0
317---------------------------- Test 30 -----------------------------
318./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.
320./testdata/grepinput-6-
321./testdata/grepinput:7:PATTERN at the start of a line.
322./testdata/grepinput:8:In the middle of a line, PATTERN appears.
323./testdata/grepinput-9-
324./testdata/grepinput:10:This pattern is in lower case.
325--
326./testdata/grepinput-607-PUT NEW DATA ABOVE THIS LINE.
327./testdata/grepinput-608-=============================
328./testdata/grepinput-609-
329./testdata/grepinput:610:Check up on PATTERN near the end.
330--
331./testdata/grepinputx-1-This is a second file of input for the pcregrep tests.
332./testdata/grepinputx-2-
333./testdata/grepinputx:3:Here is the pattern again.
334./testdata/grepinputx-4-
335./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.
341RC=0
342---------------------------- Test 31 -----------------------------
343./testdata/grepinput:7:PATTERN at the start of a line.
344./testdata/grepinput:8:In the middle of a line, PATTERN appears.
345./testdata/grepinput-9-
346./testdata/grepinput:10:This pattern is in lower case.
347./testdata/grepinput-11-
348./testdata/grepinput-12-Here follows a whole lot of stuff that makes the file over 24K long.
349./testdata/grepinput-13-
350--
351./testdata/grepinput:610:Check up on PATTERN near the end.
352./testdata/grepinput-611-This is the last line of this file.
353--
354./testdata/grepinputx:3:Here is the pattern again.
355./testdata/grepinputx-4-
356./testdata/grepinputx:5:Pattern
357./testdata/grepinputx-6-That time it was on a line by itself.
358./testdata/grepinputx-7-
359./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.
363RC=0
364---------------------------- Test 32 -----------------------------
365./testdata/grepinputx
366RC=0
367---------------------------- Test 33 -----------------------------
368pcregrep: Failed to open ./testdata/grepnonexist: No such file or directory
369RC=2
370---------------------------- Test 34 -----------------------------
371RC=2
372---------------------------- Test 35 -----------------------------
373./testdata/grepinputx
374RC=0
375---------------------------- Test 36 -----------------------------
376./testdata/grepinput3
377./testdata/grepinput8
378./testdata/grepinputx
379RC=0
380---------------------------- Test 37 -----------------------------
381aaaaa0
382aaaaa2
383010203040506
384RC=0
385======== STDERR ========
386pcregrep: pcre_exec() gave error -8 while matching this text:
387
388aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
389
390pcregrep: pcre_exec() gave error -8 while matching this text:
391
392aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
393
394pcregrep: Error -8, -21 or -27 means that a resource limit was exceeded.
395pcregrep: Check your regex for nested unlimited loops.
396---------------------------- Test 38 ------------------------------
397This line contains a binary zero here >�< for testing.
398RC=0
399---------------------------- Test 39 ------------------------------
400This is a line before the binary zero.
401This line contains a binary zero here >�< for testing.
402RC=0
403---------------------------- Test 40 ------------------------------
404This line contains a binary zero here >�< for testing.
405This is a line after the binary zero.
406RC=0
407---------------------------- Test 41 ------------------------------
408before the binary zero
409after the binary zero
410RC=0
411---------------------------- Test 42 ------------------------------
412./testdata/grepinput:595:before the binary zero
413./testdata/grepinput:597:after the binary zero
414RC=0
415---------------------------- Test 43 ------------------------------
416595:before
417595:zero
418596:zero
419597:after
420597:zero
421RC=0
422---------------------------- Test 44 ------------------------------
423595:before
424595:zero
425596:zero
426597:zero
427RC=0
428---------------------------- Test 45 ------------------------------
42910:pattern
430595:binary
431596:binary
432597:binary
433RC=0
434---------------------------- Test 46 ------------------------------
435pcregrep: Error in 2nd command-line regex at offset 9: missing )
436RC=2
437---------------------------- Test 47 ------------------------------
438AB.VE
439RC=0
440---------------------------- Test 48 ------------------------------
441ABOVE the elephant
442AB.VE
443AB.VE the turtle
444RC=0
445---------------------------- Test 49 ------------------------------
446ABOVE the elephant
447AB.VE
448AB.VE the turtle
449PUT NEW DATA ABOVE THIS LINE.
450RC=0
451---------------------------- Test 50 ------------------------------
452RC=1
453---------------------------- Test 51 ------------------------------
454over the lazy dog.
455This time it jumps and jumps and jumps.
456RC=0
457---------------------------- Test 52 ------------------------------
458fox jumps
459This time it jumps and jumps and jumps.
460RC=0
461---------------------------- Test 53 ------------------------------
46236972,6
46336990,4
46437024,4
46537066,5
46637083,4
467RC=0
468---------------------------- Test 54 ------------------------------
469595:15,6
470595:33,4
471596:28,4
472597:15,5
473597:32,4
474RC=0
475---------------------------- Test 55 -----------------------------
476Here is the pattern again.
477That time it was on a line by itself.
478This line contains pattern not on a line by itself.
479RC=0
480---------------------------- Test 56 -----------------------------
481./testdata/grepinput:456
482./testdata/grepinput3:0
483./testdata/grepinput8:0
484./testdata/grepinputv:1
485./testdata/grepinputx:0
486RC=0
487---------------------------- Test 57 -----------------------------
488./testdata/grepinput:456
489./testdata/grepinputv:1
490RC=0
491---------------------------- Test 58 -----------------------------
492PATTERN at the start of a line.
493In the middle of a line, PATTERN appears.
494Check up on PATTERN near the end.
495RC=0
496---------------------------- Test 59 -----------------------------
497PATTERN at the start of a line.
498In the middle of a line, PATTERN appears.
499Check up on PATTERN near the end.
500RC=0
501---------------------------- Test 60 -----------------------------
502PATTERN at the start of a line.
503In the middle of a line, PATTERN appears.
504Check up on PATTERN near the end.
505RC=0
506---------------------------- Test 61 -----------------------------
507PATTERN at the start of a line.
508In the middle of a line, PATTERN appears.
509Check up on PATTERN near the end.
510RC=0
511---------------------------- Test 62 -----------------------------
512pcregrep: pcre_exec() gave error -8 while matching text that starts:
513
514This is a file of miscellaneous text that is used as test data for checking
515that the pcregrep command is working correctly. The file must be more than 24K
516long so that it needs more than a single read
517
518pcregrep: Error -8, -21 or -27 means that a resource limit was exceeded.
519pcregrep: Check your regex for nested unlimited loops.
520RC=1
521---------------------------- Test 63 -----------------------------
522pcregrep: pcre_exec() gave error -21 while matching text that starts:
523
524This is a file of miscellaneous text that is used as test data for checking
525that the pcregrep command is working correctly. The file must be more than 24K
526long so that it needs more than a single read
527
528pcregrep: Error -8, -21 or -27 means that a resource limit was exceeded.
529pcregrep: Check your regex for nested unlimited loops.
530RC=1
531---------------------------- Test 64 ------------------------------
532appears
533RC=0
534---------------------------- Test 65 ------------------------------
535pear
536RC=0
537---------------------------- Test 66 ------------------------------
538RC=0
539---------------------------- Test 67 ------------------------------
540RC=0
541---------------------------- Test 68 ------------------------------
542pear
543RC=0
544---------------------------- Test 69 -----------------------------
5451:This is a second file of input for the pcregrep tests.
5462:
5474:
5485:Pattern
5496:That time it was on a line by itself.
5507:
5518:To pat or not to pat, that is the question.
5529:
55310:complete pair
55411:of lines
55512:
55613:That was a complete pair
55714:of lines all by themselves.
55815:
55916:complete pair
56017:of lines
56118:
56219:And there they were again, to check line numbers.
56320:
56421:one
56522:two
56623:three
56724:four
56825:five
56926:six
57027:seven
57128:eight
57229:nine
57330:ten
57431:eleven
57532:twelve
57633:thirteen
57734:fourteen
57835:fifteen
57936:sixteen
58037:seventeen
58138:eighteen
58239:nineteen
58340:twenty
58441:
58543:This is the last line of this file.
586RC=0
587---------------------------- Test 70 -----------------------------
588triple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt
589
590triple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt
591
592triple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt
593
594triple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt
595
596RC=0
597---------------------------- Test 71 -----------------------------
59801
599RC=0
600---------------------------- Test 72 -----------------------------
601010203040506
602RC=0
603---------------------------- Test 73 -----------------------------
60401
605RC=0
606---------------------------- Test 74 -----------------------------
60701
60802
609RC=0
610---------------------------- Test 75 -----------------------------
611010203040506
612RC=0
613---------------------------- Test 76 -----------------------------
61401
61502
616RC=0
617---------------------------- Test 77 -----------------------------
61801
61903
620RC=0
621---------------------------- Test 78 -----------------------------
622010203040506
623RC=0
624---------------------------- Test 79 -----------------------------
62501
62603
627RC=0
628---------------------------- Test 80 -----------------------------
62901
630RC=0
631---------------------------- Test 81 -----------------------------
632010203040506
633RC=0
634---------------------------- Test 82 -----------------------------
63501
636RC=0
637---------------------------- Test 83 -----------------------------
638pcregrep: line 4 of file ./testdata/grepinput3 is too long for the internal buffer
639pcregrep: check the --buffer-size option
640RC=2