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

Diff of /code/trunk/RunTest

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

revision 1016 by ph10, Sun Aug 26 16:17:55 2012 UTC revision 1123 by ph10, Wed Oct 17 18:06:16 2012 UTC
# Line 2  Line 2 
2    
3  # Run the PCRE tests using the pcretest program. The appropriate tests are  # Run the PCRE tests using the pcretest program. The appropriate tests are
4  # selected, depending on which build-time options were used.  # selected, depending on which build-time options were used.
5    #
6  # All tests are now run both with and without -s, to ensure that everything is  # All tests are now run both with and without -s, to ensure that everything is
7  # tested with and without studying. However, there are some tests that produce  # tested with and without studying. However, there are some tests that produce
8  # different output after studying, typically when we are tracing the actual  # different output after studying, typically when we are tracing the actual
# Line 12  Line 12 
12  # any difference to their output. There is also one test which compiles invalid  # any difference to their output. There is also one test which compiles invalid
13  # UTF-8 with the UTF-8 check turned off; for this, studying must also be  # UTF-8 with the UTF-8 check turned off; for this, studying must also be
14  # disabled with /SS.  # disabled with /SS.
15    #
16  # When JIT support is available, all the tests are also run with -s+ to test  # When JIT support is available, all the tests are also run with -s+ to test
17  # (again, almost) everything with studying and the JIT option. There are also  # (again, almost) everything with studying and the JIT option. There are also
18  # two tests for JIT-specific features, one to be run when JIT support is  # two tests for JIT-specific features, one to be run when JIT support is
19  # available, and one when it is not.  # available, and one when it is not.
20    #
21  # Whichever of the 8-bit and 16-bit libraries exist are tested. It is also  # Whichever of the 8-, 16- and 32-bit libraries exist are tested. It is also
22  # possible to select which to test by the arguments -8 or -16.  # possible to select which to test by the arguments -8, -16 or -32.
23    #
24  # Other arguments for this script can be individual test numbers, or the word  # Other arguments for this script can be individual test numbers, or the word
25  # "valgrind", or "sim" followed by an argument to run cross-compiled  # "valgrind", or "sim" followed by an argument to run cross-compiled
26  # executables under a simulator, for example:  # executables under a simulator, for example:
27  #  #
28  # RunTest 3 sim "qemu-arm -s 8388608"  # RunTest 3 sim "qemu-arm -s 8388608"
29  #  #
30  # Finally, if the script is obeyed as "RunTest list", a list of available  #
31  # tests is output, but none of them are run.  # There are two special cases where only one argument is allowed:
32    #
33    # If the first and only argument is "ebcdic", the script runs the special
34    # EBCDIC test that can be useful for checking certain EBCDIC features, even
35    # when run in an ASCII environment.
36    #
37    # If the script is obeyed as "RunTest list", a list of available tests is
38    # output, but none of them are run.
39    
40    
41  # Define test titles in variables so that they can be output as a list. Some  # Define test titles in variables so that they can be output as a list. Some
42  # of them are modified (e.g. with -8 or -16) when used in the actual tests.  # of them are modified (e.g. with -8 or -16) when used in the actual tests.
# Line 50  title13="Test 13: JIT-specific features Line 58  title13="Test 13: JIT-specific features
58  title14="Test 14: Specials for the basic 8-bit library"  title14="Test 14: Specials for the basic 8-bit library"
59  title15="Test 15: Specials for the 8-bit library with UTF-8 support"  title15="Test 15: Specials for the 8-bit library with UTF-8 support"
60  title16="Test 16: Specials for the 8-bit library with Unicode propery support"  title16="Test 16: Specials for the 8-bit library with Unicode propery support"
61  title17="Test 17: Specials for the basic 16-bit library"  title17="Test 17: Specials for the basic 16/32-bit library"
62  title18="Test 18: Specials for the 16-bit library with UTF-16 support"  title18="Test 18: Specials for the 16/32-bit library with UTF-16/32 support"
63  title19="Test 19: Specials for the 16-bit library with Unicode propery support"  title19="Test 19: Specials for the 16/32-bit library with Unicode property support"
64  title20="Test 20: DFA specials for the basic 16-bit library"  title20="Test 20: DFA specials for the basic 16/32-bit library"
65  title21="Test 21: Reloads for the basic 16-bit library"  title21="Test 21: Reloads for the basic 16/32-bit library"
66  title22="Test 22: Reloads for the 16-bit library with UTF-16 support"  title22="Test 22: Reloads for the 16/32-bit library with UTF-16/32 support"
67    title23="Test 23: Specials for the 16-bit library"
68    title24="Test 24: Specials for the 16-bit library with UTF-16 support"
69    title25="Test 25: Specials for the 32-bit library"
70    title26="Test 26: Specials for the 32-bit library with UTF-32 support"
71    
72  if [ $# -eq 1 -a "$1" = "list" ]; then  if [ $# -eq 1 -a "$1" = "list" ]; then
73    echo $title1    echo $title1
# Line 80  if [ $# -eq 1 -a "$1" = "list" ]; then Line 92  if [ $# -eq 1 -a "$1" = "list" ]; then
92    echo $title20    echo $title20
93    echo $title21    echo $title21
94    echo $title22    echo $title22
95      echo $title23
96      echo $title24
97      echo $title25
98      echo $title26
99    exit 0    exit 0
100  fi  fi
101    
102    # Set up a suitable "diff" command for comparison. Some systems
103    # have a diff that lacks a -u option. Try to deal with this.
104    
105    cf="diff"
106    diff -u /dev/null /dev/null 2>/dev/null && cf="diff -u"
107    
108    # Find the test data
109    
110    if [ -n "$srcdir" -a -d "$srcdir" ] ; then
111      testdata="$srcdir/testdata"
112    elif [ -d "./testdata" ] ; then
113      testdata=./testdata
114    elif [ -d "../testdata" ] ; then
115      testdata=../testdata
116    else
117      echo "Cannot find the testdata directory"
118      exit 1
119    fi
120    
121    
122    # ------ Special EBCDIC Test -------
123    
124    if [ $# -eq 1 -a "$1" = "ebcdic" ]; then
125      ./pcretest -C ebcdic >/dev/null
126      ebcdic=$?
127      if [ $ebcdic -ne 1 ] ; then
128        echo "Cannot run EBCDIC tests: EBCDIC support not compiled"
129        exit 1
130      fi
131    
132      for opt in "" "-s" "-dfa" "-s -dfa"; do
133        ./pcretest -q $opt $testdata/testinputEBC >testtry
134        if [ $? = 0 ] ; then
135          $cf $testdata/testoutputEBC testtry
136          if [ $? != 0 ] ; then exit 1; fi
137        else exit 1
138        fi
139        if [ "$opt" = "-s" ] ; then echo "  OK with study"
140        elif [ "$opt" = "-dfa" ] ; then echo "  OK using DFA"
141        elif [ "$opt" = "-s -dfa" ] ; then echo "  OK using DFA with study"
142        else echo "  OK"
143        fi
144      done
145    
146    exit 0
147    fi
148    
149    
150    # ------ Normal Tests ------
151    
152  # Default values  # Default values
153    
154  valgrind=  valgrind=
155  sim=  sim=
156  arg8=  arg8=
157  arg16=  arg16=
158    arg32=
159    
160  # This is in case the caller has set aliases (as I do - PH)  # This is in case the caller has set aliases (as I do - PH)
161  unset cp ls mv rm  unset cp ls mv rm
# Line 118  do19=no Line 185  do19=no
185  do20=no  do20=no
186  do21=no  do21=no
187  do22=no  do22=no
188    do23=no
189    do24=no
190    do25=no
191    do26=no
192    
193  while [ $# -gt 0 ] ; do  while [ $# -gt 0 ] ; do
194    case $1 in    case $1 in
# Line 143  while [ $# -gt 0 ] ; do Line 214  while [ $# -gt 0 ] ; do
214     20) do20=yes;;     20) do20=yes;;
215     21) do21=yes;;     21) do21=yes;;
216     22) do22=yes;;     22) do22=yes;;
217       23) do23=yes;;
218       24) do24=yes;;
219       25) do25=yes;;
220       26) do26=yes;;
221     -8) arg8=yes;;     -8) arg8=yes;;
222    -16) arg16=yes;;    -16) arg16=yes;;
223     valgrind) valgrind="valgrind -q --smc-check=all";;    -32) arg32=yes;;
224       valgrind) valgrind="valgrind --tool=memcheck --num-callers=30 --leak-check=no --error-limit=no --smc-check=all --log-file=report.%p ";;
225     sim) shift; sim=$1;;     sim) shift; sim=$1;;
226      *) echo "Unknown test number '$1'"; exit 1;;      *) echo "Unknown test number '$1'"; exit 1;;
227    esac    esac
228    shift    shift
229  done  done
230    
231  # Set up a suitable "diff" command for comparison. Some systems  # Find which optional facilities are available.
 # have a diff that lacks a -u option. Try to deal with this.  
   
 cf="diff"  
 diff -u /dev/null /dev/null 2>/dev/null && cf="diff -u"  
   
 # Find the test data  
   
 if [ -n "$srcdir" -a -d "$srcdir" ] ; then  
   testdata="$srcdir/testdata"  
 elif [ -d "./testdata" ] ; then  
   testdata=./testdata  
 elif [ -d "../testdata" ] ; then  
   testdata=../testdata  
 else  
   echo "Cannot find the testdata directory"  
   exit 1  
 fi  
   
 # Find which optional facilities are available. In some Windows environments  
 # the output of pcretest -C has CRLF at the end of each line, but the shell  
 # strips only linefeeds from the output of a `backquoted` command. Hence the  
 # alternative patterns.  
