summaryrefslogtreecommitdiff
path: root/RunGrepTest
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-09-13 16:39:03 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-09-13 16:39:03 +0000
commit42e80384ba67ffea976edd111abf533701e86cb3 (patch)
treefa2819ef4854fca04d339f64d3ed21592070fec9 /RunGrepTest
parent0166cfb72a48596e15dce5736a19b24181465e68 (diff)
downloadpcre-42e80384ba67ffea976edd111abf533701e86cb3.tar.gz
Allow multiple -o in pcregrep, and add --om-separator.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1039 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'RunGrepTest')
-rwxr-xr-xRunGrepTest9
1 files changed, 9 insertions, 0 deletions
diff --git a/RunGrepTest b/RunGrepTest
index 8ecab12..0c7c10f 100755
--- a/RunGrepTest
+++ b/RunGrepTest
@@ -478,6 +478,15 @@ echo "grepinput8" >testtemp2
(cd $srcdir; $valgrind $pcregrep -L -r --include grepinput --exclude-from $builddir/testtemp1 --exclude-from=$builddir/testtemp2 --exclude-dir='^\.' 'fox' ./testdata | sort) >>testtry
echo "RC=$?" >>testtry
+echo "---------------------------- Test 100 ------------------------------" >>testtry
+(cd $srcdir; $valgrind $pcregrep -Ho2 --only-matching=1 -o3 '(\w+) binary (\w+)(\.)?' ./testdata/grepinput) >>testtry
+echo "RC=$?" >>testtry
+
+echo "---------------------------- Test 101 ------------------------------" >>testtry
+(cd $srcdir; $valgrind $pcregrep -o3 -Ho2 -o12 --only-matching=1 -o3 --colour=always --om-separator='/' '(\w+) binary (\w+)(\.)?' ./testdata/grepinput) >>testtry
+echo "RC=$?" >>testtry
+
+
# Now compare the results.
$cf $srcdir/testdata/grepoutput testtry