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.
97 This line contains pattern not on a line by itself.
99 ---------------------------- Test 14 -----------------------------
100 ./testdata/grepinputx:To pat or not to pat, that is the question.
102 ---------------------------- Test 15 -----------------------------
103 pcregrep: Error in command-line regex at offset 4: nothing to repeat
105 ---------------------------- Test 16 -----------------------------
106 pcregrep: Failed to open ./testdata/nonexistfile: No such file or directory
108 ---------------------------- Test 17 -----------------------------
109 features should be added at the end, because some of the tests involve the
110 output of line numbers, and we don't want these to change.
112 ---------------------------- Test 18 -----------------------------
113 4:features should be added at the end, because some of the tests involve the
114 output of line numbers, and we don't want these to change.
115 583:brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
116 -------------------------------------------------------------------------------
118 ---------------------------- Test 19 -----------------------------
121 ---------------------------- Test 20 -----------------------------
127 ---------------------------- Test 21 -----------------------------
138 ---------------------------- Test 22 -----------------------------
149 ---------------------------- Test 23 -----------------------------
166 ---------------------------- Test 24 -----------------------------
185 This line contains pattern not on a line by itself.
186 This is the last line of this file.
188 ---------------------------- Test 25 -----------------------------
193 19-And there they were again, to check line numbers.
210 ---------------------------- Test 26 -----------------------------
215 And there they were again, to check line numbers.
238 This line contains pattern not on a line by itself.
239 This is the last line of this file.
241 ---------------------------- Test 27 -----------------------------
260 This line contains pattern not on a line by itself.
261 This is the last line of this file.
263 ---------------------------- Test 28 -----------------------------
264 14-of lines all by themselves.
269 19-And there they were again, to check line numbers.
286 ---------------------------- Test 29 -----------------------------
287 of lines all by themselves.
292 And there they were again, to check line numbers.
315 This line contains pattern not on a line by itself.
316 This is the last line of this file.
318 ---------------------------- Test 30 -----------------------------
319 ./testdata/grepinput-4-features should be added at the end, because some of the tests involve the
320 ./testdata/grepinput-5-output of line numbers, and we don't want these to change.
321 ./testdata/grepinput-6-
322 ./testdata/grepinput:7:PATTERN at the start of a line.
323 ./testdata/grepinput:8:In the middle of a line, PATTERN appears.
324 ./testdata/grepinput-9-
325 ./testdata/grepinput:10:This pattern is in lower case.
327 ./testdata/grepinput-607-PUT NEW DATA ABOVE THIS LINE.
328 ./testdata/grepinput-608-=============================
329 ./testdata/grepinput-609-
330 ./testdata/grepinput:610:Check up on PATTERN near the end.
332 ./testdata/grepinputx-1-This is a second file of input for the pcregrep tests.
333 ./testdata/grepinputx-2-
334 ./testdata/grepinputx:3:Here is the pattern again.
335 ./testdata/grepinputx-4-
336 ./testdata/grepinputx:5:Pattern
338 ./testdata/grepinputx-39-nineteen
339 ./testdata/grepinputx-40-twenty
340 ./testdata/grepinputx-41-
341 ./testdata/grepinputx:42:This line contains pattern not on a line by itself.
343 ---------------------------- Test 31 -----------------------------
344 ./testdata/grepinput:7:PATTERN at the start of a line.
345 ./testdata/grepinput:8:In the middle of a line, PATTERN appears.
346 ./testdata/grepinput-9-
347 ./testdata/grepinput:10:This pattern is in lower case.
348 ./testdata/grepinput-11-
349 ./testdata/grepinput-12-Here follows a whole lot of stuff that makes the file over 24K long.
350 ./testdata/grepinput-13-
352 ./testdata/grepinput:610:Check up on PATTERN near the end.
353 ./testdata/grepinput-611-This is the last line of this file.
355 ./testdata/grepinputx:3:Here is the pattern again.
356 ./testdata/grepinputx-4-
357 ./testdata/grepinputx:5:Pattern
358 ./testdata/grepinputx-6-That time it was on a line by itself.
359 ./testdata/grepinputx-7-
360 ./testdata/grepinputx-8-To pat or not to pat, that is the question.
362 ./testdata/grepinputx:42:This line contains pattern not on a line by itself.
363 ./testdata/grepinputx-43-This is the last line of this file.
365 ---------------------------- Test 32 -----------------------------
366 ./testdata/grepinputx
368 ---------------------------- Test 33 -----------------------------
369 pcregrep: Failed to open ./testdata/grepnonexist: No such file or directory
371 ---------------------------- Test 34 -----------------------------
373 ---------------------------- Test 35 -----------------------------
374 ./testdata/grepinput8
375 ./testdata/grepinputx
377 ---------------------------- Test 36 -----------------------------
378 ./testdata/grepinput3
379 ./testdata/grepinputx
381 ---------------------------- Test 37 -----------------------------
386 ======== STDERR ========
387 pcregrep: pcre_exec() gave error -8 while matching this text:
389 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
391 pcregrep: pcre_exec() gave error -8 while matching this text:
393 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
395 pcregrep: Error -8, -21 or -27 means that a resource limit was exceeded.
396 pcregrep: Check your regex for nested unlimited loops.
397 ---------------------------- Test 38 ------------------------------
398 This line contains a binary zero here >
\0< for testing.
400 ---------------------------- Test 39 ------------------------------
401 This is a line before the binary zero.
402 This line contains a binary zero here >
\0< for testing.
404 ---------------------------- Test 40 ------------------------------
405 This line contains a binary zero here >
\0< for testing.
406 This is a line after the binary zero.
408 ---------------------------- Test 41 ------------------------------
409 before the binary zero
410 after the binary zero
412 ---------------------------- Test 42 ------------------------------
413 ./testdata/grepinput:595:before the binary zero
414 ./testdata/grepinput:597:after the binary zero
416 ---------------------------- Test 43 ------------------------------
423 ---------------------------- Test 44 ------------------------------
429 ---------------------------- Test 45 ------------------------------
435 ---------------------------- Test 46 ------------------------------
436 pcregrep: Error in 2nd command-line regex at offset 9: missing )
438 ---------------------------- Test 47 ------------------------------
441 ---------------------------- Test 48 ------------------------------
446 ---------------------------- Test 49 ------------------------------
450 PUT NEW DATA ABOVE THIS LINE.
452 ---------------------------- Test 50 ------------------------------
454 ---------------------------- Test 51 ------------------------------
456 This time it jumps and jumps and jumps.
458 ---------------------------- Test 52 ------------------------------
459 fox
\e[1;31mjumps
\e[00m
460 This time it
\e[1;31mjumps
\e[00m and
\e[1;31mjumps
\e[00m and
\e[1;31mjumps
\e[00m.
462 ---------------------------- Test 53 ------------------------------
469 ---------------------------- Test 54 ------------------------------
476 ---------------------------- Test 55 -----------------------------
477 Here is the
\e[1;31mpattern
\e[00m again.
478 That time it was on a
\e[1;31mline by itself
\e[00m.
479 This line contains
\e[1;31mpattern
\e[00m not on a
\e[1;31mline by itself
\e[00m.
481 ---------------------------- Test 56 -----------------------------
482 ./testdata/grepinput:456
483 ./testdata/grepinput3:0
484 ./testdata/grepinput8:0
485 ./testdata/grepinputv:1
486 ./testdata/grepinputx:0
488 ---------------------------- Test 57 -----------------------------
489 ./testdata/grepinput:456
490 ./testdata/grepinputv:1
492 ---------------------------- Test 58 -----------------------------
493 PATTERN at the start of a line.
494 In the middle of a line, PATTERN appears.
495 Check up on PATTERN near the end.
497 ---------------------------- Test 59 -----------------------------
498 PATTERN at the start of a line.
499 In the middle of a line, PATTERN appears.
500 Check up on PATTERN near the end.
502 ---------------------------- Test 60 -----------------------------
503 PATTERN at the start of a line.
504 In the middle of a line, PATTERN appears.
505 Check up on PATTERN near the end.
507 ---------------------------- Test 61 -----------------------------
508 PATTERN at the start of a line.
509 In the middle of a line, PATTERN appears.
510 Check up on PATTERN near the end.
512 ---------------------------- Test 62 -----------------------------
513 pcregrep: pcre_exec() gave error -8 while matching text that starts:
515 This is a file of miscellaneous text that is used as test data for checking
516 that the pcregrep command is working correctly. The file must be more than 24K
517 long so that it needs more than a single read
519 pcregrep: Error -8, -21 or -27 means that a resource limit was exceeded.
520 pcregrep: Check your regex for nested unlimited loops.
522 ---------------------------- Test 63 -----------------------------
523 pcregrep: pcre_exec() gave error -21 while matching text that starts:
525 This is a file of miscellaneous text that is used as test data for checking
526 that the pcregrep command is working correctly. The file must be more than 24K
527 long so that it needs more than a single read
529 pcregrep: Error -8, -21 or -27 means that a resource limit was exceeded.
530 pcregrep: Check your regex for nested unlimited loops.
532 ---------------------------- Test 64 ------------------------------
535 ---------------------------- Test 65 ------------------------------
538 ---------------------------- Test 66 ------------------------------
540 ---------------------------- Test 67 ------------------------------
542 ---------------------------- Test 68 ------------------------------
545 ---------------------------- Test 69 -----------------------------
546 1:This is a second file of input for the pcregrep tests.
550 6:That time it was on a line by itself.
552 8:To pat or not to pat, that is the question.
557 13:That was a complete pair
558 14:of lines all by themselves.
563 19:And there they were again, to check line numbers.
586 43:This is the last line of this file.
588 ---------------------------- Test 70 -----------------------------
589 \e[1;31mtriple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt
591 \e[00m
\e[1;31mtriple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt
593 \e[00m
\e[1;31mtriple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt
595 \e[00m
\e[1;31mtriple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt
598 ---------------------------- Test 71 -----------------------------
601 ---------------------------- Test 72 -----------------------------
602 \e[1;31m01
\e[00m0203040506
604 ---------------------------- Test 73 -----------------------------
607 ---------------------------- Test 74 -----------------------------
611 ---------------------------- Test 75 -----------------------------
612 \e[1;31m01
\e[00m
\e[1;31m02
\e[00m03040506
614 ---------------------------- Test 76 -----------------------------
618 ---------------------------- Test 77 -----------------------------
622 ---------------------------- Test 78 -----------------------------
623 \e[1;31m01
\e[00m02
\e[1;31m03
\e[00m040506
625 ---------------------------- Test 79 -----------------------------
629 ---------------------------- Test 80 -----------------------------
632 ---------------------------- Test 81 -----------------------------
633 \e[1;31m01
\e[00m0203040506
635 ---------------------------- Test 82 -----------------------------
638 ---------------------------- Test 83 -----------------------------
639 pcregrep: line 4 of file ./testdata/grepinput3 is too long for the internal buffer
640 pcregrep: check the --buffer-size option
642 ---------------------------- Test 84 -----------------------------
643 testdata/grepinputv:fox jumps
644 testdata/grepinputx:complete pair
645 testdata/grepinputx:That was a complete pair
646 testdata/grepinputx:complete pair
647 testdata/grepinput3:triple: t7_txt s1_tag s_txt p_tag p_txt o_tag o_txt
649 ---------------------------- Test 85 -----------------------------
650 ./testdata/grepinput3:Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
652 ---------------------------- Test 86 -----------------------------
653 Binary file ./testdata/grepbinary matches
655 ---------------------------- Test 87 -----------------------------
657 ---------------------------- Test 88 -----------------------------
658 Binary file ./testdata/grepbinary matches
660 ---------------------------- Test 89 -----------------------------
662 ---------------------------- Test 90 -----------------------------
664 ---------------------------- Test 91 -----------------------------
665 The quick brown f
\0x jumps over the lazy dog.
667 ---------------------------- Test 92 -----------------------------
668 The quick brown f
\0x jumps over the lazy dog.
670 ---------------------------- Test 93 -----------------------------
671 The quick brown f
\0x jumps over the lazy dog.
673 ---------------------------- Test 94 -----------------------------
674 ./testdata/grepinput8
675 ./testdata/grepinputx
677 ---------------------------- Test 95 -----------------------------
678 testdata/grepinputx:complete pair
679 testdata/grepinputx:That was a complete pair
680 testdata/grepinputx:complete pair
682 ---------------------------- Test 96 -----------------------------
683 ./testdata/grepinput3
684 ./testdata/grepinput8
685 ./testdata/grepinputx
687 ---------------------------- Test 97 -----------------------------
688 ./testdata/grepinput3
689 ./testdata/grepinputx
691 ---------------------------- Test 98 -----------------------------
692 ./testdata/grepinputx
694 ---------------------------- Test 99 -----------------------------
695 ./testdata/grepinput3
696 ./testdata/grepinputx
698 ---------------------------- Test 100 ------------------------------
699 ./testdata/grepinput:zerothe.
700 ./testdata/grepinput:zeroa
701 ./testdata/grepinput:zerothe.
703 ---------------------------- Test 101 ------------------------------
704 ./testdata/grepinput:
\e[1;31m.
\e[00m|
\e[1;31mzero
\e[00m|
\e[1;31mthe
\e[00m|
\e[1;31m.
\e[00m
705 ./testdata/grepinput:
\e[1;31mzero
\e[00m|
\e[1;31ma
\e[00m
706 ./testdata/grepinput:
\e[1;31m.
\e[00m|
\e[1;31mzero
\e[00m|
\e[1;31mthe
\e[00m|
\e[1;31m.
\e[00m
708 ---------------------------- Test 102 -----------------------------
716 ---------------------------- Test 103 -----------------------------
718 ---------------------------- Test 104 -----------------------------
726 ---------------------------- Test 105 -----------------------------
727 \e[1;31m
\e[00mtriple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt
729 \e[1;31m
\e[00mtriple: t2_txt s1_tag s_txt p_tag p_txt o_tag
730 \e[1;31m
\e[00mLorem
\e[1;31mipsum
\e[00m dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
732 \e[1;31m
\e[00mtriple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt
734 \e[1;31m
\e[00mtriple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt
736 \e[1;31m
\e[00mtriple: t5_txt s1_tag s_txt p_tag p_txt o_tag
739 \e[1;31m
\e[00mtriple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt
741 \e[1;31m
\e[00mtriple: t7_txt s1_tag s_txt p_tag p_txt o_tag o_txt
743 ---------------------------- Test 106 -----------------------------
746 ---------------------------- Test 107 -----------------------------
754 ---------------------------- Test 108 ------------------------------
756 ---------------------------- Test 109 -----------------------------