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

Diff of /code/trunk/RunTest

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

revision 650 by ph10, Sat Jul 2 15:20:59 2011 UTC revision 651 by ph10, Mon Aug 1 16:32:40 2011 UTC
# Line 54  do9=no Line 54  do9=no
54  do10=no  do10=no
55  do11=no  do11=no
56  do12=no  do12=no
57    do13=no
58    
59  while [ $# -gt 0 ] ; do  while [ $# -gt 0 ] ; do
60    case $1 in    case $1 in
# Line 69  while [ $# -gt 0 ] ; do Line 70  while [ $# -gt 0 ] ; do
70     10) do10=yes;;     10) do10=yes;;
71     11) do11=yes;;     11) do11=yes;;
72     12) do12=yes;;     12) do12=yes;;
73       13) do12=yes;;
74     valgrind) valgrind="valgrind -q";;     valgrind) valgrind="valgrind -q";;
75      *) echo "Unknown test number $1"; exit 1;;      *) echo "Unknown test number $1"; exit 1;;
76    esac    esac
# Line 88  if [ $utf8 -eq 0 ] ; then Line 90  if [ $utf8 -eq 0 ] ; then
90      echo "Can't run test 8 because UTF-8 support is not configured"      echo "Can't run test 8 because UTF-8 support is not configured"
91      exit 1      exit 1
92    fi    fi
93      if [ $do12 = yes ] ; then
94        echo "Can't run test 12 because UTF-8 support is not configured"
95        exit 1
96      fi
97  fi  fi
98    
99  if [ $ucp -eq 0 ] ; then  if [ $ucp -eq 0 ] ; then
# Line 103  if [ $ucp -eq 0 ] ; then Line 109  if [ $ucp -eq 0 ] ; then
109      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"
110      exit 1      exit 1
111    fi    fi
112    if [ $do12 = yes ] ; then    if [ $do13 = yes ] ; then
113      echo "Can't run test 12 because Unicode property support is not configured"      echo "Can't run test 12 because Unicode property support is not configured"
114      exit 1      exit 1
115    fi    fi
# Line 132  if [ $do1 = no -a $do2 = no -a $do3 = no Line 138  if [ $do1 = no -a $do2 = no -a $do3 = no
138    if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do9=yes; fi    if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do9=yes; fi
139    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
140    do11=yes    do11=yes
141    if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do12=yes; fi    if [ $utf8 -ne 0 ] ; then do12=yes; fi
142      if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do13=yes; fi
143  fi  fi
144    
145  # Show which release  # Show which release
# Line 328  if [ $do10 = yes ] ; then Line 335  if [ $do10 = yes ] ; then
335    done    done
336  fi  fi
337    
338  # Test of Perl >= 5.10 features  # Test of Perl >= 5.10 features without UTF8 support
339    
340  if [ $do11 = yes ] ; then  if [ $do11 = yes ] ; then
341    echo "Test 11: Features from Perl >= 5.10"    echo "Test 11: Features from Perl >= 5.10 without UTF8 support"
342    for opt in "" "-s"; do    for opt in "" "-s"; do
343      $valgrind ./pcretest -q $opt $testdata/testinput11 testtry      $valgrind ./pcretest -q $opt $testdata/testinput11 testtry
344      if [ $? = 0 ] ; then      if [ $? = 0 ] ; then
# Line 343  if [ $do11 = yes ] ; then Line 350  if [ $do11 = yes ] ; then
350    done    done
351  fi  fi
352    
353  # Test non-Perl-compatible Unicode property support  # Test of Perl >= 5.10 features with UTF8 support
354    
355  if [ $do12 = yes ] ; then  if [ $do12 = yes ] ; then
356    echo "Test 12: API, internals, and non-Perl stuff for Unicode property support"    echo "Test 12: Features from Perl >= 5.10 with UTF8 support"
357    for opt in "" "-s"; do    for opt in "" "-s"; do
358      $valgrind ./pcretest -q $opt $testdata/testinput12 testtry      $valgrind ./pcretest -q $opt $testdata/testinput12 testtry
359      if [ $? = 0 ] ; then      if [ $? = 0 ] ; then
# Line 358  if [ $do12 = yes ] ; then Line 365  if [ $do12 = yes ] ; then
365    done    done
366  fi  fi
367    
368    # Test non-Perl-compatible Unicode property support
369    
370    if [ $do13 = yes ] ; then
371      echo "Test 13: API, internals, and non-Perl stuff for Unicode property support"
372      for opt in "" "-s"; do
373        $valgrind ./pcretest -q $opt $testdata/testinput13 testtry
374        if [ $? = 0 ] ; then
375          $cf $testdata/testoutput13 testtry
376          if [ $? != 0 ] ; then exit 1; fi
377        else exit 1
378        fi
379        if [ "$opt" = "-s" ] ; then echo "OK with study" ; else echo "OK"; fi
380      done
381    fi
382    
383  # End  # End

Legend:
Removed from v.650  
changed lines
  Added in v.651

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12