232    
233  $sim ./pcretest -C linksize >/dev/null  $sim ./pcretest -C linksize >/dev/null
234  link_size=$?  link_size=$?
# Line 187  if [ $link_size -gt 4 ] ; then Line 241  if [ $link_size -gt 4 ] ; then
241    exit 1    exit 1
242  fi  fi
243    
244  # Both 8-bit and 16-bit character strings may be supported, but only one  # All of 8-bit, 16-bit, and 32-bit character strings may be supported, but only
245  # need be.  # one need be.
246    
247  $sim ./pcretest -C pcre8 >/dev/null  $sim ./pcretest -C pcre8 >/dev/null
248  support8=$?  support8=$?
249  $sim ./pcretest -C pcre16 >/dev/null  $sim ./pcretest -C pcre16 >/dev/null
250  support16=$?  support16=$?
251  if [ `expr $support8 + $support16` -eq 2 ] ; then  $sim ./pcretest -C pcre32 >/dev/null
252    test8=  support32=$?
253    test16=-16  
254    if [ "$arg8" = yes -a "$arg16" != yes ] ; then  # Initialize all bitsizes skipped
255      test16=skip  
256    fi  test8=skip
257    if [ "$arg16" = yes -a "$arg8" != yes ] ; then  test16=skip
258      test8=skip  test32=skip
259    fi  
260  else  # If no bitsize arguments, select all that are available
261    
262    if [ "$arg8$arg16$arg32" = "" ] ; then
263    if [ $support8 -ne 0 ] ; then    if [ $support8 -ne 0 ] ; then
264      if [ "$arg16" = yes ] ; then      test8=
265        echo "Cannot run 16-bit library tests: 16-bit library not compiled"    fi
266      if [ $support16 -ne 0 ] ; then
267        test16=-16
268      fi
269      if [ $support32 -ne 0 ] ; then
270        test32=-32
271      fi
272    
273    # Select requested bit sizes
274    
275    else
276      if [ "$arg8" = yes ] ; then
277        if [ $support8 -eq 0 ] ; then
278          echo "Cannot run 8-bit library tests: 8-bit library not compiled"
279        exit 1        exit 1
280      fi      fi
281      test8=      test8=
282      test16=skip    fi
283    else    if [ "$arg16" = yes ] ; then
284      if [ "$arg8" = yes ] ; then      if [ $support16 -eq 0 ] ; then
285        echo "Cannot run 8-bit library tests: 8-bit library not compiled"        echo "Cannot run 16-bit library tests: 16-bit library not compiled"
286        exit 1        exit 1
287      fi      fi
     test8=skip  
