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

Diff of /code/trunk/RunTest

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

revision 1319 by ph10, Fri Mar 15 10:21:53 2013 UTC revision 1320 by ph10, Wed May 1 16:39:35 2013 UTC
# Line 16  Line 16 
16  #  #
17  # 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
18  # (again, almost) everything with studying and the JIT option, unless "nojit"  # (again, almost) everything with studying and the JIT option, unless "nojit"
19  # is given on the command line. There are also two tests for JIT-specific  # is given on the command line. There are also two tests for JIT-specific
20  # features, one to be run when JIT support is available (unless "nojit" is  # features, one to be run when JIT support is available (unless "nojit" is
21  # specified), and one when it is not.  # specified), and one when it is not.
22  #  #
# Line 234  while [ $# -gt 0 ] ; do Line 234  while [ $# -gt 0 ] ; do
234     -8) arg8=yes;;     -8) arg8=yes;;
235    -16) arg16=yes;;    -16) arg16=yes;;
236    -32) arg32=yes;;    -32) arg32=yes;;
237     nojit) nojit=yes;;     nojit) nojit=yes;;
238     sim) shift; sim=$1;;     sim) shift; sim=$1;;
239     valgrind) valgrind="valgrind --tool=memcheck -q --smc-check=all";;     valgrind) valgrind="valgrind --tool=memcheck -q --smc-check=all";;
240     valgrind-log) valgrind="valgrind --tool=memcheck --num-callers=30 --leak-check=no --error-limit=no --smc-check=all --log-file=report.%p ";;     valgrind-log) valgrind="valgrind --tool=memcheck --num-callers=30 --leak-check=no --error-limit=no --smc-check=all --log-file=report.%p ";;
# Line 243  while [ $# -gt 0 ] ; do Line 243  while [ $# -gt 0 ] ; do
243         skip="$skip `expr "$1" : '~\([0-9]*\)*$'`"         skip="$skip `expr "$1" : '~\([0-9]*\)*$'`"
244       else       else
245         echo "Unknown option or test selector '$1'"; exit 1         echo "Unknown option or test selector '$1'"; exit 1
246       fi       fi
247     ;;     ;;
248     *-*)     *-*)
249       if expr "$1" : '[0-9][0-9]*-[0-9]*$' >/dev/null; then       if expr "$1" : '[0-9][0-9]*-[0-9]*$' >/dev/null; then
250         tf=`expr "$1" : '\([0-9]*\)'`         tf=`expr "$1" : '\([0-9]*\)'`
251         tt=`expr "$1" : '.*-\([0-9]*\)'`         tt=`expr "$1" : '.*-\([0-9]*\)'`
252         if [ "$tt" = "" ] ; then tt=$maxtest; fi         if [ "$tt" = "" ] ; then tt=$maxtest; fi
253         if expr \( "$tf" "<" 1 \) \| \( "$tt" ">" "$maxtest" \) >/dev/null; then         if expr \( "$tf" "<" 1 \) \| \( "$tt" ">" "$maxtest" \) >/dev/null; then
254           echo "Invalid test range '$1'"; exit 1           echo "Invalid test range '$1'"; exit 1
255         fi         fi
256         while expr "$tf" "<=" "$tt" >/dev/null; do         while expr "$tf" "<=" "$tt" >/dev/null; do
257           eval do${tf}=yes           eval do${tf}=yes
258           tf=`expr $tf + 1`           tf=`expr $tf + 1`
259         done         done
260       else       else
261         echo "Invalid test range '$1'"; exit 1         echo "Invalid test range '$1'"; exit 1
262       fi       fi
263     ;;     ;;
264     *) echo "Unknown option or test selector '$1'"; exit 1;;     *) echo "Unknown option or test selector '$1'"; exit 1;;
265    esac    esac

Legend:
Removed from v.1319  
changed lines
  Added in v.1320

  ViewVC Help
Powered by ViewVC 1.1.5