• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---------------------------- 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.
13608: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:608: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.
31608: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-605-PUT NEW DATA ABOVE THIS LINE.
327./testdata/grepinput-606-=============================
328./testdata/grepinput-607-
329./testdata/grepinput:608: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:608:Check up on PATTERN near the end.
352./testdata/grepinput-609-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
383RC=0
384======== STDERR ========
385pcregrep: pcre_exec() gave error -8 while matching this text:
386
387aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
388
389pcregrep: pcre_exec() gave error -8 while matching this text:
390
391aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
392
393pcregrep: Error -8 or -21 means that a resource limit was exceeded.
394pcregrep: Check your regex for nested unlimited loops.
395---------------------------- Test 38 ------------------------------
396This line contains a binary zero here >�< for testing.
397RC=0
398---------------------------- Test 39 ------------------------------
399This is a line before the binary zero.
400This line contains a binary zero here >�< for testing.
401RC=0
402---------------------------- Test 40 ------------------------------
403This line contains a binary zero here >�< for testing.
404This is a line after the binary zero.
405RC=0
406---------------------------- Test 41 ------------------------------
407before the binary zero
408after the binary zero
409RC=0
410---------------------------- Test 42 ------------------------------
411./testdata/grepinput:595:before the binary zero
412./testdata/grepinput:597:after the binary zero
413RC=0
414---------------------------- Test 43 ------------------------------
415595:before
416595:zero
417596:zero
418597:after
419597:zero
420RC=0
421---------------------------- Test 44 ------------------------------
422595:before
423595:zero
424596:zero
425597:zero
426RC=0
427---------------------------- Test 45 ------------------------------
42810:pattern
429595:binary
430596:binary
431597:binary
432RC=0
433---------------------------- Test 46 ------------------------------
434pcregrep: Error in 2nd command-line regex at offset 9: missing )
435RC=2
436---------------------------- Test 47 ------------------------------
437AB.VE
438RC=0
439---------------------------- Test 48 ------------------------------
440ABOVE the elephant
441AB.VE
442AB.VE the turtle
443RC=0
444---------------------------- Test 49 ------------------------------
445ABOVE the elephant
446AB.VE
447AB.VE the turtle
448PUT NEW DATA ABOVE THIS LINE.
449RC=0
450---------------------------- Test 50 ------------------------------
451RC=1
452---------------------------- Test 51 ------------------------------
453over the lazy dog.
454This time it jumps and jumps and jumps.
455RC=0
456---------------------------- Test 52 ------------------------------
457fox jumps
458This time it jumps and jumps and jumps.
459RC=0
460---------------------------- Test 53 ------------------------------
46136972,6
46236990,4
46337024,4
46437066,5
46537083,4
466RC=0
467---------------------------- Test 54 ------------------------------
468595:15,6
469595:33,4
470596:28,4
471597:15,5
472597:32,4
473RC=0
474---------------------------- Test 55 -----------------------------
475Here is the pattern again.
476That time it was on a line by itself.
477This line contains pattern not on a line by itself.
478RC=0
479---------------------------- Test 56 -----------------------------
480./testdata/grepinput:456
481./testdata/grepinput3:0
482./testdata/grepinput8:0
483./testdata/grepinputv:1
484./testdata/grepinputx:0
485RC=0
486---------------------------- Test 57 -----------------------------
487./testdata/grepinput:456
488./testdata/grepinputv:1
489RC=0
490---------------------------- Test 58 -----------------------------
491PATTERN at the start of a line.
492In the middle of a line, PATTERN appears.
493Check up on PATTERN near the end.
494RC=0
495---------------------------- Test 59 -----------------------------
496PATTERN at the start of a line.
497In the middle of a line, PATTERN appears.
498Check up on PATTERN near the end.
499RC=0
500---------------------------- Test 60 -----------------------------
501PATTERN at the start of a line.
502In the middle of a line, PATTERN appears.
503Check up on PATTERN near the end.
504RC=0
505---------------------------- Test 61 -----------------------------
506PATTERN at the start of a line.
507In the middle of a line, PATTERN appears.
508Check up on PATTERN near the end.
509RC=0
510---------------------------- Test 62 -----------------------------
511pcregrep: pcre_exec() gave error -8 while matching text that starts:
512
513This is a file of miscellaneous text that is used as test data for checking
514that the pcregrep command is working correctly. The file must be more than 24K
515long so that it needs more than a single read
516
517pcregrep: Error -8 or -21 means that a resource limit was exceeded.
518pcregrep: Check your regex for nested unlimited loops.
519RC=1
520---------------------------- Test 63 -----------------------------
521pcregrep: pcre_exec() gave error -21 while matching text that starts:
522
523This is a file of miscellaneous text that is used as test data for checking
524that the pcregrep command is working correctly. The file must be more than 24K
525long so that it needs more than a single read
526
527pcregrep: Error -8 or -21 means that a resource limit was exceeded.
528pcregrep: Check your regex for nested unlimited loops.
529RC=1
530---------------------------- Test 64 ------------------------------
531appears
532RC=0
533---------------------------- Test 65 ------------------------------
534pear
535RC=0
536---------------------------- Test 66 ------------------------------
537RC=0
538---------------------------- Test 67 ------------------------------
539RC=0
540---------------------------- Test 68 ------------------------------
541pear
542RC=0
543---------------------------- Test 69 -----------------------------
5441:This is a second file of input for the pcregrep tests.
5452:
5464:
5475:Pattern
5486:That time it was on a line by itself.
5497:
5508:To pat or not to pat, that is the question.
5519:
55210:complete pair
55311:of lines
55412:
55513:That was a complete pair
55614:of lines all by themselves.
55715:
55816:complete pair
55917:of lines
56018:
56119:And there they were again, to check line numbers.
56220:
56321:one
56422:two
56523:three
56624:four
56725:five
56826:six
56927:seven
57028:eight
57129:nine
57230:ten
57331:eleven
57432:twelve
57533:thirteen
57634:fourteen
57735:fifteen
57836:sixteen
57937:seventeen
58038:eighteen
58139:nineteen
58240:twenty
58341:
58443:This is the last line of this file.
585RC=0
586---------------------------- Test 70 -----------------------------
587triple:	t1_txt	s1_tag	s_txt	p_tag	p_txt	o_tag	o_txt
588
589triple:	t3_txt	s2_tag	s_txt	p_tag	p_txt	o_tag	o_txt
590
591triple:	t4_txt	s1_tag	s_txt	p_tag	p_txt	o_tag	o_txt
592
593triple:	t6_txt	s2_tag	s_txt	p_tag	p_txt	o_tag	o_txt
594
595RC=0
596