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

Diff of /code/trunk/RunGrepTest

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

revision 719 by ph10, Sun Sep 25 11:04:33 2011 UTC revision 720 by ph10, Fri Oct 7 15:18:21 2011 UTC
# Line 5  Line 5 
5  # supported by pcregrep.  # supported by pcregrep.
6    
7  # Set the C locale, so that sort(1) behaves predictably.  # Set the C locale, so that sort(1) behaves predictably.
8    
9  LC_ALL=C  LC_ALL=C
10  export LC_ALL  export LC_ALL
11    
12    # Remove any non-default colouring that the caller may have set.
13    
14    unset PCREGREP_COLOUR PCREGREP_COLOR
15    
16    # Set the program to be tested, and valgrind settings when requested.
17    
18  pcregrep=`pwd`/pcregrep  pcregrep=`pwd`/pcregrep
19    
20  valgrind=  valgrind=
# Line 28  fi Line 35  fi
35    
36  $pcregrep -V  $pcregrep -V
37    
 cf="diff -ub"  
   
38  # Set up a suitable "diff" command for comparison. Some systems have a diff  # Set up a suitable "diff" command for comparison. Some systems have a diff
39  # that lacks a -u option. Try to deal with this; better do the test for the -b  # that lacks a -u option. Try to deal with this; better do the test for the -b
40  # option as well.  # option as well.
41    
42    cf="diff -ub"
43  if diff -u /dev/null /dev/null; then  if diff -u /dev/null /dev/null; then
44    if diff -ub /dev/null /dev/null; then cf="diff -ub"; else cf="diff -u"; fi    if diff -ub /dev/null /dev/null; then cf="diff -ub"; else cf="diff -u"; fi
45  else  else

Legend:
Removed from v.719  
changed lines
  Added in v.720

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12