/[pcre]/code/trunk/maint/ManyConfigTests
ViewVC logotype

Diff of /code/trunk/maint/ManyConfigTests

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

revision 730 by ph10, Sat Sep 10 16:19:31 2011 UTC revision 731 by ph10, Mon Oct 10 17:03:58 2011 UTC
# Line 67  function runtest() Line 67  function runtest()
67    conf=`./pcretest -C`    conf=`./pcretest -C`
68    nl=`expr match "$conf" ".*Newline sequence is \([A-Z]*\)"`    nl=`expr match "$conf" ".*Newline sequence is \([A-Z]*\)"`
69    jit=`expr match "$conf" ".*[^o] Just-in-time"`    jit=`expr match "$conf" ".*[^o] Just-in-time"`
70    utf8=`expr match "$conf" ".*[^o] UTF-8 support"`    utf8=`expr match "$conf" ".*[^o] UTF-8 support"`
71    
72    if [ "$nl" = "LF" -o "$nl" = "ANY" ]; then    if [ "$nl" = "LF" -o "$nl" = "ANY" ]; then
73      echo "Running C library tests"      echo "Running C library tests $withvalgrind"
74      $srcdir/RunTest >teststdout      $srcdir/RunTest $valgrind >teststdout
75      if [ $? -ne 0 ]; then      if [ $? -ne 0 ]; then
76        echo " "        echo " "
77        echo "**** Test failed ****"        echo "**** Test failed ****"
# Line 83  function runtest() Line 83  function runtest()
83    fi    fi
84    
85    if [ "$nl" = "LF" ]; then    if [ "$nl" = "LF" ]; then
86      echo "Running pcregrep tests"      echo "Running pcregrep tests $withvalgrind"
87      $srcdir/RunGrepTest >teststdout 2>teststderr      $srcdir/RunGrepTest $valgrind >teststdout 2>teststderr
88      if [ $? -ne 0 ]; then      if [ $? -ne 0 ]; then
89        echo " "        echo " "
90        echo "**** Test failed ****"        echo "**** Test failed ****"
# Line 97  function runtest() Line 97  function runtest()
97    fi    fi
98    
99    if [ "$jit" -gt 0 -a $utf8 -gt 0 ]; then    if [ "$jit" -gt 0 -a $utf8 -gt 0 ]; then
100      echo "Running JIT regression tests"      echo "Running JIT regression tests $withvalgrind"
101      $srcdir/pcre_jit_test >teststdout 2>teststderr      $cvalgrind $srcdir/pcre_jit_test >teststdout 2>teststderr
102      if [ $? -ne 0 ]; then      if [ $? -ne 0 ]; then
103        echo " "        echo " "
104        echo "**** Test failed ****"        echo "**** Test failed ****"
# Line 116  function runtest() Line 116  function runtest()
116                     pcre_scanner_unittest \                     pcre_scanner_unittest \
117                     pcre_stringpiece_unittest                     pcre_stringpiece_unittest
118        do        do
119          echo "Running $utest"          echo "Running $utest $withvalgrind"
120          $utest >teststdout          $cvalgrind $utest >teststdout
121          if [ $? -ne 0 ]; then          if [ $? -ne 0 ]; then
122            echo " "            echo " "
123            echo "**** Test failed ****"            echo "**** Test failed ****"
# Line 164  do Line 164  do
164    runtest    runtest
165  done  done
166    
167    # Now re-run some of the tests under valgrind.
168    
169    echo "Tests in the current directory using valgrind"
170    valgrind=valgrind
171    cvalgrind="valgrind -q --smc-check=all"
172    withvalgrind="with valgrind"
173    
174    for opts in \
175      "--enable-unicode-properties --disable-stack-for-recursion --disable-shared" \
176      "--enable-unicode-properties --with-link-size=3 --disable-shared" \
177      "--enable-jit --enable-unicode-properties --disable-shared"
178    do
179      runtest
180    done
181    
182  # Clean up the distribution and then do at least one build and test in a  # Clean up the distribution and then do at least one build and test in a
183  # directory other than the source directory. It doesn't work unless the  # directory other than the source directory. It doesn't work unless the

Legend:
Removed from v.730  
changed lines
  Added in v.731

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12