diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2010-10-31 18:18:48 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2010-10-31 18:18:48 +0000 |
commit | 1baf641ddd67f78693280553a81a05b69cbb3fff (patch) | |
tree | 53f082312a47154399f1b42fa6f642825c045e1d /RunGrepTest | |
parent | 8d1ceb3140a89b5e44d9464a0f6dd4251a24da78 (diff) | |
download | pcre-1baf641ddd67f78693280553a81a05b69cbb3fff.tar.gz |
Added parentheses argument to -o and --only-matching options of pcregrep.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@565 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'RunGrepTest')
-rwxr-xr-x | RunGrepTest | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/RunGrepTest b/RunGrepTest index bce1a14..7ba0141 100755 --- a/RunGrepTest +++ b/RunGrepTest @@ -307,6 +307,26 @@ echo "---------------------------- Test 63 -----------------------------" >>test (cd $srcdir; $valgrind $pcregrep --recursion-limit=1000 -M 'This is a file(.|\R)*file.' ./testdata/grepinput) >>testtry 2>&1 echo "RC=$?" >>testtry +echo "---------------------------- Test 64 ------------------------------" >>testtry +(cd $srcdir; $valgrind $pcregrep -o1 '(?<=PAT)TERN (ap(pear)s)' ./testdata/grepinput) >>testtry +echo "RC=$?" >>testtry + +echo "---------------------------- Test 65 ------------------------------" >>testtry +(cd $srcdir; $valgrind $pcregrep -o2 '(?<=PAT)TERN (ap(pear)s)' ./testdata/grepinput) >>testtry +echo "RC=$?" >>testtry + +echo "---------------------------- Test 66 ------------------------------" >>testtry +(cd $srcdir; $valgrind $pcregrep -o3 '(?<=PAT)TERN (ap(pear)s)' ./testdata/grepinput) >>testtry +echo "RC=$?" >>testtry + +echo "---------------------------- Test 67 ------------------------------" >>testtry +(cd $srcdir; $valgrind $pcregrep -o12 '(?<=PAT)TERN (ap(pear)s)' ./testdata/grepinput) >>testtry +echo "RC=$?" >>testtry + +echo "---------------------------- Test 68 ------------------------------" >>testtry +(cd $srcdir; $valgrind $pcregrep --only-matching=2 '(?<=PAT)TERN (ap(pear)s)' ./testdata/grepinput) >>testtry +echo "RC=$?" >>testtry + # Now compare the results. $cf $srcdir/testdata/grepoutput testtry |