Lines Matching refs:testtrygrep
97 $valgrind $pcre2grep $1 >>testtrygrep 2>&1
99 echo "** pcre2grep $1 failed - check testtrygrep"
108 echo "---------------------------- Test 1 ------------------------------" >testtrygrep
109 (cd $srcdir; $valgrind $vjs $pcre2grep PATTERN ./testdata/grepinput) >>testtrygrep
110 echo "RC=$?" >>testtrygrep
112 echo "---------------------------- Test 2 ------------------------------" >>testtrygrep
113 (cd $srcdir; $valgrind $vjs $pcre2grep '^PATTERN' ./testdata/grepinput) >>testtrygrep
114 echo "RC=$?" >>testtrygrep
116 echo "---------------------------- Test 3 ------------------------------" >>testtrygrep
117 (cd $srcdir; $valgrind $vjs $pcre2grep -in PATTERN ./testdata/grepinput) >>testtrygrep
118 echo "RC=$?" >>testtrygrep
120 echo "---------------------------- Test 4 ------------------------------" >>testtrygrep
121 (cd $srcdir; $valgrind $vjs $pcre2grep -ic PATTERN ./testdata/grepinput) >>testtrygrep
122 echo "RC=$?" >>testtrygrep
124 echo "---------------------------- Test 5 ------------------------------" >>testtrygrep
125 (cd $srcdir; $valgrind $vjs $pcre2grep -in PATTERN ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
126 echo "RC=$?" >>testtrygrep
128 echo "---------------------------- Test 6 ------------------------------" >>testtrygrep
129 (cd $srcdir; $valgrind $vjs $pcre2grep -inh PATTERN ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
130 echo "RC=$?" >>testtrygrep
132 echo "---------------------------- Test 7 ------------------------------" >>testtrygrep
133 (cd $srcdir; $valgrind $vjs $pcre2grep -il PATTERN ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
134 echo "RC=$?" >>testtrygrep
136 echo "---------------------------- Test 8 ------------------------------" >>testtrygrep
137 (cd $srcdir; $valgrind $vjs $pcre2grep -l PATTERN ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
138 echo "RC=$?" >>testtrygrep
140 echo "---------------------------- Test 9 ------------------------------" >>testtrygrep
141 (cd $srcdir; $valgrind $vjs $pcre2grep -q PATTERN ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
142 echo "RC=$?" >>testtrygrep
144 echo "---------------------------- Test 10 -----------------------------" >>testtrygrep
145 (cd $srcdir; $valgrind $vjs $pcre2grep -q NEVER-PATTERN ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
146 echo "RC=$?" >>testtrygrep
148 echo "---------------------------- Test 11 -----------------------------" >>testtrygrep
149 (cd $srcdir; $valgrind $vjs $pcre2grep -vn pattern ./testdata/grepinputx) >>testtrygrep
150 echo "RC=$?" >>testtrygrep
152 echo "---------------------------- Test 12 -----------------------------" >>testtrygrep
153 (cd $srcdir; $valgrind $vjs $pcre2grep -ix pattern ./testdata/grepinputx) >>testtrygrep
154 echo "RC=$?" >>testtrygrep
156 echo "---------------------------- Test 13 -----------------------------" >>testtrygrep
158 (cd $srcdir; $valgrind $vjs $pcre2grep -f./testdata/greplist -f $builddir/testtemp1grep ./testdata/grepinputx) >>testtrygrep
159 echo "RC=$?" >>testtrygrep
161 echo "---------------------------- Test 14 -----------------------------" >>testtrygrep
162 (cd $srcdir; $valgrind $vjs $pcre2grep -w pat ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
163 echo "RC=$?" >>testtrygrep
165 echo "---------------------------- Test 15 -----------------------------" >>testtrygrep
166 (cd $srcdir; $valgrind $vjs $pcre2grep 'abc^*' ./testdata/grepinput) 2>>testtrygrep >>testtrygrep
167 echo "RC=$?" >>testtrygrep
169 echo "---------------------------- Test 16 -----------------------------" >>testtrygrep
170 (cd $srcdir; $valgrind $vjs $pcre2grep abc ./testdata/grepinput ./testdata/nonexistfile) 2>>testtrygrep >>testtrygrep
171 echo "RC=$?" >>testtrygrep
173 echo "---------------------------- Test 17 -----------------------------" >>testtrygrep
174 (cd $srcdir; $valgrind $vjs $pcre2grep -M 'the\noutput' ./testdata/grepinput) >>testtrygrep
175 echo "RC=$?" >>testtrygrep
177 echo "---------------------------- Test 18 -----------------------------" >>testtrygrep
178 (cd $srcdir; $valgrind $vjs $pcre2grep -Mn '(the\noutput|dog\.\n--)' ./testdata/grepinput) >>testtrygrep
179 echo "RC=$?" >>testtrygrep
181 echo "---------------------------- Test 19 -----------------------------" >>testtrygrep
182 (cd $srcdir; $valgrind $vjs $pcre2grep -Mix 'Pattern' ./testdata/grepinputx) >>testtrygrep
183 echo "RC=$?" >>testtrygrep
185 echo "---------------------------- Test 20 -----------------------------" >>testtrygrep
186 (cd $srcdir; $valgrind $vjs $pcre2grep -Mixn 'complete pair\nof lines' ./testdata/grepinputx) >>testtrygrep
187 echo "RC=$?" >>testtrygrep
189 echo "---------------------------- Test 21 -----------------------------" >>testtrygrep
190 (cd $srcdir; $valgrind $vjs $pcre2grep -nA3 'four' ./testdata/grepinputx) >>testtrygrep
191 echo "RC=$?" >>testtrygrep
193 echo "---------------------------- Test 22 -----------------------------" >>testtrygrep
194 (cd $srcdir; $valgrind $vjs $pcre2grep -nB3 'four' ./testdata/grepinputx) >>testtrygrep
195 echo "RC=$?" >>testtrygrep
197 echo "---------------------------- Test 23 -----------------------------" >>testtrygrep
198 (cd $srcdir; $valgrind $vjs $pcre2grep -C3 'four' ./testdata/grepinputx) >>testtrygrep
199 echo "RC=$?" >>testtrygrep
201 echo "---------------------------- Test 24 -----------------------------" >>testtrygrep
202 (cd $srcdir; $valgrind $vjs $pcre2grep -A9 'four' ./testdata/grepinputx) >>testtrygrep
203 echo "RC=$?" >>testtrygrep
205 echo "---------------------------- Test 25 -----------------------------" >>testtrygrep
206 (cd $srcdir; $valgrind $vjs $pcre2grep -nB9 'four' ./testdata/grepinputx) >>testtrygrep
207 echo "RC=$?" >>testtrygrep
209 echo "---------------------------- Test 26 -----------------------------" >>testtrygrep
210 (cd $srcdir; $valgrind $vjs $pcre2grep -A9 -B9 'four' ./testdata/grepinputx) >>testtrygrep
211 echo "RC=$?" >>testtrygrep
213 echo "---------------------------- Test 27 -----------------------------" >>testtrygrep
214 (cd $srcdir; $valgrind $vjs $pcre2grep -A10 'four' ./testdata/grepinputx) >>testtrygrep
215 echo "RC=$?" >>testtrygrep
217 echo "---------------------------- Test 28 -----------------------------" >>testtrygrep
218 (cd $srcdir; $valgrind $vjs $pcre2grep -nB10 'four' ./testdata/grepinputx) >>testtrygrep
219 echo "RC=$?" >>testtrygrep
221 echo "---------------------------- Test 29 -----------------------------" >>testtrygrep
222 (cd $srcdir; $valgrind $vjs $pcre2grep -C12 -B10 'four' ./testdata/grepinputx) >>testtrygrep
223 echo "RC=$?" >>testtrygrep
225 echo "---------------------------- Test 30 -----------------------------" >>testtrygrep
226 (cd $srcdir; $valgrind $vjs $pcre2grep -inB3 'pattern' ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
227 echo "RC=$?" >>testtrygrep
229 echo "---------------------------- Test 31 -----------------------------" >>testtrygrep
230 (cd $srcdir; $valgrind $vjs $pcre2grep -inA3 'pattern' ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
231 echo "RC=$?" >>testtrygrep
233 echo "---------------------------- Test 32 -----------------------------" >>testtrygrep
234 (cd $srcdir; $valgrind $vjs $pcre2grep -L 'fox' ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
235 echo "RC=$?" >>testtrygrep
237 echo "---------------------------- Test 33 -----------------------------" >>testtrygrep
238 (cd $srcdir; $valgrind $vjs $pcre2grep 'fox' ./testdata/grepnonexist) >>testtrygrep 2>&1
239 echo "RC=$?" >>testtrygrep
241 echo "---------------------------- Test 34 -----------------------------" >>testtrygrep
242 (cd $srcdir; $valgrind $vjs $pcre2grep -s 'fox' ./testdata/grepnonexist) >>testtrygrep 2>&1
243 echo "RC=$?" >>testtrygrep
245 echo "---------------------------- Test 35 -----------------------------" >>testtrygrep
246 (cd $srcdir; $valgrind $vjs $pcre2grep -L -r --include=grepinputx --include grepinput8 --exclude-dir='^\.' 'fox' ./testdata | sort) >>testtrygrep
247 echo "RC=$?" >>testtrygrep
249 echo "---------------------------- Test 36 -----------------------------" >>testtrygrep
250 (cd $srcdir; $valgrind $vjs $pcre2grep -L -r --include=grepinput --exclude 'grepinput$' --exclude=grepinput8 --exclude-dir='^\.' 'fox' ./testdata | sort) >>testtrygrep
251 echo "RC=$?" >>testtrygrep
253 echo "---------------------------- Test 37 -----------------------------" >>testtrygrep
254 (cd $srcdir; $valgrind $vjs $pcre2grep '^(a+)*\d' ./testdata/grepinput) >>testtrygrep 2>teststderrgrep
255 echo "RC=$?" >>testtrygrep
256 echo "======== STDERR ========" >>testtrygrep
257 cat teststderrgrep >>testtrygrep
259 echo "---------------------------- Test 38 ------------------------------" >>testtrygrep
260 (cd $srcdir; $valgrind $vjs $pcre2grep '>\x00<' ./testdata/grepinput) >>testtrygrep
261 echo "RC=$?" >>testtrygrep
263 echo "---------------------------- Test 39 ------------------------------" >>testtrygrep
264 (cd $srcdir; $valgrind $vjs $pcre2grep -A1 'before the binary zero' ./testdata/grepinput) >>testtrygrep
265 echo "RC=$?" >>testtrygrep
267 echo "---------------------------- Test 40 ------------------------------" >>testtrygrep
268 (cd $srcdir; $valgrind $vjs $pcre2grep -B1 'after the binary zero' ./testdata/grepinput) >>testtrygrep
269 echo "RC=$?" >>testtrygrep
271 echo "---------------------------- Test 41 ------------------------------" >>testtrygrep
272 (cd $srcdir; $valgrind $vjs $pcre2grep -B1 -o '\w+ the binary zero' ./testdata/grepinput) >>testtrygrep
273 echo "RC=$?" >>testtrygrep
275 echo "---------------------------- Test 42 ------------------------------" >>testtrygrep
276 (cd $srcdir; $valgrind $vjs $pcre2grep -B1 -onH '\w+ the binary zero' ./testdata/grepinput) >>testtrygrep
277 echo "RC=$?" >>testtrygrep
279 echo "---------------------------- Test 43 ------------------------------" >>testtrygrep
280 (cd $srcdir; $valgrind $vjs $pcre2grep -on 'before|zero|after' ./testdata/grepinput) >>testtrygrep
281 echo "RC=$?" >>testtrygrep
283 echo "---------------------------- Test 44 ------------------------------" >>testtrygrep
284 (cd $srcdir; $valgrind $vjs $pcre2grep -on -e before -ezero -e after ./testdata/grepinput) >>testtrygrep
285 echo "RC=$?" >>testtrygrep
287 echo "---------------------------- Test 45 ------------------------------" >>testtrygrep
288 (cd $srcdir; $valgrind $vjs $pcre2grep -on -f ./testdata/greplist -e binary ./testdata/grepinput) >>testtrygrep
289 echo "RC=$?" >>testtrygrep
291 echo "---------------------------- Test 46 ------------------------------" >>testtrygrep
292 (cd $srcdir; $valgrind $vjs $pcre2grep -eabc -e '(unclosed' ./testdata/grepinput) 2>>testtrygrep >>testtrygrep
293 echo "RC=$?" >>testtrygrep
295 echo "---------------------------- Test 47 ------------------------------" >>testtrygrep
297 elephant" ./testdata/grepinput) >>testtrygrep
298 echo "RC=$?" >>testtrygrep
300 echo "---------------------------- Test 48 ------------------------------" >>testtrygrep
302 elephant" ./testdata/grepinput) >>testtrygrep
303 echo "RC=$?" >>testtrygrep
305 echo "---------------------------- Test 49 ------------------------------" >>testtrygrep
307 elephant" ./testdata/grepinput) >>testtrygrep
308 echo "RC=$?" >>testtrygrep
310 echo "---------------------------- Test 50 ------------------------------" >>testtrygrep
311 (cd $srcdir; $valgrind $vjs $pcre2grep "^(abc|def|ghi|jkl)" ./testdata/grepinputx) >>testtrygrep
312 echo "RC=$?" >>testtrygrep
314 echo "---------------------------- Test 51 ------------------------------" >>testtrygrep
315 (cd $srcdir; $valgrind $vjs $pcre2grep -Mv "brown\sfox" ./testdata/grepinputv) >>testtrygrep
316 echo "RC=$?" >>testtrygrep
318 echo "---------------------------- Test 52 ------------------------------" >>testtrygrep
319 (cd $srcdir; $valgrind $vjs $pcre2grep --colour=always jumps ./testdata/grepinputv) >>testtrygrep
320 echo "RC=$?" >>testtrygrep
322 echo "---------------------------- Test 53 ------------------------------" >>testtrygrep
323 (cd $srcdir; $valgrind $vjs $pcre2grep --file-offsets 'before|zero|after' ./testdata/grepinput) >>testtrygrep
324 echo "RC=$?" >>testtrygrep
326 echo "---------------------------- Test 54 ------------------------------" >>testtrygrep
327 (cd $srcdir; $valgrind $vjs $pcre2grep --line-offsets 'before|zero|after' ./testdata/grepinput) >>testtrygrep
328 echo "RC=$?" >>testtrygrep
330 echo "---------------------------- Test 55 -----------------------------" >>testtrygrep
331 (cd $srcdir; $valgrind $vjs $pcre2grep -f./testdata/greplist --color=always ./testdata/grepinputx) >>testtrygrep
332 echo "RC=$?" >>testtrygrep
334 echo "---------------------------- Test 56 -----------------------------" >>testtrygrep
335 (cd $srcdir; $valgrind $vjs $pcre2grep -c lazy ./testdata/grepinput*) >>testtrygrep
336 echo "RC=$?" >>testtrygrep
338 echo "---------------------------- Test 57 -----------------------------" >>testtrygrep
339 (cd $srcdir; $valgrind $vjs $pcre2grep -c -l lazy ./testdata/grepinput*) >>testtrygrep
340 echo "RC=$?" >>testtrygrep
342 echo "---------------------------- Test 58 -----------------------------" >>testtrygrep
343 (cd $srcdir; $valgrind $vjs $pcre2grep --regex=PATTERN ./testdata/grepinput) >>testtrygrep
344 echo "RC=$?" >>testtrygrep
346 echo "---------------------------- Test 59 -----------------------------" >>testtrygrep
347 (cd $srcdir; $valgrind $vjs $pcre2grep --regexp=PATTERN ./testdata/grepinput) >>testtrygrep
348 echo "RC=$?" >>testtrygrep
350 echo "---------------------------- Test 60 -----------------------------" >>testtrygrep
351 (cd $srcdir; $valgrind $vjs $pcre2grep --regex PATTERN ./testdata/grepinput) >>testtrygrep
352 echo "RC=$?" >>testtrygrep
354 echo "---------------------------- Test 61 -----------------------------" >>testtrygrep
355 (cd $srcdir; $valgrind $vjs $pcre2grep --regexp PATTERN ./testdata/grepinput) >>testtrygrep
356 echo "RC=$?" >>testtrygrep
358 echo "---------------------------- Test 62 -----------------------------" >>testtrygrep
359 testtrygrep 2>&1
360 echo "RC=$?" >>testtrygrep
362 echo "---------------------------- Test 63 -----------------------------" >>testtrygrep
363 (cd $srcdir; $valgrind $pcre2grep --recursion-limit=1000 --no-jit -M 'This is a file(.|\R)*file.' ./testdata/grepinput) >>testtrygrep 2>&1
364 echo "RC=$?" >>testtrygrep
366 echo "---------------------------- Test 64 ------------------------------" >>testtrygrep
367 (cd $srcdir; $valgrind $vjs $pcre2grep -o1 '(?<=PAT)TERN (ap(pear)s)' ./testdata/grepinput) >>testtrygrep
368 echo "RC=$?" >>testtrygrep
370 echo "---------------------------- Test 65 ------------------------------" >>testtrygrep
371 (cd $srcdir; $valgrind $vjs $pcre2grep -o2 '(?<=PAT)TERN (ap(pear)s)' ./testdata/grepinput) >>testtrygrep
372 echo "RC=$?" >>testtrygrep
374 echo "---------------------------- Test 66 ------------------------------" >>testtrygrep
375 (cd $srcdir; $valgrind $vjs $pcre2grep -o3 '(?<=PAT)TERN (ap(pear)s)' ./testdata/grepinput) >>testtrygrep
376 echo "RC=$?" >>testtrygrep
378 echo "---------------------------- Test 67 ------------------------------" >>testtrygrep
379 (cd $srcdir; $valgrind $vjs $pcre2grep -o12 '(?<=PAT)TERN (ap(pear)s)' ./testdata/grepinput) >>testtrygrep
380 echo "RC=$?" >>testtrygrep
382 echo "---------------------------- Test 68 ------------------------------" >>testtrygrep
383 (cd $srcdir; $valgrind $vjs $pcre2grep --only-matching=2 '(?<=PAT)TERN (ap(pear)s)' ./testdata/grepinput) >>testtrygrep
384 echo "RC=$?" >>testtrygrep
386 echo "---------------------------- Test 69 -----------------------------" >>testtrygrep
387 (cd $srcdir; $valgrind $vjs $pcre2grep -vn --colour=always pattern ./testdata/grepinputx) >>testtrygrep
388 echo "RC=$?" >>testtrygrep
390 echo "---------------------------- Test 70 -----------------------------" >>testtrygrep
391 (cd $srcdir; $valgrind $vjs $pcre2grep --color=always -M "triple:\t.*\n\n" ./testdata/grepinput3) >>testtrygrep
392 echo "RC=$?" >>testtrygrep
394 echo "---------------------------- Test 71 -----------------------------" >>testtrygrep
395 (cd $srcdir; $valgrind $vjs $pcre2grep -o "^01|^02|^03" ./testdata/grepinput) >>testtrygrep
396 echo "RC=$?" >>testtrygrep
398 echo "---------------------------- Test 72 -----------------------------" >>testtrygrep
399 (cd $srcdir; $valgrind $vjs $pcre2grep --color=always "^01|^02|^03" ./testdata/grepinput) >>testtrygrep
400 echo "RC=$?" >>testtrygrep
402 echo "---------------------------- Test 73 -----------------------------" >>testtrygrep
403 (cd $srcdir; $valgrind $vjs $pcre2grep -o --colour=always "^01|^02|^03" ./testdata/grepinput) >>testtrygrep
404 echo "RC=$?" >>testtrygrep
406 echo "---------------------------- Test 74 -----------------------------" >>testtrygrep
407 (cd $srcdir; $valgrind $vjs $pcre2grep -o "^01|02|^03" ./testdata/grepinput) >>testtrygrep
408 echo "RC=$?" >>testtrygrep
410 echo "---------------------------- Test 75 -----------------------------" >>testtrygrep
411 (cd $srcdir; $valgrind $vjs $pcre2grep --color=always "^01|02|^03" ./testdata/grepinput) >>testtrygrep
412 echo "RC=$?" >>testtrygrep
414 echo "---------------------------- Test 76 -----------------------------" >>testtrygrep
415 (cd $srcdir; $valgrind $vjs $pcre2grep -o --colour=always "^01|02|^03" ./testdata/grepinput) >>testtrygrep
416 echo "RC=$?" >>testtrygrep
418 echo "---------------------------- Test 77 -----------------------------" >>testtrygrep
419 (cd $srcdir; $valgrind $vjs $pcre2grep -o "^01|^02|03" ./testdata/grepinput) >>testtrygrep
420 echo "RC=$?" >>testtrygrep
422 echo "---------------------------- Test 78 -----------------------------" >>testtrygrep
423 (cd $srcdir; $valgrind $vjs $pcre2grep --color=always "^01|^02|03" ./testdata/grepinput) >>testtrygrep
424 echo "RC=$?" >>testtrygrep
426 echo "---------------------------- Test 79 -----------------------------" >>testtrygrep
427 (cd $srcdir; $valgrind $vjs $pcre2grep -o --colour=always "^01|^02|03" ./testdata/grepinput) >>testtrygrep
428 echo "RC=$?" >>testtrygrep
430 echo "---------------------------- Test 80 -----------------------------" >>testtrygrep
431 (cd $srcdir; $valgrind $vjs $pcre2grep -o "\b01|\b02" ./testdata/grepinput) >>testtrygrep
432 echo "RC=$?" >>testtrygrep
434 echo "---------------------------- Test 81 -----------------------------" >>testtrygrep
435 (cd $srcdir; $valgrind $vjs $pcre2grep --color=always "\\b01|\\b02" ./testdata/grepinput) >>testtrygrep
436 echo "RC=$?" >>testtrygrep
438 echo "---------------------------- Test 82 -----------------------------" >>testtrygrep
439 (cd $srcdir; $valgrind $vjs $pcre2grep -o --colour=always "\\b01|\\b02" ./testdata/grepinput) >>testtrygrep
440 echo "RC=$?" >>testtrygrep
442 echo "---------------------------- Test 83 -----------------------------" >>testtrygrep
443 (cd $srcdir; $valgrind $vjs $pcre2grep --buffer-size=100 "^a" ./testdata/grepinput3) >>testtrygrep 2>&1
444 echo "RC=$?" >>testtrygrep
446 echo "---------------------------- Test 84 -----------------------------" >>testtrygrep
448 (cd $srcdir; $valgrind $vjs $pcre2grep --file-list ./testdata/grepfilelist --file-list $builddir/testtemp1grep "fox|complete|t7") >>testtrygrep 2>&1
449 echo "RC=$?" >>testtrygrep
451 echo "---------------------------- Test 85 -----------------------------" >>testtrygrep
452 (cd $srcdir; $valgrind $vjs $pcre2grep --file-list=./testdata/grepfilelist "dolor" ./testdata/grepinput3) >>testtrygrep 2>&1
453 echo "RC=$?" >>testtrygrep
455 echo "---------------------------- Test 86 -----------------------------" >>testtrygrep
456 (cd $srcdir; $valgrind $vjs $pcre2grep "dog" ./testdata/grepbinary) >>testtrygrep 2>&1
457 echo "RC=$?" >>testtrygrep
459 echo "---------------------------- Test 87 -----------------------------" >>testtrygrep
460 (cd $srcdir; $valgrind $vjs $pcre2grep "cat" ./testdata/grepbinary) >>testtrygrep 2>&1
461 echo "RC=$?" >>testtrygrep
463 echo "---------------------------- Test 88 -----------------------------" >>testtrygrep
464 (cd $srcdir; $valgrind $vjs $pcre2grep -v "cat" ./testdata/grepbinary) >>testtrygrep 2>&1
465 echo "RC=$?" >>testtrygrep
467 echo "---------------------------- Test 89 -----------------------------" >>testtrygrep
468 (cd $srcdir; $valgrind $vjs $pcre2grep -I "dog" ./testdata/grepbinary) >>testtrygrep 2>&1
469 echo "RC=$?" >>testtrygrep
471 echo "---------------------------- Test 90 -----------------------------" >>testtrygrep
472 (cd $srcdir; $valgrind $vjs $pcre2grep --binary-files=without-match "dog" ./testdata/grepbinary) >>testtrygrep 2>&1
473 echo "RC=$?" >>testtrygrep
475 echo "---------------------------- Test 91 -----------------------------" >>testtrygrep
476 (cd $srcdir; $valgrind $vjs $pcre2grep -a "dog" ./testdata/grepbinary) >>testtrygrep 2>&1
477 echo "RC=$?" >>testtrygrep
479 echo "---------------------------- Test 92 -----------------------------" >>testtrygrep
480 (cd $srcdir; $valgrind $vjs $pcre2grep --binary-files=text "dog" ./testdata/grepbinary) >>testtrygrep 2>&1
481 echo "RC=$?" >>testtrygrep
483 echo "---------------------------- Test 93 -----------------------------" >>testtrygrep
484 (cd $srcdir; $valgrind $vjs $pcre2grep --text "dog" ./testdata/grepbinary) >>testtrygrep 2>&1
485 echo "RC=$?" >>testtrygrep
487 echo "---------------------------- Test 94 -----------------------------" >>testtrygrep
488 (cd $srcdir; $valgrind $vjs $pcre2grep -L -r --include=grepinputx --include grepinput8 'fox' ./testdata/grepinput* | sort) >>testtrygrep
489 echo "RC=$?" >>testtrygrep
491 echo "---------------------------- Test 95 -----------------------------" >>testtrygrep
492 (cd $srcdir; $valgrind $vjs $pcre2grep --file-list ./testdata/grepfilelist --exclude grepinputv "fox|complete") >>testtrygrep 2>&1
493 echo "RC=$?" >>testtrygrep
495 echo "---------------------------- Test 96 -----------------------------" >>testtrygrep
496 (cd $srcdir; $valgrind $vjs $pcre2grep -L -r --include-dir=testdata --exclude '^(?!grepinput)' 'fox' ./test* | sort) >>testtrygrep
497 echo "RC=$?" >>testtrygrep
499 echo "---------------------------- Test 97 -----------------------------" >>testtrygrep
502 (cd $srcdir; $valgrind $vjs $pcre2grep -L -r --include=grepinput --exclude-from $builddir/testtemp1grep --exclude-dir='^\.' 'fox' ./testdata | sort) >>testtrygrep
503 echo "RC=$?" >>testtrygrep
505 echo "---------------------------- Test 98 -----------------------------" >>testtrygrep
508 (cd $srcdir; $valgrind $vjs $pcre2grep -L -r --exclude=grepinput3 --include=grepinput --exclude-from $builddir/testtemp1grep --exclude-dir='^\.' 'fox' ./testdata | sort) >>testtrygrep
509 echo "RC=$?" >>testtrygrep
511 echo "---------------------------- Test 99 -----------------------------" >>testtrygrep
514 (cd $srcdir; $valgrind $vjs $pcre2grep -L -r --include grepinput --exclude-from $builddir/testtemp1grep --exclude-from=$builddir/testtemp2grep --exclude-dir='^\.' 'fox' ./testdata | sort) >>testtrygrep
515 echo "RC=$?" >>testtrygrep
517 echo "---------------------------- Test 100 ------------------------------" >>testtrygrep
518 (cd $srcdir; $valgrind $vjs $pcre2grep -Ho2 --only-matching=1 -o3 '(\w+) binary (\w+)(\.)?' ./testdata/grepinput) >>testtrygrep
519 echo "RC=$?" >>testtrygrep
521 echo "---------------------------- Test 101 ------------------------------" >>testtrygrep
522 (cd $srcdir; $valgrind $vjs $pcre2grep -o3 -Ho2 -o12 --only-matching=1 -o3 --colour=always --om-separator='|' '(\w+) binary (\w+)(\.)?' ./testdata/grepinput) >>testtrygrep
523 echo "RC=$?" >>testtrygrep
525 echo "---------------------------- Test 102 -----------------------------" >>testtrygrep
526 (cd $srcdir; $valgrind $vjs $pcre2grep -n "^$" ./testdata/grepinput3) >>testtrygrep 2>&1
527 echo "RC=$?" >>testtrygrep
529 echo "---------------------------- Test 103 -----------------------------" >>testtrygrep
530 (cd $srcdir; $valgrind $vjs $pcre2grep --only-matching "^$" ./testdata/grepinput3) >>testtrygrep 2>&1
531 echo "RC=$?" >>testtrygrep
533 echo "---------------------------- Test 104 -----------------------------" >>testtrygrep
534 (cd $srcdir; $valgrind $vjs $pcre2grep -n --only-matching "^$" ./testdata/grepinput3) >>testtrygrep 2>&1
535 echo "RC=$?" >>testtrygrep
537 echo "---------------------------- Test 105 -----------------------------" >>testtrygrep
538 (cd $srcdir; $valgrind $vjs $pcre2grep --colour=always "ipsum|" ./testdata/grepinput3) >>testtrygrep 2>&1
539 echo "RC=$?" >>testtrygrep
541 echo "---------------------------- Test 106 -----------------------------" >>testtrygrep
542 (cd $srcdir; echo "a" | $valgrind $vjs $pcre2grep -M "|a" ) >>testtrygrep 2>&1
543 echo "RC=$?" >>testtrygrep
545 echo "---------------------------- Test 107 -----------------------------" >>testtrygrep
548 (cd $srcdir; $valgrind $vjs $pcre2grep --line-offsets '(?<=\Ka)' $builddir/testtemp1grep) >>testtrygrep 2>&1
549 echo "RC=$?" >>testtrygrep
551 echo "---------------------------- Test 108 ------------------------------" >>testtrygrep
552 (cd $srcdir; $valgrind $vjs $pcre2grep -lq PATTERN ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
553 echo "RC=$?" >>testtrygrep
555 echo "---------------------------- Test 109 -----------------------------" >>testtrygrep
556 (cd $srcdir; $valgrind $vjs $pcre2grep -cq lazy ./testdata/grepinput*) >>testtrygrep
557 echo "RC=$?" >>testtrygrep
559 echo "---------------------------- Test 110 -----------------------------" >>testtrygrep
560 (cd $srcdir; $valgrind $vjs $pcre2grep --om-separator / -Mo0 -o1 -o2 'match (\d+):\n (.)\n' testdata/grepinput) >>testtrygrep
561 echo "RC=$?" >>testtrygrep
563 echo "---------------------------- Test 111 -----------------------------" >>testtrygrep
564 (cd $srcdir; $valgrind $vjs $pcre2grep --line-offsets -M 'match (\d+):\n (.)\n' testdata/grepinput) >>testtrygrep
565 echo "RC=$?" >>testtrygrep
567 echo "---------------------------- Test 112 -----------------------------" >>testtrygrep
568 (cd $srcdir; $valgrind $vjs $pcre2grep --file-offsets -M 'match (\d+):\n (.)\n' testdata/grepinput) >>testtrygrep
569 echo "RC=$?" >>testtrygrep
573 $cf $srcdir/testdata/grepoutput testtrygrep
582 echo "---------------------------- Test U1 ------------------------------" >testtrygrep
583 (cd $srcdir; $valgrind $vjs $pcre2grep -n -u --newline=any "^X" ./testdata/grepinput8) >>testtrygrep
584 echo "RC=$?" >>testtrygrep
586 echo "---------------------------- Test U2 ------------------------------" >>testtrygrep
587 (cd $srcdir; $valgrind $vjs $pcre2grep -n -u -C 3 --newline=any "Match" ./testdata/grepinput8) >>testtrygrep
588 echo "RC=$?" >>testtrygrep
590 echo "---------------------------- Test U3 ------------------------------" >>testtrygrep
591 (cd $srcdir; $valgrind $vjs $pcre2grep --line-offsets -u --newline=any '(?<=\K\x{17f})' ./testdata/grepinput8) >>testtrygrep
592 echo "RC=$?" >>testtrygrep
594 $cf $srcdir/testdata/grepoutput8 testtrygrep
612 printf "%c--------------------------- Test N1 ------------------------------\r\n" - >testtrygrep
613 $valgrind $vjs $pcre2grep -n -N CR "^(abc|def|ghi|jkl)" testNinputgrep >>testtrygrep
615 printf "%c--------------------------- Test N2 ------------------------------\r\n" - >>testtrygrep
616 $valgrind $vjs $pcre2grep -n --newline=crlf "^(abc|def|ghi|jkl)" testNinputgrep >>testtrygrep
618 printf "%c--------------------------- Test N3 ------------------------------\r\n" - >>testtrygrep
620 $valgrind $vjs $pcre2grep -n --newline=cr -F "$pattern" testNinputgrep >>testtrygrep
622 printf "%c--------------------------- Test N4 ------------------------------\r\n" - >>testtrygrep
623 $valgrind $vjs $pcre2grep -n --newline=crlf -F -f $srcdir/testdata/greppatN4 testNinputgrep >>testtrygrep
625 printf "%c--------------------------- Test N5 ------------------------------\r\n" - >>testtrygrep
626 $valgrind $vjs $pcre2grep -n --newline=any "^(abc|def|ghi|jkl)" testNinputgrep >>testtrygrep
628 printf "%c--------------------------- Test N6 ------------------------------\r\n" - >>testtrygrep
629 $valgrind $vjs $pcre2grep -n --newline=anycrlf "^(abc|def|ghi|jkl)" testNinputgrep >>testtrygrep
631 $cf $srcdir/testdata/grepoutputN testtrygrep
638 $valgrind $vjs $pcre2grep '(T)(..(.))(?C"/bin/echo|Arg1: [$1] [$2] [$3]|Arg2: $|${1}$| ($4) ($14) ($0)")()' $srcdir/testdata/grepinputv >testtrygrep
639 $valgrind $vjs $pcre2grep '(T)(..(.))()()()()()()()(..)(?C"/bin/echo|Arg1: [$11] [${11}]")' $srcdir/testdata/grepinputv >>testtrygrep
640 $cf $srcdir/testdata/grepoutputC testtrygrep
651 echo '' >testtrygrep
657 rm -f testNinputgrep teststderrgrep testtrygrep testtemp1grep testtemp2grep