288      test16=-16      test16=-16
289    fi    fi
290      if [ "$arg32" = yes ] ; then
291        if [ $support32 -eq 0 ] ; then
292          echo "Cannot run 32-bit library tests: 32-bit library not compiled"
293          exit 1
294        fi
295        test32=-32
296      fi
297  fi  fi
298    
299  # UTF support always applies to both bit sizes if both are supported; we can't  # UTF support always applies to all bit sizes if both are supported; we can't
300  # have UTF-8 support without UTF-16 support (for example).  # have UTF-8 support without UTF-16 support (for example).
301    
302  $sim ./pcretest -C utf >/dev/null  $sim ./pcretest -C utf >/dev/null
# Line 312  if [ $do1  = no -a $do2  = no -a $do3  = Line 387  if [ $do1  = no -a $do2  = no -a $do3  =
387       $do9  = no -a $do10 = no -a $do11 = no -a $do12 = no -a \       $do9  = no -a $do10 = no -a $do11 = no -a $do12 = no -a \
388       $do13 = no -a $do14 = no -a $do15 = no -a $do16 = no -a \       $do13 = no -a $do14 = no -a $do15 = no -a $do16 = no -a \
389       $do17 = no -a $do18 = no -a $do19 = no -a $do20 = no -a \       $do17 = no -a $do18 = no -a $do19 = no -a $do20 = no -a \
390       $do21 = no -a $do22 = no ] ; then       $do21 = no -a $do22 = no -a $do23 = no -a $do24 = no -a \
391         $do25 = no -a $do26 = no ] ; then
392    do1=yes    do1=yes
393    do2=yes    do2=yes
394    do3=yes    do3=yes
# Line 335  if [ $do1  = no -a $do2  = no -a $do3  = Line 411  if [ $do1  = no -a $do2  = no -a $do3  =
411    do20=yes    do20=yes
412    do21=yes    do21=yes
413    do22=yes    do22=yes
414      do23=yes
415      do24=yes
416      do25=yes
417      do26=yes
418    fi
419    
420    # Extra test round for testing 32-bit UTF mode with high bits set
421    if test "$test32" != "skip" -a $utf -eq 1; then
422      test32plus="-32+"
423    else
424      test32plus=skip
425  fi  fi
426    
427  # Show which release and which test data  # Show which release and which test data
# Line 343  echo "" Line 430  echo ""
430  echo PCRE C library tests using test data from $testdata  echo PCRE C library tests using test data from $testdata
431  $sim ./pcretest /dev/null  $sim ./pcretest /dev/null
432    
433  for bmode in "$test8" "$test16"; do  for bmode in "$test8" "$test16" "$test32" "$test32plus"; do
434    case "$bmode" in    case "$bmode" in
435      skip) continue;;      skip) continue;;
436      -16)  if [ "$test8" != "skip" ] ; then echo ""; fi      -16)  if [ "$test8$test32" != "skipskip" ] ; then echo ""; fi
437            bits=16; echo "---- Testing 16-bit library ----"; echo "";;            bits=16; echo "---- Testing 16-bit library ----"; echo "";;
438        -32)  if [ "$test8$test16" != "skipskip" ] ; then echo ""; fi
439              bits=32; echo "---- Testing 32-bit library ----"; echo "";;
440        -32+) echo ""
441              bits=32; echo "---- Testing 32-bit library UTF-32 mode with high bits set ----"; echo "";;
442      *)    bits=8; echo "---- Testing 8-bit library ----"; echo "";;      *)    bits=8; echo "---- Testing 8-bit library ----"; echo "";;
443    esac    esac
444    
445      # When testing 32-bit UTF mode with high bits masked, skip all non-UTF tests
446      # Since this is the last test, we can just set doN=no
447      if test "$bmode" = "-32+"; then
448        do1=no do2=no do3=no do8=no
449        do12=no do13=no do14=no do15=no do16=no do17=no
450        do20=no do21=no do23=no do24=no do25=no
451      fi
452    
453  # Primary test, compatible with JIT and all versions of Perl >= 5.8  # Primary test, compatible with JIT and all versions of Perl >= 5.8
454    
455  if [ $do1 = yes ] ; then  if [ $do1 = yes ] ; then
# Line 651  fi Line 750  fi
750    
751  if [ "$do14" = yes ] ; then  if [ "$do14" = yes ] ; then
752    echo $title14    echo $title14
753    if [ "$bits" = "16" ] ; then    if [ "$bits" = "16" -o "$bits" = "32" ] ; then
754      echo "  Skipped when running 16-bit tests"      echo "  Skipped when running 16/32-bit tests"
755    else    else
756      cp -f $testdata/saved16 testsaved16      cp -f $testdata/saved16 testsaved16
757        cp -f $testdata/saved32 testsaved32
758      for opt in "" "-s" $jitopt; do      for opt in "" "-s" $jitopt; do
759        $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput14 testtry        $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput14 testtry
760        if [ $? = 0 ] ; then        if [ $? = 0 ] ; then
# Line 674  fi Line 774  fi
774    
775  if [ "$do15" = yes ] ; then  if [ "$do15" = yes ] ; then
776    echo $title15    echo $title15
777    if [ "$bits" = "16" ] ; then    if [ "$bits" = "16" -o "$bits" = "32" ] ; then
778      echo "  Skipped when running 16-bit tests"      echo "  Skipped when running 16/32-bit tests"
779    elif [ $utf -eq 0 ] ; then    elif [ $utf -eq 0 ] ; then
780      echo "  Skipped because UTF-$bits support is not available"      echo "  Skipped because UTF-$bits support is not available"
781    else    else
# Line 698  fi Line 798  fi
798    
799  if [ $do16 = yes ] ; then  if [ $do16 = yes ] ; then
800    echo $title16    echo $title16
801    if [ "$bits" = "16" ] ; then    if [ "$bits" = "16" -o "$bits" = "32" ] ; then
802      echo "  Skipped when running 16-bit tests"      echo "  Skipped when running 16/32-bit tests"
803    elif [ $ucp -eq 0 ] ; then    elif [ $ucp -eq 0 ] ; then
804      echo "  Skipped because Unicode property support is not available"      echo "  Skipped because Unicode property support is not available"
805    else    else
# Line 718  if [ $do16 = yes ] ; then Line 818  if [ $do16 = yes ] ; then
818    fi    fi
819  fi  fi
820    
821  # Tests for 16-bit-specific features  # Tests for 16/32-bit-specific features
822    
823  if [ $do17 = yes ] ; then  if [ $do17 = yes ] ; then
824    echo $title17    echo $title17
# Line 740  if [ $do17 = yes ] ; then Line 840  if [ $do17 = yes ] ; then
840    fi    fi
841  fi  fi
842    
843  # Tests for 16-bit-specific features (UTF-16 support)  # Tests for 16/32-bit-specific features (UTF-16/32 support)
844    
845  if [ $do18 = yes ] ; then  if [ $do18 = yes ] ; then
846    echo $title18    echo $title18
# Line 752  if [ $do18 = yes ] ; then Line 852  if [ $do18 = yes ] ; then
852      for opt in "" "-s" $jitopt; do      for opt in "" "-s" $jitopt; do
853        $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput18 testtry        $sim $valgrind ./pcretest -q $bmode $opt $testdata/testinput18 testtry
854        if [ $? = 0 ] ; then        if [ $? = 0 ] ; then
855          $cf $testdata/testoutput18 testtry          $cf $testdata/testoutput18-$bits testtry
856          if [ $? != 0 ] ; then exit 1; fi          if [ $? != 0 ] ; then exit 1; fi
857        else exit 1        else exit 1
858        fi        fi
# Line 764  if [ $do18 = yes ] ; then Line 864  if [ $do18 = yes ] ; then
864    fi    fi
865  fi  fi
866    
867  # Tests for 16-bit-specific features (Unicode property support)  # Tests for 16/32-bit-specific features (Unicode property support)
868    
869  if [ $do19 = yes ] ; then  if [ $do19 = yes ] ; then
870    echo $title19    echo $title19
# Line 788  if [ $do19 = yes ] ; then Line 888  if [ $do19 = yes ] ; then
888    fi    fi
889  fi  fi
890    
891  # Tests for 16-bit-specific features in DFA non-UTF-16 mode  # Tests for 16/32-bit-specific features in DFA non-UTF-16 mode
892    
893  if [ $do20 = yes ] ; then  if [ $do20 = yes ] ; then
894    echo $title20    echo $title20
# Line 809  if [ $do20 = yes ] ; then Line 909  if [ $do20 = yes ] ; then
909    fi    fi
910  fi  fi
911    
912  # Tests for reloads with 16-bit library  # Tests for reloads with 16/32-bit library
913    
914  if [ $do21 = yes ] ; then  if [ $do21 = yes ] ; then
915    echo $title21    echo $title21
# Line 821  if [ $do21 = yes ] ; then Line 921  if [ $do21 = yes ] ; then
921      cp -f $testdata/saved8 testsaved8      cp -f $testdata/saved8 testsaved8
922      cp -f $testdata/saved16LE-1 testsaved16LE-1      cp -f $testdata/saved16LE-1 testsaved16LE-1
923      cp -f $testdata/saved16BE-1 testsaved16BE-1      cp -f $testdata/saved16BE-1 testsaved16BE-1
924        cp -f $testdata/saved32LE-1 testsaved32LE-1
925        cp -f $testdata/saved32BE-1 testsaved32BE-1
926      $sim $valgrind ./pcretest -q $bmode $testdata/testinput21 testtry      $sim $valgrind ./pcretest -q $bmode $testdata/testinput21 testtry
927      if [ $? = 0 ] ; then      if [ $? = 0 ] ; then
928        $cf $testdata/testoutput21 testtry        $cf $testdata/testoutput21-$bits testtry
929        if [ $? != 0 ] ; then exit 1; fi        if [ $? != 0 ] ; then exit 1; fi
930      else exit 1      else exit 1
931      fi      fi
# Line 831  if [ $do21 = yes ] ; then Line 933  if [ $do21 = yes ] ; then
933    fi    fi
934  fi  fi
935    
936  # Tests for reloads with 16-bit library (UTF-16 support)  # Tests for reloads with 16/32-bit library (UTF-16 support)
937    
938  if [ $do22 = yes ] ; then  if [ $do22 = yes ] ; then
939    echo $title22    echo $title22
# Line 844  if [ $do22 = yes ] ; then Line 946  if [ $do22 = yes ] ; then
946    else    else
947      cp -f $testdata/saved16LE-2 testsaved16LE-2      cp -f $testdata/saved16LE-2 testsaved16LE-2
948      cp -f $testdata/saved16BE-2 testsaved16BE-2      cp -f $testdata/saved16BE-2 testsaved16BE-2
949        cp -f $testdata/saved32LE-2 testsaved32LE-2
950        cp -f $testdata/saved32BE-2 testsaved32BE-2
951      $sim $valgrind ./pcretest -q $bmode $testdata/testinput22 testtry      $sim $valgrind ./pcretest -q $bmode $testdata/testinput22 testtry
952      if [ $? = 0 ] ; then      if [ $? = 0 ] ; then
953        $cf $testdata/testoutput22 testtry        $cf $testdata/testoutput22-$bits testtry
954          if [ $? != 0 ] ; then exit 1; fi
955        else exit 1
956        fi
957        echo "  OK"
958      fi
959    fi
960    
961    if [ $do23 = yes ] ; then
962      echo $title23
963      if [ "$bits" = "8" -o "$bits" = "32" ] ; then
964        echo "  Skipped when running 8/32-bit tests"
965      else
966        $sim $valgrind ./pcretest -q $bmode $testdata/testinput23 testtry
967        if [ $? = 0 ] ; then
968          $cf $testdata/testoutput23 testtry
969          if [ $? != 0 ] ; then exit 1; fi
970        else exit 1
971        fi
972        echo "  OK"
973      fi
974    fi
975    
976    if [ $do24 = yes ] ; then
977      echo $title24
978      if [ "$bits" = "8" -o "$bits" = "32" ] ; then
979        echo "  Skipped when running 8/32-bit tests"
980      elif [ $utf -eq 0 ] ; then
981        echo "  Skipped because UTF-$bits support is not available"
982      else
983        $sim $valgrind ./pcretest -q $bmode $testdata/testinput24 testtry
984        if [ $? = 0 ] ; then
985          $cf $testdata/testoutput24 testtry
986          if [ $? != 0 ] ; then exit 1; fi
987        else exit 1
988        fi
989        echo "  OK"
990      fi
991    fi
992    
993    if [ $do25 = yes ] ; then
994      echo $title25
995      if [ "$bits" = "8" -o "$bits" = "16" ] ; then
996        echo "  Skipped when running 8/16-bit tests"
997      else
998        $sim $valgrind ./pcretest -q $bmode $testdata/testinput25 testtry
999        if [ $? = 0 ] ; then
1000          $cf $testdata/testoutput25 testtry
1001          if [ $? != 0 ] ; then exit 1; fi
1002        else exit 1
1003        fi
1004        echo "  OK"
1005      fi
1006    fi
1007    
1008    if [ $do26 = yes ] ; then
1009      echo $title26
1010      if [ "$bits" = "8" -o "$bits" = "16" ] ; then
1011        echo "  Skipped when running 8/16-bit tests"
1012      elif [ $utf -eq 0 ] ; then
1013        echo "  Skipped because UTF-$bits support is not available"
1014      else
1015        $sim $valgrind ./pcretest -q $bmode $testdata/testinput26 testtry
1016        if [ $? = 0 ] ; then
1017          $cf $testdata/testoutput26 testtry
1018        if [ $? != 0 ] ; then exit 1; fi        if [ $? != 0 ] ; then exit 1; fi
1019      else exit 1      else exit 1
1020      fi      fi
# Line 854  if [ $do22 = yes ] ; then Line 1022  if [ $do22 = yes ] ; then
1022    fi    fi
1023  fi  fi
1024    
1025  # End of loop for 8-bit/16-bit tests  # End of loop for 8/16/32-bit tests
1026  done  done
1027    
1028  # Clean up local working files  # Clean up local working files

Legend:
Removed from v.1016  
changed lines
  Added in v.1123

  ViewVC Help
Powered by ViewVC 1.1.5