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

Diff of /code/trunk/RunTest

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

revision 842 by ph10, Sat Dec 31 15:19:04 2011 UTC revision 903 by ph10, Sat Jan 21 16:37:17 2012 UTC
# Line 58  do17=no Line 58  do17=no
58  do18=no  do18=no
59  do19=no  do19=no
60  do20=no  do20=no
61    do21=no
62    do22=no
63    
64  while [ $# -gt 0 ] ; do  while [ $# -gt 0 ] ; do
65    case $1 in    case $1 in
# Line 81  while [ $# -gt 0 ] ; do Line 83  while [ $# -gt 0 ] ; do
83     18) do18=yes;;     18) do18=yes;;
84     19) do19=yes;;     19) do19=yes;;
85     20) do20=yes;;     20) do20=yes;;
86       21) do21=yes;;
87       22) do22=yes;;
88     -8) arg8=yes;;     -8) arg8=yes;;
89    -16) arg16=yes;;    -16) arg16=yes;;
90     valgrind) valgrind="valgrind -q --smc-check=all";;     valgrind) valgrind="valgrind -q --smc-check=all";;
# Line 194  if [ $utf -eq 0 ] ; then Line 198  if [ $utf -eq 0 ] ; then
198    if [ $do18 = yes ] ; then    if [ $do18 = yes ] ; then
199      echo "Can't run test 18 because UTF support is not configured"      echo "Can't run test 18 because UTF support is not configured"
200    fi    fi
201      if [ $do22 = yes ] ; then
202        echo "Can't run test 22 because UTF support is not configured"
203      fi
204  fi  fi
205    
206  if [ $ucp -eq 0 ] ; then  if [ $ucp -eq 0 ] ; then
# Line 245  if [ $do1  = no -a $do2  = no -a $do3  = Line 252  if [ $do1  = no -a $do2  = no -a $do3  =
252       $do5  = no -a $do6  = no -a $do7  = no -a $do8  = no -a \       $do5  = no -a $do6  = no -a $do7  = no -a $do8  = no -a \
253       $do9  = no -a $do10 = no -a $do11 = no -a $do12 = no -a \       $do9  = no -a $do10 = no -a $do11 = no -a $do12 = no -a \
254       $do13 = no -a $do14 = no -a $do15 = no -a $do16 = no -a \       $do13 = no -a $do14 = no -a $do15 = no -a $do16 = no -a \
255       $do17 = no -a $do18 = no -a $do19 = no -a $do20 = no ] ; then       $do17 = no -a $do18 = no -a $do19 = no -a $do20 = no -a \
256         $do21 = no -a $do22 = no ] ; then
257    do1=yes    do1=yes
258    do2=yes    do2=yes
259    do3=yes    do3=yes
# Line 266  if [ $do1  = no -a $do2  = no -a $do3  = Line 274  if [ $do1  = no -a $do2  = no -a $do3  =
274    do18=yes    do18=yes
275    do19=yes    do19=yes
276    do20=yes    do20=yes
277      do21=yes
278      do22=yes
279  fi  fi
280    
281  # Show which release and which test data  # Show which release and which test data
# Line 656  if [ $do17 = yes ] ; then Line 666  if [ $do17 = yes ] ; then
666    if [ "$bits" = "8" ] ; then    if [ "$bits" = "8" ] ; then
667      echo "  Skipped when running 8-bit tests"      echo "  Skipped when running 8-bit tests"
668    else    else
     cp -f $testdata/saved8 testsaved8  
     cp -f $testdata/saved16LE-1 testsaved16LE-1  
     cp -f $testdata/saved16BE-1 testsaved16BE-1  
669      for opt in "" "-s" $jitopt; do      for opt in "" "-s" $jitopt; do
670        $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput17 testtry        $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput17 testtry
671        if [ $? = 0 ] ; then        if [ $? = 0 ] ; then
# Line 683  if [ $do18 = yes ] ; then Line 690  if [ $do18 = yes ] ; then
690    elif [ $utf -eq 0 ] ; then    elif [ $utf -eq 0 ] ; then
691      echo "  Skipped because UTF-$bits support is not available"      echo "  Skipped because UTF-$bits support is not available"
692    else    else
     cp -f $testdata/saved16LE-2 testsaved16LE-2  
     cp -f $testdata/saved16BE-2 testsaved16BE-2  
693      for opt in "" "-s" $jitopt; do      for opt in "" "-s" $jitopt; do
694        $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput18 testtry        $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput18 testtry
695        if [ $? = 0 ] ; then        if [ $? = 0 ] ; then
# Line 745  if [ $do20 = yes ] ; then Line 750  if [ $do20 = yes ] ; then
750    fi    fi
751  fi  fi
752    
753    # Tests for reloads with 16-bit library
754    
755    if [ $do21 = yes ] ; then
756      echo "Test 21: reloads for the basic 16-bit library"
757      if [ "$bits" = "8" ] ; then
758        echo "  Skipped when running 8-bit tests"
759      elif [ $link_size -ne 2 ] ; then
760        echo "  Skipped because link size is not 2"
761      else
762        cp -f $testdata/saved8 testsaved8
763        cp -f $testdata/saved16LE-1 testsaved16LE-1
764        cp -f $testdata/saved16BE-1 testsaved16BE-1
765        $sim $valgrind ./pcretest -q $bmode $testdata/testinput21 testtry
766        if [ $? = 0 ] ; then
767          $cf $testdata/testoutput21 testtry
768          if [ $? != 0 ] ; then exit 1; fi
769        else exit 1
770        fi
771        echo "  OK"
772      fi
773    fi
774    
775    # Tests for reloads with 16-bit library (UTF-16 support)
776    
777    if [ $do22 = yes ] ; then
778      echo "Test 22: reloads for the 16-bit library with UTF-16 support"
779      if [ "$bits" = "8" ] ; then
780        echo "  Skipped when running 8-bit tests"
781      elif [ $utf -eq 0 ] ; then
782        echo "  Skipped because UTF-$bits support is not available"
783      elif [ $link_size -ne 2 ] ; then
784        echo "  Skipped because link size is not 2"
785      else
786        cp -f $testdata/saved16LE-2 testsaved16LE-2
787        cp -f $testdata/saved16BE-2 testsaved16BE-2
788        $sim $valgrind ./pcretest -q $bmode $testdata/testinput22 testtry
789        if [ $? = 0 ] ; then
790          $cf $testdata/testoutput22 testtry
791          if [ $? != 0 ] ; then exit 1; fi
792        else exit 1
793        fi
794        echo "  OK"
795      fi
796    fi
797    
798  # End of loop for 8-bit/16-bit tests  # End of loop for 8-bit/16-bit tests
799  done  done
800    

Legend:
Removed from v.842  
changed lines
  Added in v.903

  ViewVC Help
Powered by ViewVC 1.1.5