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

Diff of /code/trunk/RunTest

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

revision 1220 by ph10, Wed Nov 7 17:13:22 2012 UTC revision 1221 by ph10, Sun Nov 11 20:27:03 2012 UTC
# Line 127  if [ $# -eq 1 -a "$1" = "ebcdic" ]; then Line 127  if [ $# -eq 1 -a "$1" = "ebcdic" ]; then
127    if [ $ebcdic -ne 1 ] ; then    if [ $ebcdic -ne 1 ] ; then
128      echo "Cannot run EBCDIC tests: EBCDIC support not compiled"      echo "Cannot run EBCDIC tests: EBCDIC support not compiled"
129      exit 1      exit 1
130    fi    fi
131    
132    for opt in "" "-s" "-dfa" "-s -dfa"; do    for opt in "" "-s" "-dfa" "-s -dfa"; do
133      ./pcretest -q $opt $testdata/testinputEBC >testtry      ./pcretest -q $opt $testdata/testinputEBC >testtry
# Line 138  if [ $# -eq 1 -a "$1" = "ebcdic" ]; then Line 138  if [ $# -eq 1 -a "$1" = "ebcdic" ]; then
138      fi      fi
139      if [ "$opt" = "-s" ] ; then echo "  OK with study"      if [ "$opt" = "-s" ] ; then echo "  OK with study"
140      elif [ "$opt" = "-dfa" ] ; then echo "  OK using DFA"      elif [ "$opt" = "-dfa" ] ; then echo "  OK using DFA"
141      elif [ "$opt" = "-s -dfa" ] ; then echo "  OK using DFA with study"      elif [ "$opt" = "-s -dfa" ] ; then echo "  OK using DFA with study"
142      else echo "  OK"      else echo "  OK"
143      fi      fi
144    done    done
# Line 147  exit 0 Line 147  exit 0
147  fi  fi
148    
149    
150  # ------ Normal Tests ------  # ------ Normal Tests ------
151    
152  # Default values  # Default values
153    
# Line 229  while [ $# -gt 0 ] ; do Line 229  while [ $# -gt 0 ] ; do
229    shift    shift
230  done  done
231    
232  # Find which optional facilities are available.  # Find which optional facilities are available.
233    
234  $sim ./pcretest -C linksize >/dev/null  $sim ./pcretest -C linksize >/dev/null
235  link_size=$?  link_size=$?
# Line 263  test32=skip Line 263  test32=skip
263  if [ "$arg8$arg16$arg32" = "" ] ; then  if [ "$arg8$arg16$arg32" = "" ] ; then
264    if [ $support8 -ne 0 ] ; then    if [ $support8 -ne 0 ] ; then
265      test8=      test8=
266    fi    fi
267    if [ $support16 -ne 0 ] ; then    if [ $support16 -ne 0 ] ; then
268      test16=-16      test16=-16
269    fi    fi
270    if [ $support32 -ne 0 ] ; then    if [ $support32 -ne 0 ] ; then
271      test32=-32      test32=-32
272    fi    fi
273    
274  # Select requested bit sizes  # Select requested bit sizes
275    
# Line 280  else Line 280  else
280        exit 1        exit 1
281      fi      fi
282      test8=      test8=
283    fi    fi
284    if [ "$arg16" = yes ] ; then    if [ "$arg16" = yes ] ; then
285      if [ $support16 -eq 0 ] ; then      if [ $support16 -eq 0 ] ; then
286        echo "Cannot run 16-bit library tests: 16-bit library not compiled"        echo "Cannot run 16-bit library tests: 16-bit library not compiled"
287        exit 1        exit 1
288      fi      fi
289      test16=-16      test16=-16
290    fi    fi
291    if [ "$arg32" = yes ] ; then    if [ "$arg32" = yes ] ; then
292      if [ $support32 -eq 0 ] ; then      if [ $support32 -eq 0 ] ; then
293        echo "Cannot run 32-bit library tests: 32-bit library not compiled"        echo "Cannot run 32-bit library tests: 32-bit library not compiled"
294        exit 1        exit 1
295      fi      fi
296      test32=-32      test32=-32
297    fi    fi
298  fi  fi
299    
300  # UTF support always applies to all bit sizes if both are supported; we can't  # UTF support always applies to all bit sizes if both are supported; we can't

Legend:
Removed from v.1220  
changed lines
  Added in v.1221

  ViewVC Help
Powered by ViewVC 1.1.5