/[pcre]/code/trunk/RunTest
ViewVC logotype

Diff of /code/trunk/RunTest

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 447 by ph10, Wed Aug 26 15:38:32 2009 UTC revision 448 by ph10, Tue Sep 15 19:11:48 2009 UTC
# Line 44  do7=no Line 44  do7=no
44  do8=no  do8=no
45  do9=no  do9=no
46  do10=no  do10=no
47    do11=no
48    do12=no
49    
50  while [ $# -gt 0 ] ; do  while [ $# -gt 0 ] ; do
51    case $1 in    case $1 in
# Line 57  while [ $# -gt 0 ] ; do Line 59  while [ $# -gt 0 ] ; do
59      8) do8=yes;;      8) do8=yes;;
60      9) do9=yes;;      9) do9=yes;;
61     10) do10=yes;;     10) do10=yes;;
62       11) do11=yes;;
63       12) do12=yes;;
64     valgrind) valgrind="valgrind -q";;     valgrind) valgrind="valgrind -q";;
65      *) echo "Unknown test number $1"; exit 1;;      *) echo "Unknown test number $1"; exit 1;;
66    esac    esac
# Line 91  if [ $ucp -eq 0 ] ; then Line 95  if [ $ucp -eq 0 ] ; then
95      echo "Can't run test 10 because Unicode property support is not configured"      echo "Can't run test 10 because Unicode property support is not configured"
96      exit 1      exit 1
97    fi    fi
98      if [ $do12 = yes ] ; then
99        echo "Can't run test 12 because Unicode property support is not configured"
100        exit 1
101      fi
102  fi  fi
103    
104  if [ $link_size -ne 2 ] ; then  if [ $link_size -ne 2 ] ; then
# Line 104  fi Line 112  fi
112    
113  if [ $do1 = no -a $do2 = no -a $do3 = no -a $do4 = no -a \  if [ $do1 = no -a $do2 = no -a $do3 = no -a $do4 = no -a \
114       $do5 = no -a $do6 = no -a $do7 = no -a $do8 = no -a \       $do5 = no -a $do6 = no -a $do7 = no -a $do8 = no -a \
115       $do9 = no -a $do10 = no ] ; then       $do9 = no -a $do10 = no -a $do11 = no -a $do12 = no ] ; then
116    do1=yes    do1=yes
117    do2=yes    do2=yes
118    do3=yes    do3=yes
# Line 115  if [ $do1 = no -a $do2 = no -a $do3 = no Line 123  if [ $do1 = no -a $do2 = no -a $do3 = no
123    if [ $utf8 -ne 0 ] ; then do8=yes; fi    if [ $utf8 -ne 0 ] ; then do8=yes; fi
124    if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do9=yes; fi    if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do9=yes; fi
125    if [ $link_size -eq 2 -a $ucp -ne 0 ] ; then do10=yes; fi    if [ $link_size -eq 2 -a $ucp -ne 0 ] ; then do10=yes; fi
126      do11=yes
127      if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do12=yes; fi
128  fi  fi
129    
130  # Show which release  # Show which release
# Line 227  if [ $do5 = yes ] ; then Line 237  if [ $do5 = yes ] ; then
237  fi  fi
238    
239  if [ $do6 = yes ] ; then  if [ $do6 = yes ] ; then
240    echo "Test 6: Unicode property support"    echo "Test 6: Unicode property support (Perl 5.10 compatible)"
241    $valgrind ./pcretest -q $testdata/testinput6 testtry    $valgrind ./pcretest -q $testdata/testinput6 testtry
242    if [ $? = 0 ] ; then    if [ $? = 0 ] ; then
243      $cf $testdata/testoutput6 testtry      $cf $testdata/testoutput6 testtry
# Line 289  if [ $do10 = yes ] ; then Line 299  if [ $do10 = yes ] ; then
299    echo "OK"    echo "OK"
300  fi  fi
301    
302    # Test of Perl 5.10 features
303    
304    if [ $do11 = yes ] ; then
305      echo "Test 11: Perl 5.10 features"
306      $valgrind ./pcretest -q $testdata/testinput11 testtry
307      if [ $? = 0 ] ; then
308        $cf $testdata/testoutput11 testtry
309        if [ $? != 0 ] ; then exit 1; fi
310      else exit 1
311      fi
312      echo "OK"
313    fi
314    
315    # Test non-Perl-compatible Unicode property support
316    
317    if [ $do12 = yes ] ; then
318      echo "Test 12: API, internals, and non-Perl stuff for Unicode property support"
319      $valgrind ./pcretest -q $testdata/testinput12 testtry
320      if [ $? = 0 ] ; then
321        $cf $testdata/testoutput12 testtry
322        if [ $? != 0 ] ; then exit 1; fi
323      else exit 1
324      fi
325      echo "OK"
326    fi
327    
328  # End  # End

Legend:
Removed from v.447  
changed lines
  Added in v.448

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12