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. 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. 96seventeen 97This line contains pattern not on a line by itself. 98RC=0 99---------------------------- Test 14 ----------------------------- 100./testdata/grepinputx:To pat or not to pat, that is the question. 101RC=0 102---------------------------- Test 15 ----------------------------- 103pcregrep: Error in command-line regex at offset 4: nothing to repeat 104RC=2 105---------------------------- Test 16 ----------------------------- 106pcregrep: Failed to open ./testdata/nonexistfile: No such file or directory 107RC=2 108---------------------------- Test 17 ----------------------------- 109features should be added at the end, because some of the tests involve the 110output of line numbers, and we don't want these to change. 111RC=0 112---------------------------- Test 18 ----------------------------- 1134:features should be added at the end, because some of the tests involve the 114output of line numbers, and we don't want these to change. 115583:brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 116------------------------------------------------------------------------------- 117RC=0 118---------------------------- Test 19 ----------------------------- 119Pattern 120RC=0 121---------------------------- Test 20 ----------------------------- 12210:complete pair 123of lines 12416:complete pair 125of lines 126RC=0 127---------------------------- Test 21 ----------------------------- 12824:four 12925-five 13026-six 13127-seven 132-- 13334:fourteen 13435-fifteen 13536-sixteen 13637-seventeen 137RC=0 138---------------------------- Test 22 ----------------------------- 13921-one 14022-two 14123-three 14224:four 143-- 14431-eleven 14532-twelve 14633-thirteen 14734:fourteen 148RC=0 149---------------------------- Test 23 ----------------------------- 150one 151two 152three 153four 154five 155six 156seven 157-- 158eleven 159twelve 160thirteen 161fourteen 162fifteen 163sixteen 164seventeen 165RC=0 166---------------------------- Test 24 ----------------------------- 167four 168five 169six 170seven 171eight 172nine 173ten 174eleven 175twelve 176thirteen 177fourteen 178fifteen 179sixteen 180seventeen 181eighteen 182nineteen 183twenty 184 185This line contains pattern not on a line by itself. 186This is the last line of this file. 187RC=0 188---------------------------- Test 25 ----------------------------- 18915- 19016-complete pair 19117-of lines 19218- 19319-And there they were again, to check line numbers. 19420- 19521-one 19622-two 19723-three 19824:four 19925-five 20026-six 20127-seven 20228-eight 20329-nine 20430-ten 20531-eleven 20632-twelve 20733-thirteen 20834:fourteen 209RC=0 210---------------------------- Test 26 ----------------------------- 211 212complete pair 213of lines 214 215And there they were again, to check line numbers. 216 217one 218two 219three 220four 221five 222six 223seven 224eight 225nine 226ten 227eleven 228twelve 229thirteen 230fourteen 231fifteen 232sixteen 233seventeen 234eighteen 235nineteen 236twenty 237 238This line contains pattern not on a line by itself. 239This is the last line of this file. 240RC=0 241---------------------------- Test 27 ----------------------------- 242four 243five 244six 245seven 246eight 247nine 248ten 249eleven 250twelve 251thirteen 252fourteen 253fifteen 254sixteen 255seventeen 256eighteen 257nineteen 258twenty 259 260This line contains pattern not on a line by itself. 261This is the last line of this file. 262RC=0 263---------------------------- Test 28 ----------------------------- 26414-of lines all by themselves. 26515- 26616-complete pair 26717-of lines 26818- 26919-And there they were again, to check line numbers. 27020- 27121-one 27222-two 27323-three 27424:four 27525-five 27626-six 27727-seven 27828-eight 27929-nine 28030-ten 28131-eleven 28232-twelve 28333-thirteen 28434:fourteen 285RC=0 286---------------------------- Test 29 ----------------------------- 287of lines all by themselves. 288 289complete pair 290of lines 291 292And there they were again, to check line numbers. 293 294one 295two 296three 297four 298five 299six 300seven 301eight 302nine 303ten 304eleven 305twelve 306thirteen 307fourteen 308fifteen 309sixteen 310seventeen 311eighteen 312nineteen 313twenty 314 315This line contains pattern not on a line by itself. 316This is the last line of this file. 317RC=0 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. 326-- 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. 331-- 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 337-- 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. 342RC=0 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- 351-- 352./testdata/grepinput:610:Check up on PATTERN near the end. 353./testdata/grepinput-611-This is the last line of this file. 354-- 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. 361-- 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. 364RC=0 365---------------------------- Test 32 ----------------------------- 366./testdata/grepinputx 367RC=0 368---------------------------- Test 33 ----------------------------- 369pcregrep: Failed to open ./testdata/grepnonexist: No such file or directory 370RC=2 371---------------------------- Test 34 ----------------------------- 372RC=2 373---------------------------- Test 35 ----------------------------- 374./testdata/grepinput8 375./testdata/grepinputx 376RC=0 377---------------------------- Test 36 ----------------------------- 378./testdata/grepinput3 379./testdata/grepinputx 380RC=0 381---------------------------- Test 37 ----------------------------- 382aaaaa0 383aaaaa2 384010203040506 385RC=0 386======== STDERR ======== 387pcregrep: pcre_exec() gave error -8 while matching this text: 388 389aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 390 391pcregrep: pcre_exec() gave error -8 while matching this text: 392 393aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 394 395pcregrep: Error -8, -21 or -27 means that a resource limit was exceeded. 396pcregrep: Check your regex for nested unlimited loops. 397---------------------------- Test 38 ------------------------------ 398This line contains a binary zero here >< for testing. 399RC=0 400---------------------------- Test 39 ------------------------------ 401This is a line before the binary zero. 402This line contains a binary zero here >< for testing. 403RC=0 404---------------------------- Test 40 ------------------------------ 405This line contains a binary zero here >< for testing. 406This is a line after the binary zero. 407RC=0 408---------------------------- Test 41 ------------------------------ 409before the binary zero 410after the binary zero 411RC=0 412---------------------------- Test 42 ------------------------------ 413./testdata/grepinput:595:before the binary zero 414./testdata/grepinput:597:after the binary zero 415RC=0 416---------------------------- Test 43 ------------------------------ 417595:before 418595:zero 419596:zero 420597:after 421597:zero 422RC=0 423---------------------------- Test 44 ------------------------------ 424595:before 425595:zero 426596:zero 427597:zero 428RC=0 429---------------------------- Test 45 ------------------------------ 43010:pattern 431595:binary 432596:binary 433597:binary 434RC=0 435---------------------------- Test 46 ------------------------------ 436pcregrep: Error in 2nd command-line regex at offset 9: missing ) 437RC=2 438---------------------------- Test 47 ------------------------------ 439AB.VE 440RC=0 441---------------------------- Test 48 ------------------------------ 442ABOVE the elephant 443AB.VE 444AB.VE the turtle 445RC=0 446---------------------------- Test 49 ------------------------------ 447ABOVE the elephant 448AB.VE 449AB.VE the turtle 450PUT NEW DATA ABOVE THIS LINE. 451RC=0 452---------------------------- Test 50 ------------------------------ 453RC=1 454---------------------------- Test 51 ------------------------------ 455over the lazy dog. 456This time it jumps and jumps and jumps. 457RC=0 458---------------------------- Test 52 ------------------------------ 459fox [1;31mjumps[00m 460This time it [1;31mjumps[00m and [1;31mjumps[00m and [1;31mjumps[00m. 461RC=0 462---------------------------- Test 53 ------------------------------ 46336972,6 46436990,4 46537024,4 46637066,5 46737083,4 468RC=0 469---------------------------- Test 54 ------------------------------ 470595:15,6 471595:33,4 472596:28,4 473597:15,5 474597:32,4 475RC=0 476---------------------------- Test 55 ----------------------------- 477Here is the [1;31mpattern[00m again. 478That time it was on a [1;31mline by itself[00m. 479This line contains [1;31mpattern[00m not on a [1;31mline by itself[00m. 480RC=0 481---------------------------- Test 56 ----------------------------- 482./testdata/grepinput:456 483./testdata/grepinput3:0 484./testdata/grepinput8:0 485./testdata/grepinputv:1 486./testdata/grepinputx:0 487RC=0 488---------------------------- Test 57 ----------------------------- 489./testdata/grepinput:456 490./testdata/grepinputv:1 491RC=0 492---------------------------- Test 58 ----------------------------- 493PATTERN at the start of a line. 494In the middle of a line, PATTERN appears. 495Check up on PATTERN near the end. 496RC=0 497---------------------------- Test 59 ----------------------------- 498PATTERN at the start of a line. 499In the middle of a line, PATTERN appears. 500Check up on PATTERN near the end. 501RC=0 502---------------------------- Test 60 ----------------------------- 503PATTERN at the start of a line. 504In the middle of a line, PATTERN appears. 505Check up on PATTERN near the end. 506RC=0 507---------------------------- Test 61 ----------------------------- 508PATTERN at the start of a line. 509In the middle of a line, PATTERN appears. 510Check up on PATTERN near the end. 511RC=0 512---------------------------- Test 62 ----------------------------- 513pcregrep: pcre_exec() gave error -8 while matching text that starts: 514 515This is a file of miscellaneous text that is used as test data for checking 516that the pcregrep command is working correctly. The file must be more than 24K 517long so that it needs more than a single read 518 519pcregrep: Error -8, -21 or -27 means that a resource limit was exceeded. 520pcregrep: Check your regex for nested unlimited loops. 521RC=1 522---------------------------- Test 63 ----------------------------- 523pcregrep: pcre_exec() gave error -21 while matching text that starts: 524 525This is a file of miscellaneous text that is used as test data for checking 526that the pcregrep command is working correctly. The file must be more than 24K 527long so that it needs more than a single read 528 529pcregrep: Error -8, -21 or -27 means that a resource limit was exceeded. 530pcregrep: Check your regex for nested unlimited loops. 531RC=1 532---------------------------- Test 64 ------------------------------ 533appears 534RC=0 535---------------------------- Test 65 ------------------------------ 536pear 537RC=0 538---------------------------- Test 66 ------------------------------ 539RC=0 540---------------------------- Test 67 ------------------------------ 541RC=0 542---------------------------- Test 68 ------------------------------ 543pear 544RC=0 545---------------------------- Test 69 ----------------------------- 5461:This is a second file of input for the pcregrep tests. 5472: 5484: 5495:Pattern 5506:That time it was on a line by itself. 5517: 5528:To pat or not to pat, that is the question. 5539: 55410:complete pair 55511:of lines 55612: 55713:That was a complete pair 55814:of lines all by themselves. 55915: 56016:complete pair 56117:of lines 56218: 56319:And there they were again, to check line numbers. 56420: 56521:one 56622:two 56723:three 56824:four 56925:five 57026:six 57127:seven 57228:eight 57329:nine 57430:ten 57531:eleven 57632:twelve 57733:thirteen 57834:fourteen 57935:fifteen 58036:sixteen 58137:seventeen 58238:eighteen 58339:nineteen 58440:twenty 58541: 58643:This is the last line of this file. 587RC=0 588---------------------------- Test 70 ----------------------------- 589[1;31mtriple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt 590 591[00m[1;31mtriple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt 592 593[00m[1;31mtriple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt 594 595[00m[1;31mtriple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt 596 597[00mRC=0 598---------------------------- Test 71 ----------------------------- 59901 600RC=0 601---------------------------- Test 72 ----------------------------- 602[1;31m01[00m0203040506 603RC=0 604---------------------------- Test 73 ----------------------------- 605[1;31m01[00m 606RC=0 607---------------------------- Test 74 ----------------------------- 60801 60902 610RC=0 611---------------------------- Test 75 ----------------------------- 612[1;31m01[00m[1;31m02[00m03040506 613RC=0 614---------------------------- Test 76 ----------------------------- 615[1;31m01[00m 616[1;31m02[00m 617RC=0 618---------------------------- Test 77 ----------------------------- 61901 62003 621RC=0 622---------------------------- Test 78 ----------------------------- 623[1;31m01[00m02[1;31m03[00m040506 624RC=0 625---------------------------- Test 79 ----------------------------- 626[1;31m01[00m 627[1;31m03[00m 628RC=0 629---------------------------- Test 80 ----------------------------- 63001 631RC=0 632---------------------------- Test 81 ----------------------------- 633[1;31m01[00m0203040506 634RC=0 635---------------------------- Test 82 ----------------------------- 636[1;31m01[00m 637RC=0 638---------------------------- Test 83 ----------------------------- 639pcregrep: line 4 of file ./testdata/grepinput3 is too long for the internal buffer 640pcregrep: check the --buffer-size option 641RC=2 642---------------------------- Test 84 ----------------------------- 643testdata/grepinputv:fox jumps 644testdata/grepinputx:complete pair 645testdata/grepinputx:That was a complete pair 646testdata/grepinputx:complete pair 647testdata/grepinput3:triple: t7_txt s1_tag s_txt p_tag p_txt o_tag o_txt 648RC=0 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. 651RC=0 652---------------------------- Test 86 ----------------------------- 653Binary file ./testdata/grepbinary matches 654RC=0 655---------------------------- Test 87 ----------------------------- 656RC=1 657---------------------------- Test 88 ----------------------------- 658Binary file ./testdata/grepbinary matches 659RC=0 660---------------------------- Test 89 ----------------------------- 661RC=1 662---------------------------- Test 90 ----------------------------- 663RC=1 664---------------------------- Test 91 ----------------------------- 665The quick brown fx jumps over the lazy dog. 666RC=0 667---------------------------- Test 92 ----------------------------- 668The quick brown fx jumps over the lazy dog. 669RC=0 670---------------------------- Test 93 ----------------------------- 671The quick brown fx jumps over the lazy dog. 672RC=0 673---------------------------- Test 94 ----------------------------- 674./testdata/grepinput8 675./testdata/grepinputx 676RC=0 677---------------------------- Test 95 ----------------------------- 678testdata/grepinputx:complete pair 679testdata/grepinputx:That was a complete pair 680testdata/grepinputx:complete pair 681RC=0 682---------------------------- Test 96 ----------------------------- 683./testdata/grepinput3 684./testdata/grepinput8 685./testdata/grepinputx 686RC=0 687---------------------------- Test 97 ----------------------------- 688./testdata/grepinput3 689./testdata/grepinputx 690RC=0 691---------------------------- Test 98 ----------------------------- 692./testdata/grepinputx 693RC=0 694---------------------------- Test 99 ----------------------------- 695./testdata/grepinput3 696./testdata/grepinputx 697RC=0 698---------------------------- Test 100 ------------------------------ 699./testdata/grepinput:zerothe. 700./testdata/grepinput:zeroa 701./testdata/grepinput:zerothe. 702RC=0 703---------------------------- Test 101 ------------------------------ 704./testdata/grepinput:[1;31m.[00m|[1;31mzero[00m|[1;31mthe[00m|[1;31m.[00m 705./testdata/grepinput:[1;31mzero[00m|[1;31ma[00m 706./testdata/grepinput:[1;31m.[00m|[1;31mzero[00m|[1;31mthe[00m|[1;31m.[00m 707RC=0 708---------------------------- Test 102 ----------------------------- 7092: 7105: 7117: 7129: 71312: 71414: 715RC=0 716---------------------------- Test 103 ----------------------------- 717RC=0 718---------------------------- Test 104 ----------------------------- 7192: 7205: 7217: 7229: 72312: 72414: 725RC=0 726---------------------------- Test 105 ----------------------------- 727[1;31m[00mtriple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt 728[1;31m[00m 729[1;31m[00mtriple: t2_txt s1_tag s_txt p_tag p_txt o_tag 730[1;31m[00mLorem [1;31mipsum[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. 731[1;31m[00m 732[1;31m[00mtriple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt 733[1;31m[00m 734[1;31m[00mtriple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt 735[1;31m[00m 736[1;31m[00mtriple: t5_txt s1_tag s_txt p_tag p_txt o_tag 737[1;31m[00mo_txt 738[1;31m[00m 739[1;31m[00mtriple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt 740[1;31m[00m 741[1;31m[00mtriple: t7_txt s1_tag s_txt p_tag p_txt o_tag o_txt 742RC=0 743---------------------------- Test 106 ----------------------------- 744a 745RC=0 746