Upgrade pcre to pcre2-10.40
Test: make
Change-Id: I5d7243566be5bc6b8e2a5eaf08dec2d08a565f84
diff --git a/RunTest b/RunTest
index 14d9f60..9b67870 100755
--- a/RunTest
+++ b/RunTest
@@ -80,7 +80,8 @@
title23="Test 23: \C disabled test"
title24="Test 24: Non-UTF pattern conversion tests"
title25="Test 25: UTF pattern conversion tests"
-maxtest=25
+title26="Test 26: Auto-generated unicode property tests"
+maxtest=26
if [ $# -eq 1 -a "$1" = "list" ]; then
echo $title0
@@ -109,6 +110,7 @@
echo $title23
echo $title24
echo $title25
+ echo $title26
exit 0
fi
@@ -238,6 +240,7 @@
do23=no
do24=no
do25=no
+do26=no
while [ $# -gt 0 ] ; do
case $1 in
@@ -267,6 +270,7 @@
23) do23=yes;;
24) do24=yes;;
25) do25=yes;;
+ 26) do26=yes;;
-8) arg8=yes;;
-16) arg16=yes;;
-32) arg32=yes;;
@@ -320,7 +324,8 @@
# set up a large stack.
$sim ./pcre2test -S 64 /dev/null /dev/null
-if [ $? -eq 0 -a "$bigstack" != "" ] ; then
+support_setstack=$?
+if [ $support_setstack -eq 0 -a "$bigstack" != "" ] ; then
setstack="-S 64"
else
setstack=""
@@ -416,7 +421,7 @@
$do12 = no -a $do13 = no -a $do14 = no -a $do15 = no -a \
$do16 = no -a $do17 = no -a $do18 = no -a $do19 = no -a \
$do20 = no -a $do21 = no -a $do22 = no -a $do23 = no -a \
- $do24 = no -a $do25 = no \
+ $do24 = no -a $do25 = no -a $do26 = no \
]; then
do0=yes
do1=yes
@@ -444,6 +449,7 @@
do23=yes
do24=yes
do25=yes
+ do26=yes
fi
# Handle any explicit skips at this stage, so that an argument list may consist
@@ -479,7 +485,9 @@
echo '' >testtry
checkspecial '-C'
checkspecial '--help'
- checkspecial '-S 1 -t 10 testSinput'
+ if [ $support_setstack -eq 0 ] ; then
+ checkspecial '-S 1 -t 10 testSinput'
+ fi
echo " OK"
fi
@@ -860,6 +868,20 @@
fi
fi
+ # Auto-generated unicode property tests
+
+ if [ $do26 = yes ] ; then
+ echo $title26
+ if [ $utf -eq 0 ] ; then
+ echo " Skipped because UTF-$bits support is not available"
+ else
+ for opt in "" $jitopt; do
+ $sim $valgrind ${opt:+$vjs} ./pcre2test -q $setstack $bmode $opt $testdata/testinput26 testtry
+ checkresult $? 26 "$opt"
+ done
+ fi
+ fi
+
# End of loop for 8/16/32-bit tests
done