github的一些开源项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1255 lines
33 KiB

  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. 623: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:623: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. 623: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. seventeen
  97. This line contains pattern not on a line by itself.
  98. RC=0
  99. ---------------------------- Test 14 -----------------------------
  100. ./testdata/grepinputx:To pat or not to pat, that is the question.
  101. RC=0
  102. ---------------------------- Test 15 -----------------------------
  103. pcre2grep: Error in command-line regex at offset 4: quantifier does not follow a repeatable item
  104. RC=2
  105. ---------------------------- Test 16 -----------------------------
  106. pcre2grep: Failed to open ./testdata/nonexistfile: No such file or directory
  107. RC=2
  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.
  111. RC=0
  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. -------------------------------------------------------------------------------
  117. RC=0
  118. ---------------------------- Test 19 -----------------------------
  119. Pattern
  120. RC=0
  121. ---------------------------- Test 20 -----------------------------
  122. 10:complete pair
  123. of lines
  124. 16:complete pair
  125. of lines
  126. RC=0
  127. ---------------------------- Test 21 -----------------------------
  128. 24:four
  129. 25-five
  130. 26-six
  131. 27-seven
  132. --
  133. 34:fourteen
  134. 35-fifteen
  135. 36-sixteen
  136. 37-seventeen
  137. RC=0
  138. ---------------------------- Test 22 -----------------------------
  139. 21-one
  140. 22-two
  141. 23-three
  142. 24:four
  143. --
  144. 31-eleven
  145. 32-twelve
  146. 33-thirteen
  147. 34:fourteen
  148. RC=0
  149. ---------------------------- Test 23 -----------------------------
  150. one
  151. two
  152. three
  153. four
  154. five
  155. six
  156. seven
  157. --
  158. eleven
  159. twelve
  160. thirteen
  161. fourteen
  162. fifteen
  163. sixteen
  164. seventeen
  165. RC=0
  166. ---------------------------- Test 24 -----------------------------
  167. four
  168. five
  169. six
  170. seven
  171. eight
  172. nine
  173. ten
  174. eleven
  175. twelve
  176. thirteen
  177. fourteen
  178. fifteen
  179. sixteen
  180. seventeen
  181. eighteen
  182. nineteen
  183. twenty
  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. complete pair
  211. of lines
  212. And there they were again, to check line numbers.
  213. one
  214. two
  215. three
  216. four
  217. five
  218. six
  219. seven
  220. eight
  221. nine
  222. ten
  223. eleven
  224. twelve
  225. thirteen
  226. fourteen
  227. fifteen
  228. sixteen
  229. seventeen
  230. eighteen
  231. nineteen
  232. twenty
  233. This line contains pattern not on a line by itself.
  234. This is the last line of this file.
  235. RC=0
  236. ---------------------------- Test 27 -----------------------------
  237. four
  238. five
  239. six
  240. seven
  241. eight
  242. nine
  243. ten
  244. eleven
  245. twelve
  246. thirteen
  247. fourteen
  248. fifteen
  249. sixteen
  250. seventeen
  251. eighteen
  252. nineteen
  253. twenty
  254. This line contains pattern not on a line by itself.
  255. This is the last line of this file.
  256. RC=0
  257. ---------------------------- Test 28 -----------------------------
  258. 14-of lines all by themselves.
  259. 15-
  260. 16-complete pair
  261. 17-of lines
  262. 18-
  263. 19-And there they were again, to check line numbers.
  264. 20-
  265. 21-one
  266. 22-two
  267. 23-three
  268. 24:four
  269. 25-five
  270. 26-six
  271. 27-seven
  272. 28-eight
  273. 29-nine
  274. 30-ten
  275. 31-eleven
  276. 32-twelve
  277. 33-thirteen
  278. 34:fourteen
  279. RC=0
  280. ---------------------------- Test 29 -----------------------------
  281. of lines all by themselves.
  282. complete pair
  283. of lines
  284. And there they were again, to check line numbers.
  285. one
  286. two
  287. three
  288. four
  289. five
  290. six
  291. seven
  292. eight
  293. nine
  294. ten
  295. eleven
  296. twelve
  297. thirteen
  298. fourteen
  299. fifteen
  300. sixteen
  301. seventeen
  302. eighteen
  303. nineteen
  304. twenty
  305. This line contains pattern not on a line by itself.
  306. This is the last line of this file.
  307. RC=0
  308. ---------------------------- Test 30 -----------------------------
  309. ./testdata/grepinput-4-features should be added at the end, because some of the tests involve the
  310. ./testdata/grepinput-5-output of line numbers, and we don't want these to change.
  311. ./testdata/grepinput-6-
  312. ./testdata/grepinput:7:PATTERN at the start of a line.
  313. ./testdata/grepinput:8:In the middle of a line, PATTERN appears.
  314. ./testdata/grepinput-9-
  315. ./testdata/grepinput:10:This pattern is in lower case.
  316. --
  317. ./testdata/grepinput-620-PUT NEW DATA ABOVE THIS LINE.
  318. ./testdata/grepinput-621-=============================
  319. ./testdata/grepinput-622-
  320. ./testdata/grepinput:623:Check up on PATTERN near the end.
  321. --
  322. ./testdata/grepinputx-1-This is a second file of input for the pcregrep tests.
  323. ./testdata/grepinputx-2-
  324. ./testdata/grepinputx:3:Here is the pattern again.
  325. ./testdata/grepinputx-4-
  326. ./testdata/grepinputx:5:Pattern
  327. --
  328. ./testdata/grepinputx-39-nineteen
  329. ./testdata/grepinputx-40-twenty
  330. ./testdata/grepinputx-41-
  331. ./testdata/grepinputx:42:This line contains pattern not on a line by itself.
  332. RC=0
  333. ---------------------------- Test 31 -----------------------------
  334. ./testdata/grepinput:7:PATTERN at the start of a line.
  335. ./testdata/grepinput:8:In the middle of a line, PATTERN appears.
  336. ./testdata/grepinput-9-
  337. ./testdata/grepinput:10:This pattern is in lower case.
  338. ./testdata/grepinput-11-
  339. ./testdata/grepinput-12-Here follows a whole lot of stuff that makes the file over 24KiB long.
  340. ./testdata/grepinput-13-
  341. --
  342. ./testdata/grepinput:623:Check up on PATTERN near the end.
  343. ./testdata/grepinput-624-This is the last line of this file.
  344. --
  345. ./testdata/grepinputx:3:Here is the pattern again.
  346. ./testdata/grepinputx-4-
  347. ./testdata/grepinputx:5:Pattern
  348. ./testdata/grepinputx-6-That time it was on a line by itself.
  349. ./testdata/grepinputx-7-
  350. ./testdata/grepinputx-8-To pat or not to pat, that is the question.
  351. --
  352. ./testdata/grepinputx:42:This line contains pattern not on a line by itself.
  353. ./testdata/grepinputx-43-This is the last line of this file.
  354. RC=0
  355. ---------------------------- Test 32 -----------------------------
  356. ./testdata/grepinputx
  357. RC=0
  358. ---------------------------- Test 33 -----------------------------
  359. pcre2grep: Failed to open ./testdata/grepnonexist: No such file or directory
  360. RC=2
  361. ---------------------------- Test 34 -----------------------------
  362. RC=2
  363. ---------------------------- Test 35 -----------------------------
  364. ./testdata/grepinput8
  365. ./testdata/grepinputx
  366. RC=0
  367. ---------------------------- Test 36 -----------------------------
  368. ./testdata/grepinput3
  369. ./testdata/grepinputx
  370. RC=0
  371. ---------------------------- Test 37 -----------------------------
  372. 24KiB long so that it needs more than a single read() call to process it. New
  373. aaaaa0
  374. aaaaa2
  375. 010203040506
  376. RC=0
  377. ======== STDERR ========
  378. pcre2grep: pcre2_match() gave error -47 while matching this text:
  379. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  380. pcre2grep: pcre2_match() gave error -47 while matching this text:
  381. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  382. pcre2grep: Error -46, -47, -53 or -63 means that a resource limit was exceeded.
  383. pcre2grep: Check your regex for nested unlimited loops.
  384. ---------------------------- Test 38 ------------------------------
  385. This line contains a binary zero here >< for testing.
  386. RC=0
  387. ---------------------------- Test 39 ------------------------------
  388. This is a line before the binary zero.
  389. This line contains a binary zero here >< for testing.
  390. RC=0
  391. ---------------------------- Test 40 ------------------------------
  392. This line contains a binary zero here >< for testing.
  393. This is a line after the binary zero.
  394. RC=0
  395. ---------------------------- Test 41 ------------------------------
  396. before the binary zero
  397. after the binary zero
  398. RC=0
  399. ---------------------------- Test 42 ------------------------------
  400. ./testdata/grepinput:595:before the binary zero
  401. ./testdata/grepinput:597:after the binary zero
  402. RC=0
  403. ---------------------------- Test 43 ------------------------------
  404. 595:before
  405. 595:zero
  406. 596:zero
  407. 597:after
  408. 597:zero
  409. RC=0
  410. ---------------------------- Test 44 ------------------------------
  411. 595:before
  412. 595:zero
  413. 596:zero
  414. 597:after
  415. 597:zero
  416. RC=0
  417. ---------------------------- Test 45 ------------------------------
  418. 10:pattern
  419. 595:binary
  420. 596:binary
  421. 597:binary
  422. RC=0
  423. ---------------------------- Test 46 ------------------------------
  424. pcre2grep: Error in 1st command-line regex at offset 8: unmatched closing parenthesis
  425. pcre2grep: Error in 2nd command-line regex at offset 9: missing closing parenthesis
  426. pcre2grep: Error in 3rd command-line regex at offset 9: missing terminating ] for character class
  427. pcre2grep: Error in 4th command-line regex at offset 9: missing terminating ] for character class
  428. RC=2
  429. ---------------------------- Test 47 ------------------------------
  430. AB.VE
  431. RC=0
  432. ---------------------------- Test 48 ------------------------------
  433. ABOVE the elephant
  434. AB.VE
  435. AB.VE the turtle
  436. RC=0
  437. ---------------------------- Test 49 ------------------------------
  438. ABOVE the elephant
  439. AB.VE
  440. AB.VE the turtle
  441. PUT NEW DATA ABOVE THIS LINE.
  442. RC=0
  443. ---------------------------- Test 50 ------------------------------
  444. RC=1
  445. ---------------------------- Test 51 ------------------------------
  446. over the lazy dog.
  447. This time it jumps and jumps and jumps.
  448. This line contains \E and (regex) *meta* [characters].
  449. The word is cat in this line
  450. The caterpillar sat on the mat
  451. The snowcat is not an animal
  452. A buried feline in the syndicate
  453. RC=0
  454. ---------------------------- Test 52 ------------------------------
  455. fox jumps
  456. This time it jumps and jumps and jumps.
  457. RC=0
  458. ---------------------------- Test 53 ------------------------------
  459. 36976,6
  460. 36994,4
  461. 37028,4
  462. 37070,5
  463. 37087,4
  464. RC=0
  465. ---------------------------- Test 54 ------------------------------
  466. 595:15,6
  467. 595:33,4
  468. 596:28,4
  469. 597:15,5
  470. 597:32,4
  471. RC=0
  472. ---------------------------- Test 55 -----------------------------
  473. Here is the pattern again.
  474. That time it was on a line by itself.
  475. This line contains pattern not on a line by itself.
  476. RC=0
  477. ---------------------------- Test 56 -----------------------------
  478. ./testdata/grepinput:456
  479. ./testdata/grepinput3:0
  480. ./testdata/grepinput8:0
  481. ./testdata/grepinputM:0
  482. ./testdata/grepinputv:1
  483. ./testdata/grepinputx:0
  484. RC=0
  485. ---------------------------- Test 57 -----------------------------
  486. ./testdata/grepinput:456
  487. ./testdata/grepinputv:1
  488. RC=0
  489. ---------------------------- Test 58 -----------------------------
  490. PATTERN at the start of a line.
  491. In the middle of a line, PATTERN appears.
  492. Check up on PATTERN near the end.
  493. RC=0
  494. ---------------------------- Test 59 -----------------------------
  495. PATTERN at the start of a line.
  496. In the middle of a line, PATTERN appears.
  497. Check up on PATTERN near the end.
  498. RC=0
  499. ---------------------------- Test 60 -----------------------------
  500. PATTERN at the start of a line.
  501. In the middle of a line, PATTERN appears.
  502. Check up on PATTERN near the end.
  503. RC=0
  504. ---------------------------- Test 61 -----------------------------
  505. PATTERN at the start of a line.
  506. In the middle of a line, PATTERN appears.
  507. Check up on PATTERN near the end.
  508. RC=0
  509. ---------------------------- Test 62 -----------------------------
  510. pcre2grep: pcre2_match() gave error -47 while matching text that starts:
  511. This is a file of miscellaneous text that is used as test data for checking
  512. that the pcregrep command is working correctly. The file must be more than
  513. 24KiB long so that it needs more than a single re
  514. pcre2grep: Error -46, -47, -53 or -63 means that a resource limit was exceeded.
  515. pcre2grep: Check your regex for nested unlimited loops.
  516. RC=1
  517. ---------------------------- Test 63 -----------------------------
  518. pcre2grep: pcre2_match() gave error -53 while matching text that starts:
  519. This is a file of miscellaneous text that is used as test data for checking
  520. that the pcregrep command is working correctly. The file must be more than
  521. 24KiB long so that it needs more than a single re
  522. pcre2grep: Error -46, -47, -53 or -63 means that a resource limit was exceeded.
  523. pcre2grep: Check your regex for nested unlimited loops.
  524. RC=1
  525. ---------------------------- Test 64 ------------------------------
  526. appears
  527. RC=0
  528. ---------------------------- Test 65 ------------------------------
  529. pear
  530. RC=0
  531. ---------------------------- Test 66 ------------------------------
  532. RC=0
  533. ---------------------------- Test 67 ------------------------------
  534. RC=0
  535. ---------------------------- Test 68 ------------------------------
  536. pear
  537. RC=0
  538. ---------------------------- Test 69 -----------------------------
  539. 1:This is a second file of input for the pcregrep tests.
  540. 2:
  541. 4:
  542. 5:Pattern
  543. 6:That time it was on a line by itself.
  544. 7:
  545. 8:To pat or not to pat, that is the question.
  546. 9:
  547. 10:complete pair
  548. 11:of lines
  549. 12:
  550. 13:That was a complete pair
  551. 14:of lines all by themselves.
  552. 15:
  553. 16:complete pair
  554. 17:of lines
  555. 18:
  556. 19:And there they were again, to check line numbers.
  557. 20:
  558. 21:one
  559. 22:two
  560. 23:three
  561. 24:four
  562. 25:five
  563. 26:six
  564. 27:seven
  565. 28:eight
  566. 29:nine
  567. 30:ten
  568. 31:eleven
  569. 32:twelve
  570. 33:thirteen
  571. 34:fourteen
  572. 35:fifteen
  573. 36:sixteen
  574. 37:seventeen
  575. 38:eighteen
  576. 39:nineteen
  577. 40:twenty
  578. 41:
  579. 43:This is the last line of this file.
  580. RC=0
  581. ---------------------------- Test 70 -----------------------------
  582. triple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt
  583. triple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt
  584. triple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt
  585. triple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt
  586. RC=0
  587. 1:triple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt
  588. 6:triple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt
  589. 8:triple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt
  590. 13:triple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt
  591. RC=0
  592. triple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt
  593. triple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt
  594. triple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt
  595. triple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt
  596. RC=0
  597. 1:triple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt
  598. 6:triple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt
  599. 8:triple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt
  600. 13:triple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt
  601. RC=0
  602. ---------------------------- Test 71 -----------------------------
  603. 01
  604. RC=0
  605. ---------------------------- Test 72 -----------------------------
  606. 010203040506
  607. RC=0
  608. ---------------------------- Test 73 -----------------------------
  609. 01
  610. RC=0
  611. ---------------------------- Test 74 -----------------------------
  612. 01
  613. 02
  614. RC=0
  615. ---------------------------- Test 75 -----------------------------
  616. 010203040506
  617. RC=0
  618. ---------------------------- Test 76 -----------------------------
  619. 01
  620. 02
  621. RC=0
  622. ---------------------------- Test 77 -----------------------------
  623. 01
  624. 03
  625. RC=0
  626. ---------------------------- Test 78 -----------------------------
  627. 010203040506
  628. RC=0
  629. ---------------------------- Test 79 -----------------------------
  630. 01
  631. 03
  632. RC=0
  633. ---------------------------- Test 80 -----------------------------
  634. 01
  635. RC=0
  636. ---------------------------- Test 81 -----------------------------
  637. 010203040506
  638. RC=0
  639. ---------------------------- Test 82 -----------------------------
  640. 01
  641. RC=0
  642. ---------------------------- Test 83 -----------------------------
  643. pcre2grep: line 4 of file ./testdata/grepinput3 is too long for the internal buffer
  644. pcre2grep: the maximum buffer size is 100
  645. pcre2grep: use the --max-buffer-size option to change it
  646. RC=2
  647. ---------------------------- Test 84 -----------------------------
  648. testdata/grepinputv:fox jumps
  649. testdata/grepinputx:complete pair
  650. testdata/grepinputx:That was a complete pair
  651. testdata/grepinputx:complete pair
  652. testdata/grepinput3:triple: t7_txt s1_tag s_txt p_tag p_txt o_tag o_txt
  653. RC=0
  654. ---------------------------- Test 85 -----------------------------
  655. ./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.
  656. RC=0
  657. ---------------------------- Test 86 -----------------------------
  658. Binary file ./testdata/grepbinary matches
  659. RC=0
  660. ---------------------------- Test 87 -----------------------------
  661. RC=1
  662. ---------------------------- Test 88 -----------------------------
  663. Binary file ./testdata/grepbinary matches
  664. RC=0
  665. ---------------------------- Test 89 -----------------------------
  666. RC=1
  667. ---------------------------- Test 90 -----------------------------
  668. RC=1
  669. ---------------------------- Test 91 -----------------------------
  670. The quick brown fx jumps over the lazy dog.
  671. RC=0
  672. ---------------------------- Test 92 -----------------------------
  673. The quick brown fx jumps over the lazy dog.
  674. RC=0
  675. ---------------------------- Test 93 -----------------------------
  676. The quick brown fx jumps over the lazy dog.
  677. RC=0
  678. ---------------------------- Test 94 -----------------------------
  679. ./testdata/grepinput8
  680. ./testdata/grepinputx
  681. RC=0
  682. ---------------------------- Test 95 -----------------------------
  683. testdata/grepinputx:complete pair
  684. testdata/grepinputx:That was a complete pair
  685. testdata/grepinputx:complete pair
  686. RC=0
  687. ---------------------------- Test 96 -----------------------------
  688. ./testdata/grepinput3
  689. ./testdata/grepinput8
  690. ./testdata/grepinputx
  691. RC=0
  692. ---------------------------- Test 97 -----------------------------
  693. ./testdata/grepinput3
  694. ./testdata/grepinputx
  695. RC=0
  696. ---------------------------- Test 98 -----------------------------
  697. ./testdata/grepinputx
  698. RC=0
  699. ---------------------------- Test 99 -----------------------------
  700. ./testdata/grepinput3
  701. ./testdata/grepinputx
  702. RC=0
  703. ---------------------------- Test 100 ------------------------------
  704. ./testdata/grepinput:zerothe.
  705. ./testdata/grepinput:zeroa
  706. ./testdata/grepinput:zerothe.
  707. RC=0
  708. ---------------------------- Test 101 ------------------------------
  709. ./testdata/grepinput:.|zero|the|.
  710. ./testdata/grepinput:zero|a
  711. ./testdata/grepinput:.|zero|the|.
  712. RC=0
  713. ---------------------------- Test 102 -----------------------------
  714. 2:
  715. 5:
  716. 7:
  717. 9:
  718. 12:
  719. 14:
  720. RC=0
  721. ---------------------------- Test 103 -----------------------------
  722. RC=0
  723. ---------------------------- Test 104 -----------------------------
  724. 2:
  725. 5:
  726. 7:
  727. 9:
  728. 12:
  729. 14:
  730. RC=0
  731. ---------------------------- Test 105 -----------------------------
  732. triple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt
  733. triple: t2_txt s1_tag s_txt p_tag p_txt o_tag
  734. 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.
  735. triple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt
  736. triple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt
  737. triple: t5_txt s1_tag s_txt p_tag p_txt o_tag
  738. o_txt
  739. triple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt
  740. triple: t7_txt s1_tag s_txt p_tag p_txt o_tag o_txt
  741. RC=0
  742. ---------------------------- Test 106 -----------------------------
  743. a
  744. RC=0
  745. ---------------------------- Test 107 -----------------------------
  746. 1:0,1
  747. 2:0,1
  748. 2:1,1
  749. 2:2,1
  750. 2:3,1
  751. 2:4,1
  752. RC=0
  753. ---------------------------- Test 108 ------------------------------
  754. RC=0
  755. ---------------------------- Test 109 -----------------------------
  756. RC=0
  757. ---------------------------- Test 110 -----------------------------
  758. match 1:
  759. a
  760. /1/a
  761. match 2:
  762. b
  763. /2/b
  764. match 3:
  765. c
  766. /3/c
  767. match 4:
  768. d
  769. /4/d
  770. match 5:
  771. e
  772. /5/e
  773. RC=0
  774. ---------------------------- Test 111 -----------------------------
  775. 607:0,12
  776. 609:0,12
  777. 611:0,12
  778. 613:0,12
  779. 615:0,12
  780. RC=0
  781. ---------------------------- Test 112 -----------------------------
  782. 37172,12
  783. 37184,12
  784. 37196,12
  785. 37208,12
  786. 37220,12
  787. RC=0
  788. ---------------------------- Test 113 -----------------------------
  789. 480
  790. RC=0
  791. ---------------------------- Test 114 -----------------------------
  792. testdata/grepinput:469
  793. testdata/grepinput3:0
  794. testdata/grepinput8:0
  795. testdata/grepinputM:2
  796. testdata/grepinputv:3
  797. testdata/grepinputx:6
  798. TOTAL:480
  799. RC=0
  800. ---------------------------- Test 115 -----------------------------
  801. testdata/grepinput:469
  802. testdata/grepinputM:2
  803. testdata/grepinputv:3
  804. testdata/grepinputx:6
  805. TOTAL:480
  806. RC=0
  807. ---------------------------- Test 116 -----------------------------
  808. 478
  809. RC=0
  810. ---------------------------- Test 117 -----------------------------
  811. 469
  812. 0
  813. 0
  814. 2
  815. 3
  816. 6
  817. 480
  818. RC=0
  819. ---------------------------- Test 118 -----------------------------
  820. testdata/grepinput3
  821. testdata/grepinput8
  822. RC=0
  823. ---------------------------- Test 119 -----------------------------
  824. 123
  825. 456
  826. 789
  827. ---
  828. abc
  829. def
  830. xyz
  831. ---
  832. RC=0
  833. ---------------------------- Test 120 ------------------------------
  834. ./testdata/grepinput:the binary zero.:zerothe.
  835. ./testdata/grepinput:a binary zero:zeroa
  836. ./testdata/grepinput:the binary zero.:zerothe.
  837. RC=0
  838. the binary zero.:
  839. RC=0
  840. pcre2grep: Error in output text at offset 2: decimal number expected
  841. RC=2
  842. pcre2grep: Error in output text at offset 3: no character after $
  843. RC=2
  844. pcre2grep: Error in output text at offset 8: too many hex digits
  845. RC=2
  846. pcre2grep: Error in output text at offset 5: missing closing brace
  847. RC=2
  848. pcre2grep: Error in output text at offset 7: code point greater than 0xff is invalid
  849. RC=2
  850. ---------------------------- Test 121 -----------------------------
  851. This line contains \E and (regex) *meta* [characters].
  852. RC=0
  853. ---------------------------- Test 122 -----------------------------
  854. over the lazy dog.
  855. The word is cat in this line
  856. RC=0
  857. ---------------------------- Test 123 -----------------------------
  858. over the lazy dog.
  859. The word is cat in this line
  860. RC=0
  861. ---------------------------- Test 124 -----------------------------
  862. 3:start end in between start
  863. end and following
  864. 7:start end in between start
  865. end and following start
  866. end other stuff
  867. 11:start end in between start
  868. end
  869. 16:start end in between start
  870. end
  871. RC=0
  872. 3:start end in between start
  873. end and following
  874. 5-Other stuff
  875. 6-
  876. 7:start end in between start
  877. end and following start
  878. end other stuff
  879. 10-
  880. 11:start end in between start
  881. end
  882. 14-
  883. 15-** These two lines must be last.
  884. 16:start end in between start
  885. end
  886. RC=0
  887. 3:start end in between start
  888. end and following
  889. 7:start end in between start
  890. end and following start
  891. end other stuff
  892. 11:start end in between start
  893. end
  894. 16:start end in between start
  895. end
  896. RC=0
  897. 3:start end in between start
  898. end and following
  899. 5-Other stuff
  900. 6-
  901. 7:start end in between start
  902. end and following start
  903. end other stuff
  904. 10-
  905. 11:start end in between start
  906. end
  907. 14-
  908. 15-** These two lines must be last.
  909. 16:start end in between start
  910. end
  911. RC=0
  912. ---------------------------- Test 125 -----------------------------
  913. abcd
  914. RC=0
  915. abcd
  916. RC=0
  917. abcd
  918. RC=0
  919. abcd
  920. RC=0
  921. abcd
  922. RC=0
  923. ---------------------------- Test 126 -----------------------------
  924. ABCXYZ
  925. RC=0
  926. pcre2grep: Error in regex in line 2 of testtemp1grep at offset 4: unmatched closing parenthesis
  927. RC=2
  928. ---------------------------- Test 127 -----------------------------
  929. pattern
  930. RC=0
  931. ---------------------------- Test 128 -----------------------------
  932. pcre2grep: Requested group 1 cannot be captured.
  933. pcre2grep: Use --om-capture to increase the size of the capture vector.
  934. RC=2
  935. ---------------------------- Test 129 -----------------------------
  936. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the
  937. lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox
  938. RC=0
  939. ---------------------------- Test 130 -----------------------------
  940. fox
  941. fox
  942. fox
  943. fox
  944. RC=0
  945. ---------------------------- Test 131 -----------------------------
  946. 2
  947. RC=0
  948. ---------------------------- Test 132 -----------------------------
  949. match 1:
  950. a
  951. match 2:
  952. b
  953. ---
  954. a
  955. RC=0
  956. ---------------------------- Test 133 -----------------------------
  957. match 1:
  958. a
  959. match 2:
  960. b
  961. ---
  962. match 2:
  963. b
  964. match 3:
  965. c
  966. RC=0
  967. ---------------------------- Test 134 -----------------------------
  968. (standard input):2:=AB3CD5=
  969. RC=0
  970. ---------------------------- Test 135 -----------------------------
  971. ./testdata/grepinputv@The word is cat in this line
  972. RC=0
  973. ./testdata/grepinputv@./testdata/grepinputv@RC=0
  974. ./testdata/grepinputv@This line contains \E and (regex) *meta* [characters].
  975. ./testdata/grepinputv@The word is cat in this line
  976. ./testdata/grepinputv@The caterpillar sat on the mat
  977. RC=0
  978. testdata/grepinputM3:start end in between start
  979. end and following
  980. testdata/grepinputM7:start end in between start
  981. end and following start
  982. end other stuff
  983. testdata/grepinputM11:start end in between start
  984. end
  985. testdata/grepinputM16:start end in between start
  986. end
  987. RC=0
  988. ---------------------------- Test 136 -----------------------------
  989. pcre2grep: Malformed number "1MK" after -m
  990. Usage: pcre2grep [-AaBCcDdEeFfHhIilLMmNnOoPqrstuUVvwxZ] [long options] [pattern] [files]
  991. Type "pcre2grep --help" for more information and the long options.
  992. RC=2
  993. pcre2grep: Malformed number "1MK" after --max-count
  994. Usage: pcre2grep [-AaBCcDdEeFfHhIilLMmNnOoPqrstuUVvwxZ] [long options] [pattern] [files]
  995. Type "pcre2grep --help" for more information and the long options.
  996. RC=2
  997. ---------------------------- Test 137 -----------------------------
  998. Last line
  999. has no newline
  1000. RC=0
  1001. ---------------------------- Test 138 -----------------------------
  1002. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1003. AbC
  1004. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1005. AbC
  1006. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1007. AbC
  1008. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1009. AbC
  1010. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1011. AbC
  1012. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1013. AbC
  1014. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1015. AbC
  1016. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1017. AbC
  1018. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1019. AbC
  1020. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1021. AbC
  1022. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1023. AbC
  1024. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1025. AbC
  1026. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1027. AbC
  1028. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1029. AbC
  1030. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1031. AbC
  1032. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1033. AbC
  1034. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1035. AbC
  1036. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1037. AbC
  1038. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1039. AbC
  1040. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1041. AbC
  1042. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1043. AbC
  1044. pcre2grep: pcre2_match() gave error -63 while matching this text:
  1045. AbC
  1046. pcre2grep: Too many errors - abandoned.
  1047. pcre2grep: Error -46, -47, -53 or -63 means that a resource limit was exceeded.
  1048. pcre2grep: Check your regex for nested unlimited loops.
  1049. RC=2
  1050. ---------------------------- Test 139 -----------------------------
  1051. fox jumps
  1052. RC=0
  1053. ---------------------------- Test 140 -----------------------------
  1054. The quick brown
  1055. fox jumps
  1056. RC=0
  1057. ---------------------------- Test 141 -----------------------------
  1058. (standard input):This is a line from stdin.
  1059. RC=0
  1060. ---------------------------- Test 142 -----------------------------
  1061. pcre2grep: Failed to open /does/not/exist: No such file or directory
  1062. RC=2
  1063. ---------------------------- Test 143 -----------------------------
  1064. fox jumps
  1065. The word is cat in this line
  1066. The caterpillar sat on the mat
  1067. The snowcat is not an animal
  1068. A buried feline in the syndicate
  1069. RC=0
  1070. ---------------------------- Test 144 -----------------------------
  1071. pcre2grep: Failed to open /non/exist: No such file or directory
  1072. RC=2
  1073. ---------------------------- Test 145 -----------------------------
  1074. The quick brown
  1075. fox jumps
  1076. over the lazy dog.
  1077. This time it jumps and jumps and jumps.
  1078. This line contains \E and (regex) *meta* [characters].
  1079. The word is cat in this line
  1080. The caterpillar sat on the mat
  1081. The snowcat is not an animal
  1082. A buried feline in the syndicate
  1083. RC=0
  1084. ---------------------------- Test 146 -----------------------------
  1085. (standard input):A123B
  1086. RC=0
  1087. A123B
  1088. fox jumps
  1089. RC=0
  1090. Usage: pcre2grep [-AaBCcDdEeFfHhIilLMmNnOoPqrstuUVvwxZ] [long options] [pattern] [files]
  1091. Type "pcre2grep --help" for more information and the long options.
  1092. RC=2
  1093. ---------------------------- Test 147 -----------------------------
  1094. pcre2grep: Failed to open -nonfile: No such file or directory
  1095. RC=2
  1096. ---------------------------- Test 148 -----------------------------
  1097. pcre2grep: Unknown option --nonexist
  1098. Usage: pcre2grep [-AaBCcDdEeFfHhIilLMmNnOoPqrstuUVvwxZ] [long options] [pattern] [files]
  1099. Type "pcre2grep --help" for more information and the long options.
  1100. RC=2
  1101. pcre2grep: Unknown option letter '-' in "-n-n-bad"
  1102. Usage: pcre2grep [-AaBCcDdEeFfHhIilLMmNnOoPqrstuUVvwxZ] [long options] [pattern] [files]
  1103. Type "pcre2grep --help" for more information and the long options.
  1104. RC=2
  1105. pcre2grep: Data missing after --context
  1106. Usage: pcre2grep [-AaBCcDdEeFfHhIilLMmNnOoPqrstuUVvwxZ] [long options] [pattern] [files]
  1107. Type "pcre2grep --help" for more information and the long options.
  1108. RC=2
  1109. pcre2grep: Cannot mix --only-matching, --output, --file-offsets and/or --line-offsets
  1110. Usage: pcre2grep [-AaBCcDdEeFfHhIilLMmNnOoPqrstuUVvwxZ] [long options] [pattern] [files]
  1111. Type "pcre2grep --help" for more information and the long options.
  1112. RC=2
  1113. pcre2grep: Unknown colour setting "badvalue"
  1114. RC=2
  1115. pcre2grep: Invalid newline specifier "badvalue"
  1116. RC=2
  1117. pcre2grep: Invalid value "badvalue" for -d
  1118. RC=2
  1119. pcre2grep: Invalid value "badvalue" for -D
  1120. RC=2
  1121. pcre2grep: --buffer-size must be greater than zero
  1122. RC=2
  1123. pcre2grep: Error in --exclude regex at offset 7: missing closing parenthesis
  1124. RC=2
  1125. pcre2grep: Failed to open /non/exist: No such file or directory
  1126. RC=2
  1127. pcre2grep: Failed to open /non/exist: No such file or directory
  1128. RC=2
  1129. pcre2grep: Failed to open /non/exist: No such file or directory
  1130. RC=2
  1131. ---------------------------- Test 149 -----------------------------
  1132. Binary file ./testdata/grepbinary matches
  1133. RC=0
  1134. pcre2grep: unknown value "wrong" for binary-files
  1135. Usage: pcre2grep [-AaBCcDdEeFfHhIilLMmNnOoPqrstuUVvwxZ] [long options] [pattern] [files]
  1136. Type "pcre2grep --help" for more information and the long options.
  1137. RC=2
  1138. ---------------------------- Test 150 -----------------------------
  1139. pcre2grep: Failed to set locale badlocale (obtained from LC_CTYPE)
  1140. RC=2
  1141. ---------------------------- Test 151 -----------------------------
  1142. The quick brown
  1143. The word is cat in this line
  1144. The caterpillar sat on the mat
  1145. The snowcat is not an animal
  1146. ---------------------------- Test 152 -----------------------------
  1147. 24:four
  1148. 25-five
  1149. 26-six
  1150. 27-seven
  1151. ++
  1152. 34:fourteen
  1153. 35-fifteen
  1154. 36-sixteen
  1155. 37-seventeen
  1156. RC=0
  1157. ---------------------------- Test 153 -----------------------------
  1158. 24:four
  1159. 25-five
  1160. 26-six
  1161. 27-seven
  1162. 34:fourteen
  1163. 35-fifteen
  1164. 36-sixteen
  1165. 37-seventeen
  1166. RC=0