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

Diff of /code/trunk/RunGrepTest

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

revision 436 by ph10, Fri Aug 14 16:42:55 2009 UTC revision 437 by ph10, Sun Sep 6 16:34:42 2009 UTC
# Line 14  echo " " Line 14  echo " "
14  echo "Testing pcregrep"  echo "Testing pcregrep"
15  $pcregrep -V  $pcregrep -V
16    
 cf="diff -ub"  
17  valgrind=  valgrind=
   
18  while [ $# -gt 0 ] ; do  while [ $# -gt 0 ] ; do
19    case $1 in    case $1 in
20      valgrind) valgrind="valgrind -q --leak-check=no";;      valgrind) valgrind="valgrind -q --leak-check=no";;
# Line 25  while [ $# -gt 0 ] ; do Line 23  while [ $# -gt 0 ] ; do
23    shift    shift
24  done  done
25    
26    cf="diff -ub"
27    
28    # Set up a suitable "diff" command for comparison. Some systems have a diff
29    # that lacks a -u option. Try to deal with this; better do the test for the -b
30    # option as well.
31    
32    if diff -u /dev/null /dev/null; then
33      if diff -ub /dev/null /dev/null; then cf="diff -ub"; else cf="diff -u"; fi
34    else
35      if diff -b /dev/null /dev/null; then cf="diff -b"; else cf="diff"; fi
36    fi
37    
38  # If PCRE has been built in a directory other than the source directory, and  # If PCRE has been built in a directory other than the source directory, and
39  # this test is being run from "make check" as usual, then $(srcdir) will be  # this test is being run from "make check" as usual, then $(srcdir) will be
40  # set. If not, set it to the current directory. We then arrange to run the  # set. If not, set it to the current directory. We then arrange to run the

Legend:
Removed from v.436  
changed lines
  Added in v.437

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12