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

Diff of /code/trunk/RunTest

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

revision 164 by ph10, Fri May 4 15:11:14 2007 UTC revision 345 by ph10, Mon Apr 28 15:10:02 2008 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2    
3  # Run PCRE tests  # Run PCRE tests.
4    
 cf="diff -u"  
5  valgrind=  valgrind=
 testdata=testdata  
6    
7    # Set up a suitable "diff" command for comparison. Some systems
8    # have a diff that lacks a -u option. Try to deal with this.
9    
10    if diff -u /dev/null /dev/null; then cf="diff -u"; else cf="diff"; fi
11    
12    # Find the test data
13    
14    testdata=testdata
15  if [ -n "$srcdir" -a -d "$srcdir" ] ; then  if [ -n "$srcdir" -a -d "$srcdir" ] ; then
16    testdata="$srcdir/testdata"    testdata="$srcdir/testdata"
17  fi  fi
# Line 50  while [ $# -gt 0 ] ; do Line 56  while [ $# -gt 0 ] ; do
56      7) do7=yes;;      7) do7=yes;;
57      8) do8=yes;;      8) do8=yes;;
58      9) do9=yes;;      9) do9=yes;;
59     10) do10=yes;;     10) do10=yes;;
60     valgrind) valgrind="valgrind -q";;     valgrind) valgrind="valgrind -q";;
61      *) echo "Unknown test number $1"; exit 1;;      *) echo "Unknown test number $1"; exit 1;;
62    esac    esac
# Line 66  if [ $utf8 -eq 0 ] ; then Line 72  if [ $utf8 -eq 0 ] ; then
72      echo "Can't run test 5 because UTF-8 support is not configured"      echo "Can't run test 5 because UTF-8 support is not configured"
73      exit 1      exit 1
74    fi    fi
   if [ $do6 = yes ] ; then  
     echo "Can't run test 6 because UTF-8 support is not configured"  
     exit 1  
   fi  
75    if [ $do8 = yes ] ; then    if [ $do8 = yes ] ; then
76      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"
77      exit 1      exit 1
78    fi    fi
   if [ $do9 = yes ] ; then  
     echo "Can't run test 9 because UTF-8 support is not configured"  
     exit 1  
   fi  
79  fi  fi
80    
81  if [ $ucp -eq 0 ] ; then  if [ $ucp -eq 0 ] ; then
# Line 100  if [ $link_size -ne 2 ] ; then Line 98  if [ $link_size -ne 2 ] ; then
98      echo "Can't run test 10 because the link size ($link_size) is not 2"      echo "Can't run test 10 because the link size ($link_size) is not 2"
99      exit 1      exit 1
100    fi    fi
101  fi  fi
102    
103  # If no specific tests were requested, select all that are relevant.  # If no specific tests were requested, select all that are relevant.
104    
# Line 116  if [ $do1 = no -a $do2 = no -a $do3 = no Line 114  if [ $do1 = no -a $do2 = no -a $do3 = no
114    do7=yes    do7=yes
115    if [ $utf8 -ne 0 ] ; then do8=yes; fi    if [ $utf8 -ne 0 ] ; then do8=yes; fi
116    if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do9=yes; fi    if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do9=yes; fi
117    if [ $link_size -eq 2 ] ; then do10=yes; fi    if [ $link_size -eq 2 -a $ucp -ne 0 ] ; then do10=yes; fi
118  fi  fi
119    
120  # Show which release  # Show which release

Legend:
Removed from v.164  
changed lines
  Added in v.345

  ViewVC Help
Powered by ViewVC 1.1.5