summaryrefslogtreecommitdiff
path: root/RunTest
diff options
context:
space:
mode:
Diffstat (limited to 'RunTest')
-rwxr-xr-xRunTest26
1 files changed, 25 insertions, 1 deletions
diff --git a/RunTest b/RunTest
index 46a1c6b..d595549 100755
--- a/RunTest
+++ b/RunTest
@@ -54,6 +54,7 @@ do16=no
do17=no
do18=no
do19=no
+do20=no
while [ $# -gt 0 ] ; do
case $1 in
@@ -76,6 +77,7 @@ while [ $# -gt 0 ] ; do
17) do17=yes;;
18) do18=yes;;
19) do19=yes;;
+ 20) do20=yes;;
-8) arg8=yes;;
-16) arg16=yes;;
valgrind) valgrind="valgrind -q --smc-check=all";;
@@ -240,7 +242,7 @@ if [ $do1 = no -a $do2 = no -a $do3 = no -a $do4 = no -a \
$do5 = no -a $do6 = no -a $do7 = no -a $do8 = no -a \
$do9 = no -a $do10 = no -a $do11 = no -a $do12 = no -a \
$do13 = no -a $do14 = no -a $do15 = no -a $do16 = no -a \
- $do17 = no -a $do18 = no -a $do19 = no ] ; then
+ $do17 = no -a $do18 = no -a $do19 = no -a $do20 = no ] ; then
do1=yes
do2=yes
do3=yes
@@ -260,6 +262,7 @@ if [ $do1 = no -a $do2 = no -a $do3 = no -a $do4 = no -a \
do17=yes
do18=yes
do19=yes
+ do20=yes
fi
# Show which release and which test data
@@ -714,6 +717,27 @@ if [ $do19 = yes ] ; then
fi
fi
+# Tests for 16-bit-specific features in DFA non-UTF-16 mode
+
+if [ $do20 = yes ] ; then
+ echo "Test 20: DFA specials for the basic 16-bit library"
+ if [ "$bits" = "8" ] ; then
+ echo " Skipped when running 8-bit tests"
+ else
+ for opt in "" "-s"; do
+ $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput20 testtry
+ if [ $? = 0 ] ; then
+ $cf $testdata/testoutput20 testtry
+ if [ $? != 0 ] ; then exit 1; fi
+ else exit 1
+ fi
+ if [ "$opt" = "-s" ] ; then echo " OK with study"
+ else echo " OK"
+ fi
+ done
+ fi
+fi
+
# End of loop for 8-bit/16-bit tests
done