Parent Directory
|
Revision Log
Fix infelicities to do with --count in pcregrep.
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 | ---------------------------- Test 2 ------------------------------ |
6 | PATTERN at the start of a line. |
7 | ---------------------------- Test 3 ------------------------------ |
8 | 7:PATTERN at the start of a line. |
9 | 8:In the middle of a line, PATTERN appears. |
10 | 10:This pattern is in lower case. |
11 | 608:Check up on PATTERN near the end. |
12 | ---------------------------- Test 4 ------------------------------ |
13 | 4 |
14 | ---------------------------- Test 5 ------------------------------ |
15 | ./testdata/grepinput:7:PATTERN at the start of a line. |
16 | ./testdata/grepinput:8:In the middle of a line, PATTERN appears. |
17 | ./testdata/grepinput:10:This pattern is in lower case. |
18 | ./testdata/grepinput:608:Check up on PATTERN near the end. |
19 | ./testdata/grepinputx:3:Here is the pattern again. |
20 | ./testdata/grepinputx:5:Pattern |
21 | ./testdata/grepinputx:42:This line contains pattern not on a line by itself. |
22 | ---------------------------- Test 6 ------------------------------ |
23 | 7:PATTERN at the start of a line. |
24 | 8:In the middle of a line, PATTERN appears. |
25 | 10:This pattern is in lower case. |
26 | 608:Check up on PATTERN near the end. |
27 | 3:Here is the pattern again. |
28 | 5:Pattern |
29 | 42:This line contains pattern not on a line by itself. |
30 | ---------------------------- Test 7 ------------------------------ |
31 | ./testdata/grepinput |
32 | ./testdata/grepinputx |
33 | ---------------------------- Test 8 ------------------------------ |
34 | ./testdata/grepinput |
35 | ---------------------------- Test 9 ------------------------------ |
36 | RC=0 |
37 | ---------------------------- Test 10 ----------------------------- |
38 | RC=1 |
39 | ---------------------------- Test 11 ----------------------------- |
40 | 1:This is a second file of input for the pcregrep tests. |
41 | 2: |
42 | 4: |
43 | 5:Pattern |
44 | 6:That time it was on a line by itself. |
45 | 7: |
46 | 8:To pat or not to pat, that is the question. |
47 | 9: |
48 | 10:complete pair |
49 | 11:of lines |
50 | 12: |
51 | 13:That was a complete pair |
52 | 14:of lines all by themselves. |
53 | 15: |
54 | 16:complete pair |
55 | 17:of lines |
56 | 18: |
57 | 19:And there they were again, to check line numbers. |
58 | 20: |
59 | 21:one |
60 | 22:two |
61 | 23:three |
62 | 24:four |
63 | 25:five |
64 | 26:six |
65 | 27:seven |
66 | 28:eight |
67 | 29:nine |
68 | 30:ten |
69 | 31:eleven |
70 | 32:twelve |
71 | 33:thirteen |
72 | 34:fourteen |
73 | 35:fifteen |
74 | 36:sixteen |
75 | 37:seventeen |
76 | 38:eighteen |
77 | 39:nineteen |
78 | 40:twenty |
79 | 41: |
80 | 43:This is the last line of this file. |
81 | ---------------------------- Test 12 ----------------------------- |
82 | Pattern |
83 | ---------------------------- Test 13 ----------------------------- |
84 | Here is the pattern again. |
85 | That time it was on a line by itself. |
86 | This line contains pattern not on a line by itself. |
87 | ---------------------------- Test 14 ----------------------------- |
88 | ./testdata/grepinputx:To pat or not to pat, that is the question. |
89 | ---------------------------- Test 15 ----------------------------- |
90 | pcregrep: Error in command-line regex at offset 4: nothing to repeat |
91 | ---------------------------- Test 16 ----------------------------- |
92 | pcregrep: Failed to open ./testdata/nonexistfile: No such file or directory |
93 | ---------------------------- Test 17 ----------------------------- |
94 | features should be added at the end, because some of the tests involve the |
95 | output of line numbers, and we don't want these to change. |
96 | ---------------------------- Test 18 ----------------------------- |
97 | 4:features should be added at the end, because some of the tests involve the |
98 | output of line numbers, and we don't want these to change. |
99 | 583:brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. |
100 | ------------------------------------------------------------------------------- |
101 | ---------------------------- Test 19 ----------------------------- |
102 | Pattern |
103 | ---------------------------- Test 20 ----------------------------- |
104 | 10:complete pair |
105 | of lines |
106 | 16:complete pair |
107 | of lines |
108 | ---------------------------- Test 21 ----------------------------- |
109 | 24:four |
110 | 25-five |
111 | 26-six |
112 | 27-seven |
113 | -- |
114 | 34:fourteen |
115 | 35-fifteen |
116 | 36-sixteen |
117 | 37-seventeen |
118 | ---------------------------- Test 22 ----------------------------- |
119 | 21-one |
120 | 22-two |
121 | 23-three |
122 | 24:four |
123 | -- |
124 | 31-eleven |
125 | 32-twelve |
126 | 33-thirteen |
127 | 34:fourteen |
128 | ---------------------------- Test 23 ----------------------------- |
129 | one |
130 | two |
131 | three |
132 | four |
133 | five |
134 | six |
135 | seven |
136 | -- |
137 | eleven |
138 | twelve |
139 | thirteen |
140 | fourteen |
141 | fifteen |
142 | sixteen |
143 | seventeen |
144 | ---------------------------- Test 24 ----------------------------- |
145 | four |
146 | five |
147 | six |
148 | seven |
149 | eight |
150 | nine |
151 | ten |
152 | eleven |
153 | twelve |
154 | thirteen |
155 | fourteen |
156 | fifteen |
157 | sixteen |
158 | seventeen |
159 | eighteen |
160 | nineteen |
161 | twenty |
162 | |
163 | This line contains pattern not on a line by itself. |
164 | This is the last line of this file. |
165 | ---------------------------- Test 25 ----------------------------- |
166 | 15- |
167 | 16-complete pair |
168 | 17-of lines |
169 | 18- |
170 | 19-And there they were again, to check line numbers. |
171 | 20- |
172 | 21-one |
173 | 22-two |
174 | 23-three |
175 | 24:four |
176 | 25-five |
177 | 26-six |
178 | 27-seven |
179 | 28-eight |
180 | 29-nine |
181 | 30-ten |
182 | 31-eleven |
183 | 32-twelve |
184 | 33-thirteen |
185 | 34:fourteen |
186 | ---------------------------- Test 26 ----------------------------- |
187 | |
188 | complete pair |
189 | of lines |
190 | |
191 | And there they were again, to check line numbers. |
192 | |
193 | one |
194 | two |
195 | three |
196 | four |
197 | five |
198 | six |
199 | seven |
200 | eight |
201 | nine |
202 | ten |
203 | eleven |
204 | twelve |
205 | thirteen |
206 | fourteen |
207 | fifteen |
208 | sixteen |
209 | seventeen |
210 | eighteen |
211 | nineteen |
212 | twenty |
213 | |
214 | This line contains pattern not on a line by itself. |
215 | This is the last line of this file. |
216 | ---------------------------- Test 27 ----------------------------- |
217 | four |
218 | five |
219 | six |
220 | seven |
221 | eight |
222 | nine |
223 | ten |
224 | eleven |
225 | twelve |
226 | thirteen |
227 | fourteen |
228 | fifteen |
229 | sixteen |
230 | seventeen |
231 | eighteen |
232 | nineteen |
233 | twenty |
234 | |
235 | This line contains pattern not on a line by itself. |
236 | This is the last line of this file. |
237 | ---------------------------- Test 28 ----------------------------- |
238 | 14-of lines all by themselves. |
239 | 15- |
240 | 16-complete pair |
241 | 17-of lines |
242 | 18- |
243 | 19-And there they were again, to check line numbers. |
244 | 20- |
245 | 21-one |
246 | 22-two |
247 | 23-three |
248 | 24:four |
249 | 25-five |
250 | 26-six |
251 | 27-seven |
252 | 28-eight |
253 | 29-nine |
254 | 30-ten |
255 | 31-eleven |
256 | 32-twelve |
257 | 33-thirteen |
258 | 34:fourteen |
259 | ---------------------------- Test 29 ----------------------------- |
260 | of lines all by themselves. |
261 | |
262 | complete pair |
263 | of lines |
264 | |
265 | And there they were again, to check line numbers. |
266 | |
267 | one |
268 | two |
269 | three |
270 | four |
271 | five |
272 | six |
273 | seven |
274 | eight |
275 | nine |
276 | ten |
277 | eleven |
278 | twelve |
279 | thirteen |
280 | fourteen |
281 | fifteen |
282 | sixteen |
283 | seventeen |
284 | eighteen |
285 | nineteen |
286 | twenty |
287 | |
288 | This line contains pattern not on a line by itself. |
289 | This is the last line of this file. |
290 | ---------------------------- Test 30 ----------------------------- |
291 | ./testdata/grepinput-4-features should be added at the end, because some of the tests involve the |
292 | ./testdata/grepinput-5-output of line numbers, and we don't want these to change. |
293 | ./testdata/grepinput-6- |
294 | ./testdata/grepinput:7:PATTERN at the start of a line. |
295 | ./testdata/grepinput:8:In the middle of a line, PATTERN appears. |
296 | ./testdata/grepinput-9- |
297 | ./testdata/grepinput:10:This pattern is in lower case. |
298 | -- |
299 | ./testdata/grepinput-605-PUT NEW DATA ABOVE THIS LINE. |
300 | ./testdata/grepinput-606-============================= |
301 | ./testdata/grepinput-607- |
302 | ./testdata/grepinput:608:Check up on PATTERN near the end. |
303 | -- |
304 | ./testdata/grepinputx-1-This is a second file of input for the pcregrep tests. |
305 | ./testdata/grepinputx-2- |
306 | ./testdata/grepinputx:3:Here is the pattern again. |
307 | ./testdata/grepinputx-4- |
308 | ./testdata/grepinputx:5:Pattern |
309 | -- |
310 | ./testdata/grepinputx-39-nineteen |
311 | ./testdata/grepinputx-40-twenty |
312 | ./testdata/grepinputx-41- |
313 | ./testdata/grepinputx:42:This line contains pattern not on a line by itself. |
314 | ---------------------------- Test 31 ----------------------------- |
315 | ./testdata/grepinput:7:PATTERN at the start of a line. |
316 | ./testdata/grepinput:8:In the middle of a line, PATTERN appears. |
317 | ./testdata/grepinput-9- |
318 | ./testdata/grepinput:10:This pattern is in lower case. |
319 | ./testdata/grepinput-11- |
320 | ./testdata/grepinput-12-Here follows a whole lot of stuff that makes the file over 24K long. |
321 | ./testdata/grepinput-13- |
322 | -- |
323 | ./testdata/grepinput:608:Check up on PATTERN near the end. |
324 | ./testdata/grepinput-609-This is the last line of this file. |
325 | -- |
326 | ./testdata/grepinputx:3:Here is the pattern again. |
327 | ./testdata/grepinputx-4- |
328 | ./testdata/grepinputx:5:Pattern |
329 | ./testdata/grepinputx-6-That time it was on a line by itself. |
330 | ./testdata/grepinputx-7- |
331 | ./testdata/grepinputx-8-To pat or not to pat, that is the question. |
332 | -- |
333 | ./testdata/grepinputx:42:This line contains pattern not on a line by itself. |
334 | ./testdata/grepinputx-43-This is the last line of this file. |
335 | ---------------------------- Test 32 ----------------------------- |
336 | ./testdata/grepinputx |
337 | ---------------------------- Test 33 ----------------------------- |
338 | pcregrep: Failed to open ./testdata/grepnonexist: No such file or directory |
339 | RC=2 |
340 | ---------------------------- Test 34 ----------------------------- |
341 | RC=2 |
342 | ---------------------------- Test 35 ----------------------------- |
343 | ./testdata/grepinputx |
344 | RC=0 |
345 | ---------------------------- Test 36 ----------------------------- |
346 | ./testdata/grepinput8 |
347 | ./testdata/grepinputx |
348 | RC=0 |
349 | ---------------------------- Test 37 ----------------------------- |
350 | aaaaa0 |
351 | aaaaa2 |
352 | RC=0 |
353 | ======== STDERR ======== |
354 | pcregrep: pcre_exec() error -8 while matching this text: |
355 | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
356 | pcregrep: error -8 means that a resource limit was exceeded |
357 | pcregrep: check your regex for nested unlimited loops |
358 | pcregrep: pcre_exec() error -8 while matching this text: |
359 | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
360 | ---------------------------- Test 38 ------------------------------ |
361 | This line contains a binary zero here > |