1 ---------------------------- 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.
6 ---------------------------- Test 2 ------------------------------
7 PATTERN at the start of a line.
9 ---------------------------- Test 3 ------------------------------
10 7:PATTERN at the start of a line.
11 8:In the middle of a line, PATTERN appears.
12 10:This pattern is in lower case.
13 610:Check up on PATTERN near the end.
15 ---------------------------- Test 4 ------------------------------
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.
27 ---------------------------- Test 6 ------------------------------
28 7:PATTERN at the start of a line.
29 8:In the middle of a line, PATTERN appears.
30 10:This pattern is in lower case.
31 610:Check up on PATTERN near the end.
32 3:Here is the pattern again.
34 42:This line contains pattern not on a line by itself.
36 ---------------------------- Test 7 ------------------------------
40 ---------------------------- Test 8 ------------------------------
43 ---------------------------- Test 9 ------------------------------
45 ---------------------------- Test 10 -----------------------------
47 ---------------------------- Test 11 -----------------------------
48 1:This is a second file of input for the pcregrep tests.
52 6:That time it was on a line by itself.
54 8:To pat or not to pat, that is the question.
59 13:That was a complete pair
60 14:of lines all by themselves.
65 19:And there they were again, to check line numbers.
88 43:This is the last line of this file.
90 ---------------------------- Test 12 -----------------------------
93 ---------------------------- Test 13 -----------------------------
94 Here is the pattern again.
95 That time it was on a line by itself.
96 This line contains pattern not on a line by itself.
98 ---------------------------- Test 14 -----------------------------
99 ./testdata/grepinputx:To pat or not to pat, that is the question.
101 ---------------------------- Test 15 -----------------------------
102 pcregrep: Error in command-line regex at offset 4: nothing to repeat
104 ---------------------------- Test 16 -----------------------------
105 pcregrep: Failed to open ./testdata/nonexistfile: No such file or directory
107 ---------------------------- Test 17 -----------------------------
108 features should be added at the end, because some of the tests involve the
109 output of line numbers, and we don't want these to change.
111 ---------------------------- Test 18 -----------------------------
112 4:features should be added at the end, because some of the tests involve the
113 output of line numbers, and we don't want these to change.
114 583:brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
115 -------------------------------------------------------------------------------
117 ---------------------------- Test 19 -----------------------------
120 ---------------------------- Test 20 -----------------------------
126 ---------------------------- Test 21 -----------------------------
137 ---------------------------- Test 22 -----------------------------
148 ---------------------------- Test 23 -----------------------------
165 ---------------------------- Test 24 -----------------------------
184 This line contains pattern not on a line by itself.
185 This is the last line of this file.
187 ---------------------------- Test 25 -----------------------------
192 19-And there they were again, to check line numbers.
209 ---------------------------- Test 26 -----------------------------
214 And there they were again, to check line numbers.
237 This line contains pattern not on a line by itself.
238 This is the last line of this file.
240 ---------------------------- Test 27 -----------------------------
259 This line contains pattern not on a line by itself.
260 This is the last line of this file.
262 ---------------------------- Test 28 -----------------------------
263 14-of lines all by themselves.
268 19-And there they were again, to check line numbers.
285 ---------------------------- Test 29 -----------------------------
286 of lines all by themselves.
291 And there they were again, to check line numbers.
314 This line contains pattern not on a line by itself.
315 This is the last line of this file.
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.
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.
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
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.
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-
351 ./testdata/grepinput:610:Check up on PATTERN near the end.
352 ./testdata/grepinput-611-This is the last line of this file.
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.
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.
364 ---------------------------- Test 32 -----------------------------
365 ./testdata/grepinputx
367 ---------------------------- Test 33 -----------------------------
368 pcregrep: Failed to open ./testdata/grepnonexist: No such file or directory
370 ---------------------------- Test 34 -----------------------------
372 ---------------------------- Test 35 -----------------------------
373 ./testdata/grepinputx
375 ---------------------------- Test 36 -----------------------------
376 ./testdata/grepinput3
377 ./testdata/grepinput8
378 ./testdata/grepinputx
380 ---------------------------- Test 37 -----------------------------
385 ======== STDERR ========
386 pcregrep: pcre_exec() gave error -8 while matching this text:
388 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
390 pcregrep: pcre_exec() gave error -8 while matching this text:
392 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
394 pcregrep: Error -8, -21 or -27 means that a resource limit was exceeded.
395 pcregrep: Check your regex for nested unlimited loops.
396 ---------------------------- Test 38 ------------------------------
397 This line contains a binary zero here >
\0< for testing.
399 ---------------------------- Test 39 ------------------------------
400 This is a line before the binary zero.
401 This line contains a binary zero here >
\0< for testing.
403 ---------------------------- Test 40 ------------------------------
404 This line contains a binary zero here >
\0< for testing.
405 This is a line after the binary zero.
407 ---------------------------- Test 41 ------------------------------
408 before the binary zero
409 after the binary zero
411 ---------------------------- Test 42 ------------------------------
412 ./testdata/grepinput:595:before the binary zero
413 ./testdata/grepinput:597:after the binary zero
415 ---------------------------- Test 43 ------------------------------
422 ---------------------------- Test 44 ------------------------------
428 ---------------------------- Test 45 ------------------------------
434 ---------------------------- Test 46 ------------------------------
435 pcregrep: Error in 2nd command-line regex at offset 9: missing )
437 ---------------------------- Test 47 ------------------------------
440 ---------------------------- Test 48 ------------------------------
445 ---------------------------- Test 49 ------------------------------
449 PUT NEW DATA ABOVE THIS LINE.
451 ---------------------------- Test 50 ------------------------------
453 ---------------------------- Test 51 ------------------------------
455 This time it jumps and jumps and jumps.
457 ---------------------------- Test 52 ------------------------------
458 fox
\e[1;31mjumps
\e[00m
459 This time it
\e[1;31mjumps
\e[00m and
\e[1;31mjumps
\e[00m and
\e[1;31mjumps
\e[00m.
461 ---------------------------- Test 53 ------------------------------
468 ---------------------------- Test 54 ------------------------------
475 ---------------------------- Test 55 -----------------------------
476 Here is the
\e[1;31mpattern
\e[00m again.
477 That time it was on a
\e[1;31mline by itself
\e[00m.
478 This line contains
\e[1;31mpattern
\e[00m not on a
\e[1;31mline by itself
\e[00m.
480 ---------------------------- Test 56 -----------------------------
481 ./testdata/grepinput:456
482 ./testdata/grepinput3:0
483 ./testdata/grepinput8:0
484 ./testdata/grepinputv:1
485 ./testdata/grepinputx:0
487 ---------------------------- Test 57 -----------------------------
488 ./testdata/grepinput:456
489 ./testdata/grepinputv:1
491 ---------------------------- Test 58 -----------------------------
492 PATTERN at the start of a line.
493 In the middle of a line, PATTERN appears.
494 Check up on PATTERN near the end.
496 ---------------------------- Test 59 -----------------------------
497 PATTERN at the start of a line.
498 In the middle of a line, PATTERN appears.
499 Check up on PATTERN near the end.
501 ---------------------------- Test 60 -----------------------------
502 PATTERN at the start of a line.
503 In the middle of a line, PATTERN appears.
504 Check up on PATTERN near the end.
506 ---------------------------- Test 61 -----------------------------
507 PATTERN at the start of a line.
508 In the middle of a line, PATTERN appears.
509 Check up on PATTERN near the end.
511 ---------------------------- Test 62 -----------------------------
512 pcregrep: pcre_exec() gave error -8 while matching text that starts:
514 This is a file of miscellaneous text that is used as test data for checking
515 that the pcregrep command is working correctly. The file must be more than 24K
516 long so that it needs more than a single read
518 pcregrep: Error -8, -21 or -27 means that a resource limit was exceeded.
519 pcregrep: Check your regex for nested unlimited loops.
521 ---------------------------- Test 63 -----------------------------
522 pcregrep: pcre_exec() gave error -21 while matching text that starts:
524 This is a file of miscellaneous text that is used as test data for checking
525 that the pcregrep command is working correctly. The file must be more than 24K
526 long so that it needs more than a single read
528 pcregrep: Error -8, -21 or -27 means that a resource limit was exceeded.
529 pcregrep: Check your regex for nested unlimited loops.
531 ---------------------------- Test 64 ------------------------------
534 ---------------------------- Test 65 ------------------------------
537 ---------------------------- Test 66 ------------------------------
539 ---------------------------- Test 67 ------------------------------
541 ---------------------------- Test 68 ------------------------------
544 ---------------------------- Test 69 -----------------------------
545 1:This is a second file of input for the pcregrep tests.
549 6:That time it was on a line by itself.
551 8:To pat or not to pat, that is the question.
556 13:That was a complete pair
557 14:of lines all by themselves.
562 19:And there they were again, to check line numbers.
585 43:This is the last line of this file.
587 ---------------------------- Test 70 -----------------------------
588 \e[1;31mtriple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt
590 \e[00m
\e[1;31mtriple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt
592 \e[00m
\e[1;31mtriple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt
594 \e[00m
\e[1;31mtriple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt
597 ---------------------------- Test 71 -----------------------------
600 ---------------------------- Test 72 -----------------------------
601 \e[1;31m01
\e[00m0203040506
603 ---------------------------- Test 73 -----------------------------
606 ---------------------------- Test 74 -----------------------------
610 ---------------------------- Test 75 -----------------------------
611 \e[1;31m01
\e[00m
\e[1;31m02
\e[00m03040506
613 ---------------------------- Test 76 -----------------------------
617 ---------------------------- Test 77 -----------------------------
621 ---------------------------- Test 78 -----------------------------
622 \e[1;31m01
\e[00m02
\e[1;31m03
\e[00m040506
624 ---------------------------- Test 79 -----------------------------
628 ---------------------------- Test 80 -----------------------------
631 ---------------------------- Test 81 -----------------------------
632 \e[1;31m01
\e[00m0203040506
634 ---------------------------- Test 82 -----------------------------
637 ---------------------------- Test 83 -----------------------------
638 pcregrep: line 4 of file ./testdata/grepinput3 is too long for the internal buffer
639 pcregrep: check the --buffer-size option