242 |
pattern=`printf 'def\rjkl'` |
pattern=`printf 'def\rjkl'` |
243 |
(cd $srcdir; $valgrind $pcregrep --newline=cr -F "$pattern" ./testdata/grepinputx) >>testtry |
(cd $srcdir; $valgrind $pcregrep --newline=cr -F "$pattern" ./testdata/grepinputx) >>testtry |
244 |
|
|
245 |
echo "---------------------------- Test n$ ------------------------------" >>testtry |
echo "---------------------------- Test N4 ------------------------------" >>testtry |
246 |
pattern=`printf 'xxx\r\njkl'` |
pattern=`printf 'xxx\r\njkl'` |
247 |
(cd $srcdir; $valgrind $pcregrep --newline=crlf -F "$pattern" ./testdata/grepinputx) >>testtry |
(cd $srcdir; $valgrind $pcregrep --newline=crlf -F "$pattern" ./testdata/grepinputx) >>testtry |
248 |
|
|
249 |
echo "---------------------------- Test N5 ------------------------------" >>testtry |
echo "---------------------------- Test N5 ------------------------------" >>testtry |
250 |
(cd $srcdir; $valgrind $pcregrep -n --newline=any "^(abc|def|ghi|jkl)" ./testdata/grepinputx) >>testtry |
(cd $srcdir; $valgrind $pcregrep -n --newline=any "^(abc|def|ghi|jkl)" ./testdata/grepinputx) >>testtry |
251 |
|
|
252 |
|
echo "---------------------------- Test N6 ------------------------------" >>testtry |
253 |
|
(cd $srcdir; $valgrind $pcregrep -n --newline=anycrlf "^(abc|def|ghi|jkl)" ./testdata/grepinputx) >>testtry |
254 |
|
|
255 |
$cf testtry $srcdir/testdata/grepoutputN |
$cf testtry $srcdir/testdata/grepoutputN |
256 |
if [ $? != 0 ] ; then exit 1; fi |
if [ $? != 0 ] ; then exit 1; fi |
257 |
|
|