Home | History | Annotate | Download | only in testdata
      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.
      5 RC=0
      6 ---------------------------- Test 2 ------------------------------
      7 PATTERN at the start of a line.
      8 RC=0
      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 608:Check up on PATTERN near the end.
     14 RC=0
     15 ---------------------------- Test 4 ------------------------------
     16 4
     17 RC=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.
     26 RC=0
     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 608:Check up on PATTERN near the end.
     32 3:Here is the pattern again.
     33 5:Pattern
     34 42:This line contains pattern not on a line by itself.
     35 RC=0
     36 ---------------------------- Test 7 ------------------------------
     37 ./testdata/grepinput
     38 ./testdata/grepinputx
     39 RC=0
     40 ---------------------------- Test 8 ------------------------------
     41 ./testdata/grepinput
     42 RC=0
     43 ---------------------------- Test 9 ------------------------------
     44 RC=0
     45 ---------------------------- Test 10 -----------------------------
     46 RC=1
     47 ---------------------------- Test 11 -----------------------------
     48 1:This is a second file of input for the pcregrep tests.
     49 2:
     50 4:
     51 5:Pattern
     52 6:That time it was on a line by itself.
     53 7:
     54 8:To pat or not to pat, that is the question.
     55 9:
     56 10:complete pair
     57 11:of lines
     58 12:
     59 13:That was a complete pair
     60 14:of lines all by themselves.
     61 15:
     62 16:complete pair
     63 17:of lines
     64 18:
     65 19:And there they were again, to check line numbers.
     66 20:
     67 21:one
     68 22:two
     69 23:three
     70 24:four
     71 25:five
     72 26:six
     73 27:seven
     74 28:eight
     75 29:nine
     76 30:ten
     77 31:eleven
     78 32:twelve
     79 33:thirteen
     80 34:fourteen
     81 35:fifteen
     82 36:sixteen
     83 37:seventeen
     84 38:eighteen
     85 39:nineteen
     86 40:twenty
     87 41:
     88 43:This is the last line of this file.
     89 RC=0
     90 ---------------------------- Test 12 -----------------------------
     91 Pattern
     92 RC=0
     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.
     97 RC=0
     98 ---------------------------- Test 14 -----------------------------
     99 ./testdata/grepinputx:To pat or not to pat, that is the question.
    100 RC=0
    101 ---------------------------- Test 15 -----------------------------
    102 pcregrep: Error in command-line regex at offset 4: nothing to repeat
    103 RC=2
    104 ---------------------------- Test 16 -----------------------------
    105 pcregrep: Failed to open ./testdata/nonexistfile: No such file or directory
    106 RC=2
    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.
    110 RC=0
    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 -------------------------------------------------------------------------------
    116 RC=0
    117 ---------------------------- Test 19 -----------------------------
    118 Pattern
    119 RC=0
    120 ---------------------------- Test 20 -----------------------------
    121 10:complete pair
    122 of lines
    123 16:complete pair
    124 of lines
    125 RC=0
    126 ---------------------------- Test 21 -----------------------------
    127 24:four
    128 25-five
    129 26-six
    130 27-seven
    131 --
    132 34:fourteen
    133 35-fifteen
    134 36-sixteen
    135 37-seventeen
    136 RC=0
    137 ---------------------------- Test 22 -----------------------------
    138 21-one
    139 22-two
    140 23-three
    141 24:four
    142 --
    143 31-eleven
    144 32-twelve
    145 33-thirteen
    146 34:fourteen
    147 RC=0
    148 ---------------------------- Test 23 -----------------------------
    149 one
    150 two
    151 three
    152 four
    153 five
    154 six
    155 seven
    156 --
    157 eleven
    158 twelve
    159 thirteen
    160 fourteen
    161 fifteen
    162 sixteen
    163 seventeen
    164 RC=0
    165 ---------------------------- Test 24 -----------------------------
    166 four
    167 five
    168 six
    169 seven
    170 eight
    171 nine
    172 ten
    173 eleven
    174 twelve
    175 thirteen
    176 fourteen
    177 fifteen
    178 sixteen
    179 seventeen
    180 eighteen
    181 nineteen
    182 twenty
    183 
    184 This line contains pattern not on a line by itself.
    185 This is the last line of this file.
    186 RC=0
    187 ---------------------------- Test 25 -----------------------------
    188 15-
    189 16-complete pair
    190 17-of lines
    191 18-
    192 19-And there they were again, to check line numbers.
    193 20-
    194 21-one
    195 22-two
    196 23-three
    197 24:four
    198 25-five
    199 26-six
    200 27-seven
    201 28-eight
    202 29-nine
    203 30-ten
    204 31-eleven
    205 32-twelve
    206 33-thirteen
    207 34:fourteen
    208 RC=0
    209 ---------------------------- Test 26 -----------------------------
    210 
    211 complete pair
    212 of lines
    213 
    214 And there they were again, to check line numbers.
    215 
    216 one
    217 two
    218 three
    219 four
    220 five
    221 six
    222 seven
    223 eight
    224 nine
    225 ten
    226 eleven
    227 twelve
    228 thirteen
    229 fourteen
    230 fifteen
    231 sixteen
    232 seventeen
    233 eighteen
    234 nineteen
    235 twenty
    236 
    237 This line contains pattern not on a line by itself.
    238 This is the last line of this file.
    239 RC=0
    240 ---------------------------- Test 27 -----------------------------
    241 four
    242 five
    243 six
    244 seven
    245 eight
    246 nine
    247 ten
    248 eleven
    249 twelve
    250 thirteen
    251 fourteen
    252 fifteen
    253 sixteen
    254 seventeen
    255 eighteen
    256 nineteen
    257 twenty
    258 
    259 This line contains pattern not on a line by itself.
    260 This is the last line of this file.
    261 RC=0
    262 ---------------------------- Test 28 -----------------------------
    263 14-of lines all by themselves.
    264 15-
    265 16-complete pair
    266 17-of lines
    267 18-
    268 19-And there they were again, to check line numbers.
    269 20-
    270 21-one
    271 22-two
    272 23-three
    273 24:four
    274 25-five
    275 26-six
    276 27-seven
    277 28-eight
    278 29-nine
    279 30-ten
    280 31-eleven
    281 32-twelve
    282 33-thirteen
    283 34:fourteen
    284 RC=0
    285 ---------------------------- Test 29 -----------------------------
    286 of lines all by themselves.
    287 
    288 complete pair
    289 of lines
    290 
    291 And there they were again, to check line numbers.
    292 
    293 one
    294 two
    295 three
    296 four
    297 five
    298 six
    299 seven
    300 eight
    301 nine
    302 ten
    303 eleven
    304 twelve
    305 thirteen
    306 fourteen
    307 fifteen
    308 sixteen
    309 seventeen
    310 eighteen
    311 nineteen
    312 twenty
    313 
    314 This line contains pattern not on a line by itself.
    315 This is the last line of this file.
    316 RC=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.
    341 RC=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.
    363 RC=0
    364 ---------------------------- Test 32 -----------------------------
    365 ./testdata/grepinputx
    366 RC=0
    367 ---------------------------- Test 33 -----------------------------
    368 pcregrep: Failed to open ./testdata/grepnonexist: No such file or directory
    369 RC=2
    370 ---------------------------- Test 34 -----------------------------
    371 RC=2
    372 ---------------------------- Test 35 -----------------------------
    373 ./testdata/grepinputx
    374 RC=0
    375 ---------------------------- Test 36 -----------------------------
    376 ./testdata/grepinput3
    377 ./testdata/grepinput8
    378 ./testdata/grepinputx
    379 RC=0
    380 ---------------------------- Test 37 -----------------------------
    381 aaaaa0
    382 aaaaa2
    383 RC=0
    384 ======== STDERR ========
    385 pcregrep: pcre_exec() gave error -8 while matching this text:
    386 
    387 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    388 
    389 pcregrep: pcre_exec() gave error -8 while matching this text:
    390 
    391 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    392 
    393 pcregrep: Error -8 or -21 means that a resource limit was exceeded.
    394 pcregrep: Check your regex for nested unlimited loops.
    395 ---------------------------- Test 38 ------------------------------
    396 This line contains a binary zero here >< for testing.
    397 RC=0
    398 ---------------------------- Test 39 ------------------------------
    399 This is a line before the binary zero.
    400 This line contains a binary zero here >< for testing.
    401 RC=0
    402 ---------------------------- Test 40 ------------------------------
    403 This line contains a binary zero here >< for testing.
    404 This is a line after the binary zero.
    405 RC=0
    406 ---------------------------- Test 41 ------------------------------
    407 before the binary zero
    408 after the binary zero
    409 RC=0
    410 ---------------------------- Test 42 ------------------------------
    411 ./testdata/grepinput:595:before the binary zero
    412 ./testdata/grepinput:597:after the binary zero
    413 RC=0
    414 ---------------------------- Test 43 ------------------------------
    415 595:before
    416 595:zero
    417 596:zero
    418 597:after
    419 597:zero
    420 RC=0
    421 ---------------------------- Test 44 ------------------------------
    422 595:before
    423 595:zero
    424 596:zero
    425 597:zero
    426 RC=0
    427 ---------------------------- Test 45 ------------------------------
    428 10:pattern
    429 595:binary
    430 596:binary
    431 597:binary
    432 RC=0
    433 ---------------------------- Test 46 ------------------------------
    434 pcregrep: Error in 2nd command-line regex at offset 9: missing )
    435 RC=2
    436 ---------------------------- Test 47 ------------------------------
    437 AB.VE
    438 RC=0
    439 ---------------------------- Test 48 ------------------------------
    440 ABOVE the elephant 
    441 AB.VE
    442 AB.VE the turtle
    443 RC=0
    444 ---------------------------- Test 49 ------------------------------
    445 ABOVE the elephant 
    446 AB.VE
    447 AB.VE the turtle
    448 PUT NEW DATA ABOVE THIS LINE.
    449 RC=0
    450 ---------------------------- Test 50 ------------------------------
    451 RC=1
    452 ---------------------------- Test 51 ------------------------------
    453 over the lazy dog.
    454 This time it jumps and jumps and jumps.
    455 RC=0
    456 ---------------------------- Test 52 ------------------------------
    457 fox [1;31mjumps[00m
    458 This time it [1;31mjumps[00m and [1;31mjumps[00m and [1;31mjumps[00m.
    459 RC=0
    460 ---------------------------- Test 53 ------------------------------
    461 36972,6
    462 36990,4
    463 37024,4
    464 37066,5
    465 37083,4
    466 RC=0
    467 ---------------------------- Test 54 ------------------------------
    468 595:15,6
    469 595:33,4
    470 596:28,4
    471 597:15,5
    472 597:32,4
    473 RC=0
    474 ---------------------------- Test 55 -----------------------------
    475 Here is the [1;31mpattern[00m again.
    476 That time it was on a [1;31mline by itself[00m.
    477 This line contains [1;31mpattern[00m not on a [1;31mline by itself[00m.
    478 RC=0
    479 ---------------------------- Test 56 -----------------------------
    480 ./testdata/grepinput:456
    481 ./testdata/grepinput3:0
    482 ./testdata/grepinput8:0
    483 ./testdata/grepinputv:1
    484 ./testdata/grepinputx:0
    485 RC=0
    486 ---------------------------- Test 57 -----------------------------
    487 ./testdata/grepinput:456
    488 ./testdata/grepinputv:1
    489 RC=0
    490 ---------------------------- Test 58 -----------------------------
    491 PATTERN at the start of a line.
    492 In the middle of a line, PATTERN appears.
    493 Check up on PATTERN near the end.
    494 RC=0
    495 ---------------------------- Test 59 -----------------------------
    496 PATTERN at the start of a line.
    497 In the middle of a line, PATTERN appears.
    498 Check up on PATTERN near the end.
    499 RC=0
    500 ---------------------------- Test 60 -----------------------------
    501 PATTERN at the start of a line.
    502 In the middle of a line, PATTERN appears.
    503 Check up on PATTERN near the end.
    504 RC=0
    505 ---------------------------- Test 61 -----------------------------
    506 PATTERN at the start of a line.
    507 In the middle of a line, PATTERN appears.
    508 Check up on PATTERN near the end.
    509 RC=0
    510 ---------------------------- Test 62 -----------------------------
    511 pcregrep: pcre_exec() gave error -8 while matching text that starts:
    512 
    513 This is a file of miscellaneous text that is used as test data for checking
    514 that the pcregrep command is working correctly. The file must be more than 24K
    515 long so that it needs more than a single read
    516 
    517 pcregrep: Error -8 or -21 means that a resource limit was exceeded.
    518 pcregrep: Check your regex for nested unlimited loops.
    519 RC=1
    520 ---------------------------- Test 63 -----------------------------
    521 pcregrep: pcre_exec() gave error -21 while matching text that starts:
    522 
    523 This is a file of miscellaneous text that is used as test data for checking
    524 that the pcregrep command is working correctly. The file must be more than 24K
    525 long so that it needs more than a single read
    526 
    527 pcregrep: Error -8 or -21 means that a resource limit was exceeded.
    528 pcregrep: Check your regex for nested unlimited loops.
    529 RC=1
    530 ---------------------------- Test 64 ------------------------------
    531 appears
    532 RC=0
    533 ---------------------------- Test 65 ------------------------------
    534 pear
    535 RC=0
    536 ---------------------------- Test 66 ------------------------------
    537 RC=0
    538 ---------------------------- Test 67 ------------------------------
    539 RC=0
    540 ---------------------------- Test 68 ------------------------------
    541 pear
    542 RC=0
    543 ---------------------------- Test 69 -----------------------------
    544 1:This is a second file of input for the pcregrep tests.
    545 2:
    546 4:
    547 5:Pattern
    548 6:That time it was on a line by itself.
    549 7:
    550 8:To pat or not to pat, that is the question.
    551 9:
    552 10:complete pair
    553 11:of lines
    554 12:
    555 13:That was a complete pair
    556 14:of lines all by themselves.
    557 15:
    558 16:complete pair
    559 17:of lines
    560 18:
    561 19:And there they were again, to check line numbers.
    562 20:
    563 21:one
    564 22:two
    565 23:three
    566 24:four
    567 25:five
    568 26:six
    569 27:seven
    570 28:eight
    571 29:nine
    572 30:ten
    573 31:eleven
    574 32:twelve
    575 33:thirteen
    576 34:fourteen
    577 35:fifteen
    578 36:sixteen
    579 37:seventeen
    580 38:eighteen
    581 39:nineteen
    582 40:twenty
    583 41:
    584 43:This is the last line of this file.
    585 RC=0
    586 ---------------------------- Test 70 -----------------------------
    587 [1;31mtriple:	t1_txt	s1_tag	s_txt	p_tag	p_txt	o_tag	o_txt
    588 
    589 [00m[1;31mtriple:	t3_txt	s2_tag	s_txt	p_tag	p_txt	o_tag	o_txt
    590 
    591 [00m[1;31mtriple:	t4_txt	s1_tag	s_txt	p_tag	p_txt	o_tag	o_txt
    592 
    593 [00m[1;31mtriple:	t6_txt	s2_tag	s_txt	p_tag	p_txt	o_tag	o_txt
    594 
    595 [00mRC=0
    596