Home | History | Annotate | Download | only in dist

Lines Matching refs:testtrygrep

72 echo "---------------------------- Test 1 ------------------------------" >testtrygrep
73 (cd $srcdir; $valgrind $pcregrep PATTERN ./testdata/grepinput) >>testtrygrep
74 echo "RC=$?" >>testtrygrep
76 echo "---------------------------- Test 2 ------------------------------" >>testtrygrep
77 (cd $srcdir; $valgrind $pcregrep '^PATTERN' ./testdata/grepinput) >>testtrygrep
78 echo "RC=$?" >>testtrygrep
80 echo "---------------------------- Test 3 ------------------------------" >>testtrygrep
81 (cd $srcdir; $valgrind $pcregrep -in PATTERN ./testdata/grepinput) >>testtrygrep
82 echo "RC=$?" >>testtrygrep
84 echo "---------------------------- Test 4 ------------------------------" >>testtrygrep
85 (cd $srcdir; $valgrind $pcregrep -ic PATTERN ./testdata/grepinput) >>testtrygrep
86 echo "RC=$?" >>testtrygrep
88 echo "---------------------------- Test 5 ------------------------------" >>testtrygrep
89 (cd $srcdir; $valgrind $pcregrep -in PATTERN ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
90 echo "RC=$?" >>testtrygrep
92 echo "---------------------------- Test 6 ------------------------------" >>testtrygrep
93 (cd $srcdir; $valgrind $pcregrep -inh PATTERN ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
94 echo "RC=$?" >>testtrygrep
96 echo "---------------------------- Test 7 ------------------------------" >>testtrygrep
97 (cd $srcdir; $valgrind $pcregrep -il PATTERN ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
98 echo "RC=$?" >>testtrygrep
100 echo "---------------------------- Test 8 ------------------------------" >>testtrygrep
101 (cd $srcdir; $valgrind $pcregrep -l PATTERN ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
102 echo "RC=$?" >>testtrygrep
104 echo "---------------------------- Test 9 ------------------------------" >>testtrygrep
105 (cd $srcdir; $valgrind $pcregrep -q PATTERN ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
106 echo "RC=$?" >>testtrygrep
108 echo "---------------------------- Test 10 -----------------------------" >>testtrygrep
109 (cd $srcdir; $valgrind $pcregrep -q NEVER-PATTERN ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
110 echo "RC=$?" >>testtrygrep
112 echo "---------------------------- Test 11 -----------------------------" >>testtrygrep
113 (cd $srcdir; $valgrind $pcregrep -vn pattern ./testdata/grepinputx) >>testtrygrep
114 echo "RC=$?" >>testtrygrep
116 echo "---------------------------- Test 12 -----------------------------" >>testtrygrep
117 (cd $srcdir; $valgrind $pcregrep -ix pattern ./testdata/grepinputx) >>testtrygrep
118 echo "RC=$?" >>testtrygrep
120 echo "---------------------------- Test 13 -----------------------------" >>testtrygrep
122 (cd $srcdir; $valgrind $pcregrep -f./testdata/greplist -f $builddir/testtemp1grep ./testdata/grepinputx) >>testtrygrep
123 echo "RC=$?" >>testtrygrep
125 echo "---------------------------- Test 14 -----------------------------" >>testtrygrep
126 (cd $srcdir; $valgrind $pcregrep -w pat ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
127 echo "RC=$?" >>testtrygrep
129 echo "---------------------------- Test 15 -----------------------------" >>testtrygrep
130 (cd $srcdir; $valgrind $pcregrep 'abc^*' ./testdata/grepinput) 2>>testtrygrep >>testtrygrep
131 echo "RC=$?" >>testtrygrep
133 echo "---------------------------- Test 16 -----------------------------" >>testtrygrep
134 (cd $srcdir; $valgrind $pcregrep abc ./testdata/grepinput ./testdata/nonexistfile) 2>>testtrygrep >>testtrygrep
135 echo "RC=$?" >>testtrygrep
137 echo "---------------------------- Test 17 -----------------------------" >>testtrygrep
138 (cd $srcdir; $valgrind $pcregrep -M 'the\noutput' ./testdata/grepinput) >>testtrygrep
139 echo "RC=$?" >>testtrygrep
141 echo "---------------------------- Test 18 -----------------------------" >>testtrygrep
142 (cd $srcdir; $valgrind $pcregrep -Mn '(the\noutput|dog\.\n--)' ./testdata/grepinput) >>testtrygrep
143 echo "RC=$?" >>testtrygrep
145 echo "---------------------------- Test 19 -----------------------------" >>testtrygrep
146 (cd $srcdir; $valgrind $pcregrep -Mix 'Pattern' ./testdata/grepinputx) >>testtrygrep
147 echo "RC=$?" >>testtrygrep
149 echo "---------------------------- Test 20 -----------------------------" >>testtrygrep
150 (cd $srcdir; $valgrind $pcregrep -Mixn 'complete pair\nof lines' ./testdata/grepinputx) >>testtrygrep
151 echo "RC=$?" >>testtrygrep
153 echo "---------------------------- Test 21 -----------------------------" >>testtrygrep
154 (cd $srcdir; $valgrind $pcregrep -nA3 'four' ./testdata/grepinputx) >>testtrygrep
155 echo "RC=$?" >>testtrygrep
157 echo "---------------------------- Test 22 -----------------------------" >>testtrygrep
158 (cd $srcdir; $valgrind $pcregrep -nB3 'four' ./testdata/grepinputx) >>testtrygrep
159 echo "RC=$?" >>testtrygrep
161 echo "---------------------------- Test 23 -----------------------------" >>testtrygrep
162 (cd $srcdir; $valgrind $pcregrep -C3 'four' ./testdata/grepinputx) >>testtrygrep
163 echo "RC=$?" >>testtrygrep
165 echo "---------------------------- Test 24 -----------------------------" >>testtrygrep
166 (cd $srcdir; $valgrind $pcregrep -A9 'four' ./testdata/grepinputx) >>testtrygrep
167 echo "RC=$?" >>testtrygrep
169 echo "---------------------------- Test 25 -----------------------------" >>testtrygrep
170 (cd $srcdir; $valgrind $pcregrep -nB9 'four' ./testdata/grepinputx) >>testtrygrep
171 echo "RC=$?" >>testtrygrep
173 echo "---------------------------- Test 26 -----------------------------" >>testtrygrep
174 (cd $srcdir; $valgrind $pcregrep -A9 -B9 'four' ./testdata/grepinputx) >>testtrygrep
175 echo "RC=$?" >>testtrygrep
177 echo "---------------------------- Test 27 -----------------------------" >>testtrygrep
178 (cd $srcdir; $valgrind $pcregrep -A10 'four' ./testdata/grepinputx) >>testtrygrep
179 echo "RC=$?" >>testtrygrep
181 echo "---------------------------- Test 28 -----------------------------" >>testtrygrep
182 (cd $srcdir; $valgrind $pcregrep -nB10 'four' ./testdata/grepinputx) >>testtrygrep
183 echo "RC=$?" >>testtrygrep
185 echo "---------------------------- Test 29 -----------------------------" >>testtrygrep
186 (cd $srcdir; $valgrind $pcregrep -C12 -B10 'four' ./testdata/grepinputx) >>testtrygrep
187 echo "RC=$?" >>testtrygrep
189 echo "---------------------------- Test 30 -----------------------------" >>testtrygrep
190 (cd $srcdir; $valgrind $pcregrep -inB3 'pattern' ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
191 echo "RC=$?" >>testtrygrep
193 echo "---------------------------- Test 31 -----------------------------" >>testtrygrep
194 (cd $srcdir; $valgrind $pcregrep -inA3 'pattern' ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
195 echo "RC=$?" >>testtrygrep
197 echo "---------------------------- Test 32 -----------------------------" >>testtrygrep
198 (cd $srcdir; $valgrind $pcregrep -L 'fox' ./testdata/grepinput ./testdata/grepinputx) >>testtrygrep
199 echo "RC=$?" >>testtrygrep
201 echo "---------------------------- Test 33 -----------------------------" >>testtrygrep
202 (cd $srcdir; $valgrind $pcregrep 'fox' ./testdata/grepnonexist) >>testtrygrep 2>&1
203 echo "RC=$?" >>testtrygrep
205 echo "---------------------------- Test 34 -----------------------------" >>testtrygrep
206 (cd $srcdir; $valgrind $pcregrep -s 'fox' ./testdata/grepnonexist) >>testtrygrep 2>&1
207 echo "RC=$?" >>testtrygrep
209 echo "---------------------------- Test 35 -----------------------------" >>testtrygrep
210 (cd $srcdir; $valgrind $pcregrep -L -r --include=grepinputx --include grepinput8 --exclude-dir='^\.' 'fox' ./testdata | sort) >>testtrygrep
211 echo "RC=$?" >>testtrygrep
213 echo "---------------------------- Test 36 -----------------------------" >>testtrygrep
214 (cd $srcdir; $valgrind $pcregrep -L -r --include=grepinput --exclude 'grepinput$' --exclude=grepinput8 --exclude-dir='^\.' 'fox' ./testdata | sort) >>testtrygrep
215 echo "RC=$?" >>testtrygrep
217 echo "---------------------------- Test 37 -----------------------------" >>testtrygrep
218 (cd $srcdir; $valgrind $pcregrep '^(a+)*\d' ./testdata/grepinput) >>testtrygrep 2>teststderrgrep
219 echo "RC=$?" >>testtrygrep
220 echo "======== STDERR ========" >>testtrygrep
221 cat teststderrgrep >>testtrygrep
223 echo "---------------------------- Test 38 ------------------------------" >>testtrygrep
224 (cd $srcdir; $valgrind $pcregrep '>\x00<' ./testdata/grepinput) >>testtrygrep
225 echo "RC=$?" >>testtrygrep
227 echo "---------------------------- Test 39 ------------------------------" >>testtrygrep
228 (cd $srcdir; $valgrind $pcregrep -A1 'before the binary zero' ./testdata/grepinput) >>testtrygrep
229 echo "RC=$?" >>testtrygrep
231 echo "---------------------------- Test 40 ------------------------------" >>testtrygrep
232 (cd $srcdir; $valgrind $pcregrep -B1 'after the binary zero' ./testdata/grepinput) >>testtrygrep
233 echo "RC=$?" >>testtrygrep
235 echo "---------------------------- Test 41 ------------------------------" >>testtrygrep
236 (cd $srcdir; $valgrind $pcregrep -B1 -o '\w+ the binary zero' ./testdata/grepinput) >>testtrygrep
237 echo "RC=$?" >>testtrygrep
239 echo "---------------------------- Test 42 ------------------------------" >>testtrygrep
240 (cd $srcdir; $valgrind $pcregrep -B1 -onH '\w+ the binary zero' ./testdata/grepinput) >>testtrygrep
241 echo "RC=$?" >>testtrygrep
243 echo "---------------------------- Test 43 ------------------------------" >>testtrygrep
244 (cd $srcdir; $valgrind $pcregrep -on 'before|zero|after' ./testdata/grepinput) >>testtrygrep
245 echo "RC=$?" >>testtrygrep
247 echo "---------------------------- Test 44 ------------------------------" >>testtrygrep
248 (cd $srcdir; $valgrind $pcregrep -on -e before -ezero -e after ./testdata/grepinput) >>testtrygrep
249 echo "RC=$?" >>testtrygrep
251 echo "---------------------------- Test 45 ------------------------------" >>testtrygrep
252 (cd $srcdir; $valgrind $pcregrep -on -f ./testdata/greplist -e binary ./testdata/grepinput) >>testtrygrep
253 echo "RC=$?" >>testtrygrep
255 echo "---------------------------- Test 46 ------------------------------" >>testtrygrep
256 (cd $srcdir; $valgrind $pcregrep -eabc -e '(unclosed' ./testdata/grepinput) 2>>testtrygrep >>testtrygrep
257 echo "RC=$?" >>testtrygrep
259 echo "---------------------------- Test 47 ------------------------------" >>testtrygrep
261 elephant" ./testdata/grepinput) >>testtrygrep
262 echo "RC=$?" >>testtrygrep
264 echo "---------------------------- Test 48 ------------------------------" >>testtrygrep
266 elephant" ./testdata/grepinput) >>testtrygrep
267 echo "RC=$?" >>testtrygrep
269 echo "---------------------------- Test 49 ------------------------------" >>testtrygrep
271 elephant" ./testdata/grepinput) >>testtrygrep
272 echo "RC=$?" >>testtrygrep
274 echo "---------------------------- Test 50 ------------------------------" >>testtrygrep
275 (cd $srcdir; $valgrind $pcregrep "^(abc|def|ghi|jkl)" ./testdata/grepinputx) >>testtrygrep
276 echo "RC=$?" >>testtrygrep
278 echo "---------------------------- Test 51 ------------------------------" >>testtrygrep
279 (cd $srcdir; $valgrind $pcregrep -Mv "brown\sfox" ./testdata/grepinputv) >>testtrygrep
280 echo "RC=$?" >>testtrygrep
282 echo "---------------------------- Test 52 ------------------------------" >>testtrygrep
283 (cd $srcdir; $valgrind $pcregrep --colour=always jumps ./testdata/grepinputv) >>testtrygrep
284 echo "RC=$?" >>testtrygrep
286 echo "---------------------------- Test 53 ------------------------------" >>testtrygrep
287 (cd $srcdir; $valgrind $pcregrep --file-offsets 'before|zero|after' ./testdata/grepinput) >>testtrygrep
288 echo "RC=$?" >>testtrygrep
290 echo "---------------------------- Test 54 ------------------------------" >>testtrygrep
291 (cd $srcdir; $valgrind $pcregrep --line-offsets 'before|zero|after' ./testdata/grepinput) >>testtrygrep
292 echo "RC=$?" >>testtrygrep
294 echo "---------------------------- Test 55 -----------------------------" >>testtrygrep
295 (cd $srcdir; $valgrind $pcregrep -f./testdata/greplist --color=always ./testdata/grepinputx) >>testtrygrep
296 echo "RC=$?" >>testtrygrep
298 echo "---------------------------- Test 56 -----------------------------" >>testtrygrep
299 (cd $srcdir; $valgrind $pcregrep -c lazy ./testdata/grepinput*) >>testtrygrep
300 echo "RC=$?" >>testtrygrep
302 echo "---------------------------- Test 57 -----------------------------" >>testtrygrep
303 (cd $srcdir; $valgrind $pcregrep -c -l lazy ./testdata/grepinput*) >>testtrygrep
304 echo "RC=$?" >>testtrygrep
306 echo "---------------------------- Test 58 -----------------------------" >>testtrygrep
307 (cd $srcdir; $valgrind $pcregrep --regex=PATTERN ./testdata/grepinput) >>testtrygrep
308 echo "RC=$?" >>testtrygrep
310 echo "---------------------------- Test 59 -----------------------------" >>testtrygrep
311 (cd $srcdir; $valgrind $pcregrep --regexp=PATTERN ./testdata/grepinput) >>testtrygrep
312 echo "RC=$?" >>testtrygrep
314 echo "---------------------------- Test 60 -----------------------------" >>testtrygrep
315 (cd $srcdir; $valgrind $pcregrep --regex PATTERN ./testdata/grepinput) >>testtrygrep
316 echo "RC=$?" >>testtrygrep
318 echo "---------------------------- Test 61 -----------------------------" >>testtrygrep
319 (cd $srcdir; $valgrind $pcregrep --regexp PATTERN ./testdata/grepinput) >>testtrygrep
320 echo "RC=$?" >>testtrygrep
322 echo "---------------------------- Test 62 -----------------------------" >>testtrygrep
323 (cd $srcdir; $valgrind $pcregrep --match-limit=1000 --no-jit -M 'This is a file(.|\R)*file.' ./testdata/grepinput) >>testtrygrep 2>&1
324 echo "RC=$?" >>testtrygrep
326 echo "---------------------------- Test 63 -----------------------------" >>testtrygrep
327 (cd $srcdir; $valgrind $pcregrep --recursion-limit=1000 --no-jit -M 'This is a file(.|\R)*file.' ./testdata/grepinput) >>testtrygrep 2>&1
328 echo "RC=$?" >>testtrygrep
330 echo "---------------------------- Test 64 ------------------------------" >>testtrygrep
331 (cd $srcdir; $valgrind $pcregrep -o1 '(?<=PAT)TERN (ap(pear)s)' ./testdata/grepinput) >>testtrygrep
332 echo "RC=$?" >>testtrygrep
334 echo "---------------------------- Test 65 ------------------------------" >>testtrygrep
335 (cd $srcdir; $valgrind $pcregrep -o2 '(?<=PAT)TERN (ap(pear)s)' ./testdata/grepinput) >>testtrygrep
336 echo "RC=$?" >>testtrygrep
338 echo "---------------------------- Test 66 ------------------------------" >>testtrygrep
339 (cd $srcdir; $valgrind $pcregrep -o3 '(?<=PAT)TERN (ap(pear)s)' ./testdata/grepinput) >>testtrygrep
340 echo "RC=$?" >>testtrygrep
342 echo "---------------------------- Test 67 ------------------------------" >>testtrygrep
343 (cd $srcdir; $valgrind $pcregrep -o12 '(?<=PAT)TERN (ap(pear)s)' ./testdata/grepinput) >>testtrygrep
344 echo "RC=$?" >>testtrygrep
346 testtrygrep
347 (cd $srcdir; $valgrind $pcregrep --only-matching=2 '(?<=PAT)TERN (ap(pear)s)' ./testdata/grepinput) >>testtrygrep
348 echo "RC=$?" >>testtrygrep
350 echo "---------------------------- Test 69 -----------------------------" >>testtrygrep
351 (cd $srcdir; $valgrind $pcregrep -vn --colour=always pattern ./testdata/grepinputx) >>testtrygrep
352 echo "RC=$?" >>testtrygrep
354 echo "---------------------------- Test 70 -----------------------------" >>testtrygrep
355 (cd $srcdir; $valgrind $pcregrep --color=always -M "triple:\t.*\n\n" ./testdata/grepinput3) >>testtrygrep
356 echo "RC=$?" >>testtrygrep
358 echo "---------------------------- Test 71 -----------------------------" >>testtrygrep
359 (cd $srcdir; $valgrind $pcregrep -o "^01|^02|^03" ./testdata/grepinput) >>testtrygrep
360 echo "RC=$?" >>testtrygrep
362 echo "---------------------------- Test 72 -----------------------------" >>testtrygrep
363 (cd $srcdir; $valgrind $pcregrep --color=always "^01|^02|^03" ./testdata/grepinput) >>testtrygrep
364 echo "RC=$?" >>testtrygrep
366 echo "---------------------------- Test 73 -----------------------------" >>testtrygrep
367 (cd $srcdir; $valgrind $pcregrep -o --colour=always "^01|^02|^03" ./testdata/grepinput) >>testtrygrep
368 echo "RC=$?" >>testtrygrep
370 echo "---------------------------- Test 74 -----------------------------" >>testtrygrep
371 (cd $srcdir; $valgrind $pcregrep -o "^01|02|^03" ./testdata/grepinput) >>testtrygrep
372 echo "RC=$?" >>testtrygrep
374 echo "---------------------------- Test 75 -----------------------------" >>testtrygrep
375 (cd $srcdir; $valgrind $pcregrep --color=always "^01|02|^03" ./testdata/grepinput) >>testtrygrep
376 echo "RC=$?" >>testtrygrep
378 echo "---------------------------- Test 76 -----------------------------" >>testtrygrep
379 (cd $srcdir; $valgrind $pcregrep -o --colour=always "^01|02|^03" ./testdata/grepinput) >>testtrygrep
380 echo "RC=$?" >>testtrygrep
382 echo "---------------------------- Test 77 -----------------------------" >>testtrygrep
383 (cd $srcdir; $valgrind $pcregrep -o "^01|^02|03" ./testdata/grepinput) >>testtrygrep
384 echo "RC=$?" >>testtrygrep
386 echo "---------------------------- Test 78 -----------------------------" >>testtrygrep
387 (cd $srcdir; $valgrind $pcregrep --color=always "^01|^02|03" ./testdata/grepinput) >>testtrygrep
388 echo "RC=$?" >>testtrygrep
390 echo "---------------------------- Test 79 -----------------------------" >>testtrygrep
391 (cd $srcdir; $valgrind $pcregrep -o --colour=always "^01|^02|03" ./testdata/grepinput) >>testtrygrep
392 echo "RC=$?" >>testtrygrep
394 echo "---------------------------- Test 80 -----------------------------" >>testtrygrep
395 (cd $srcdir; $valgrind $pcregrep -o "\b01|\b02" ./testdata/grepinput) >>testtrygrep
396 echo "RC=$?" >>testtrygrep
398 echo "---------------------------- Test 81 -----------------------------" >>testtrygrep
399 (cd $srcdir; $valgrind $pcregrep --color=always "\\b01|\\b02" ./testdata/grepinput) >>testtrygrep
400 echo "RC=$?" >>testtrygrep
402 echo "---------------------------- Test 82 -----------------------------" >>testtrygrep
403 (cd $srcdir; $valgrind $pcregrep -o --colour=always "\\b01|\\b02" ./testdata/grepinput) >>testtrygrep
404 echo "RC=$?" >>testtrygrep
406 echo "---------------------------- Test 83 -----------------------------" >>testtrygrep
407 (cd $srcdir; $valgrind $pcregrep --buffer-size=100 "^a" ./testdata/grepinput3) >>testtrygrep 2>&1
408 echo "RC=$?" >>testtrygrep
410 echo "---------------------------- Test 84 -----------------------------" >>testtrygrep
412 (cd $srcdir; $valgrind $pcregrep --file-list ./testdata/grepfilelist --file-list $builddir/testtemp1grep "fox|complete|t7") >>testtrygrep 2>&1
413 echo "RC=$?" >>testtrygrep
415 echo "---------------------------- Test 85 -----------------------------" >>testtrygrep
416 (cd $srcdir; $valgrind $pcregrep --file-list=./testdata/grepfilelist "dolor" ./testdata/grepinput3) >>testtrygrep 2>&1
417 echo "RC=$?" >>testtrygrep
419 echo "---------------------------- Test 86 -----------------------------" >>testtrygrep
420 (cd $srcdir; $valgrind $pcregrep "dog" ./testdata/grepbinary) >>testtrygrep 2>&1
421 echo "RC=$?" >>testtrygrep
423 echo "---------------------------- Test 87 -----------------------------" >>testtrygrep
424 (cd $srcdir; $valgrind $pcregrep "cat" ./testdata/grepbinary) >>testtrygrep 2>&1
425 echo "RC=$?" >>testtrygrep
427 echo "---------------------------- Test 88 -----------------------------" >>testtrygrep
428 (cd $srcdir; $valgrind $pcregrep -v "cat" ./testdata/grepbinary) >>testtrygrep 2>&1
429 echo "RC=$?" >>testtrygrep
431 echo "---------------------------- Test 89 -----------------------------" >>testtrygrep
432 (cd $srcdir; $valgrind $pcregrep -I "dog" ./testdata/grepbinary) >>testtrygrep 2>&1
433 echo "RC=$?" >>testtrygrep
435 echo "---------------------------- Test 90 -----------------------------" >>testtrygrep
436 (cd $srcdir; $valgrind $pcregrep --binary-files=without-match "dog" ./testdata/grepbinary) >>testtrygrep 2>&1
437 echo "RC=$?" >>testtrygrep
439 echo "---------------------------- Test 91 -----------------------------" >>testtrygrep
440 (cd $srcdir; $valgrind $pcregrep -a "dog" ./testdata/grepbinary) >>testtrygrep 2>&1
441 echo "RC=$?" >>testtrygrep
443 echo "---------------------------- Test 92 -----------------------------" >>testtrygrep
444 (cd $srcdir; $valgrind $pcregrep --binary-files=text "dog" ./testdata/grepbinary) >>testtrygrep 2>&1
445 echo "RC=$?" >>testtrygrep
447 echo "---------------------------- Test 93 -----------------------------" >>testtrygrep
448 (cd $srcdir; $valgrind $pcregrep --text "dog" ./testdata/grepbinary) >>testtrygrep 2>&1
449 echo "RC=$?" >>testtrygrep
451 echo "---------------------------- Test 94 -----------------------------" >>testtrygrep
452 (cd $srcdir; $valgrind $pcregrep -L -r --include=grepinputx --include grepinput8 'fox' ./testdata/grepinput* | sort) >>testtrygrep
453 echo "RC=$?" >>testtrygrep
455 echo "---------------------------- Test 95 -----------------------------" >>testtrygrep
456 (cd $srcdir; $valgrind $pcregrep --file-list ./testdata/grepfilelist --exclude grepinputv "fox|complete") >>testtrygrep 2>&1
457 echo "RC=$?" >>testtrygrep
459 echo "---------------------------- Test 96 -----------------------------" >>testtrygrep
460 (cd $srcdir; $valgrind $pcregrep -L -r --include-dir=testdata --exclude '^(?!grepinput)' 'fox' ./test* | sort) >>testtrygrep
461 echo "RC=$?" >>testtrygrep
463 echo "---------------------------- Test 97 -----------------------------" >>testtrygrep
466 (cd $srcdir; $valgrind $pcregrep -L -r --include=grepinput --exclude-from $builddir/testtemp1grep --exclude-dir='^\.' 'fox' ./testdata | sort) >>testtrygrep
467 echo "RC=$?" >>testtrygrep
469 echo "---------------------------- Test 98 -----------------------------" >>testtrygrep
472 (cd $srcdir; $valgrind $pcregrep -L -r --exclude=grepinput3 --include=grepinput --exclude-from $builddir/testtemp1grep --exclude-dir='^\.' 'fox' ./testdata | sort) >>testtrygrep
473 echo "RC=$?" >>testtrygrep
475 echo "---------------------------- Test 99 -----------------------------" >>testtrygrep
478 (cd $srcdir; $valgrind $pcregrep -L -r --include grepinput --exclude-from $builddir/testtemp1grep --exclude-from=$builddir/testtemp2grep --exclude-dir='^\.' 'fox' ./testdata | sort) >>testtrygrep
479 echo "RC=$?" >>testtrygrep
481 echo "---------------------------- Test 100 ------------------------------" >>testtrygrep
482 (cd $srcdir; $valgrind $pcregrep -Ho2 --only-matching=1 -o3 '(\w+) binary (\w+)(\.)?' ./testdata/grepinput) >>testtrygrep
483 echo "RC=$?" >>testtrygrep
485 echo "---------------------------- Test 101 ------------------------------" >>testtrygrep
486 (cd $srcdir; $valgrind $pcregrep -o3 -Ho2 -o12 --only-matching=1 -o3 --colour=always --om-separator='|' '(\w+) binary (\w+)(\.)?' ./testdata/grepinput) >>testtrygrep
487 echo "RC=$?" >>testtrygrep
489 echo "---------------------------- Test 102 -----------------------------" >>testtrygrep
490 (cd $srcdir; $valgrind $pcregrep -n "^$" ./testdata/grepinput3) >>testtrygrep 2>&1
491 echo "RC=$?" >>testtrygrep
493 echo "---------------------------- Test 103 -----------------------------" >>testtrygrep
494 (cd $srcdir; $valgrind $pcregrep --only-matching "^$" ./testdata/grepinput3) >>testtrygrep 2>&1
495 echo "RC=$?" >>testtrygrep
497 echo "---------------------------- Test 104 -----------------------------" >>testtrygrep
498 (cd $srcdir; $valgrind $pcregrep -n --only-matching "^$" ./testdata/grepinput3) >>testtrygrep 2>&1
499 echo "RC=$?" >>testtrygrep
501 echo "---------------------------- Test 105 -----------------------------" >>testtrygrep
502 (cd $srcdir; $valgrind $pcregrep --colour=always "ipsum|" ./testdata/grepinput3) >>testtrygrep 2>&1
503 echo "RC=$?" >>testtrygrep
505 echo "---------------------------- Test 106 -----------------------------" >>testtrygrep
506 (cd $srcdir; echo "a" | $valgrind $pcregrep -M "|a" ) >>testtrygrep 2>&1
507 echo "RC=$?" >>testtrygrep
512 $cf $srcdir/testdata/grepoutput testtrygrep
521 echo "---------------------------- Test U1 ------------------------------" >testtrygrep
522 (cd $srcdir; $valgrind $pcregrep -n -u --newline=any "^X" ./testdata/grepinput8) >>testtrygrep
523 echo "RC=$?" >>testtrygrep
525 echo "---------------------------- Test U2 ------------------------------" >>testtrygrep
526 (cd $srcdir; $valgrind $pcregrep -n -u -C 3 --newline=any "Match" ./testdata/grepinput8) >>testtrygrep
527 echo "RC=$?" >>testtrygrep
529 $cf $srcdir/testdata/grepoutput8 testtrygrep
547 printf "%c--------------------------- Test N1 ------------------------------\r\n" - >testtrygrep
548 $valgrind $pcregrep -n -N CR "^(abc|def|ghi|jkl)" testNinputgrep >>testtrygrep
550 printf "%c--------------------------- Test N2 ------------------------------\r\n" - >>testtrygrep
551 $valgrind $pcregrep -n --newline=crlf "^(abc|def|ghi|jkl)" testNinputgrep >>testtrygrep
553 printf "%c--------------------------- Test N3 ------------------------------\r\n" - >>testtrygrep
555 $valgrind $pcregrep -n --newline=cr -F "$pattern" testNinputgrep >>testtrygrep
557 printf "%c--------------------------- Test N4 ------------------------------\r\n" - >>testtrygrep
558 $valgrind $pcregrep -n --newline=crlf -F -f $srcdir/testdata/greppatN4 testNinputgrep >>testtrygrep
560 printf "%c--------------------------- Test N5 ------------------------------\r\n" - >>testtrygrep
561 $valgrind $pcregrep -n --newline=any "^(abc|def|ghi|jkl)" testNinputgrep >>testtrygrep
563 printf "%c--------------------------- Test N6 ------------------------------\r\n" - >>testtrygrep
564 $valgrind $pcregrep -n --newline=anycrlf "^(abc|def|ghi|jkl)" testNinputgrep >>testtrygrep
566 $cf $srcdir/testdata/grepoutputN testtrygrep