/[grep]/grep/tests/fmbtest.sh
ViewVC logotype

Diff of /grep/tests/fmbtest.sh

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

revision 1.3 by charles_levert, Thu Jun 23 00:55:58 2005 UTC revision 1.4 by charles_levert, Thu Nov 10 19:57:54 2005 UTC
# Line 65  if test "$test4" != "01 02 08 13 17 19"; Line 65  if test "$test4" != "01 02 08 13 17 19";
65    failures=1    failures=1
66  fi  fi
67    
68  done  # Test that --color=always does not depend on individual pattern order within the pattern
69    # list, and that a longer match is preferred to a shorter one starting at the same point.
 # Test that -F --color=always prefers longer matches.  
 test5="`echo 'Cosi tu ČišÍ...' \  
         | LC_ALL=cs_CZ.UTF-8 ${GREP} --color=always -Fi -e 'čiš' -e 'čiší'`"  
 if echo "$test5" | LC_ALL=C ${GREP} -q 'Cosi tu .*\[.*m\(.\[K\)\?ČišÍ.*\[.*m\(.\[K\)\?\.\.\.'; then  
   :  
 else  
   echo "Test #5 F failed: $test5"  
   failures=1  
 fi  
   
 for mode in G E; do  
   
 # Test that -{G,E} --color=always prefers earlier pattern matches.  
70  test6="`echo 'Cosi tu ČišÍ...' \  test6="`echo 'Cosi tu ČišÍ...' \
71          | LC_ALL=cs_CZ.UTF-8 ${GREP} --color=always -${mode}i -e 'čiš' -e 'čiší'`"          | LC_ALL=cs_CZ.UTF-8 ${GREP} --color=always -${mode}i -e 'čiš' -e 'čiší'`"
72  if echo "$test6" | LC_ALL=C ${GREP} -q 'Cosi tu .*\[.*m\(.\[K\)\?Čiš.*\[.*m\(.\[K\)\?Í\.\.\.'; then  if echo "$test6" | LC_ALL=C ${GREP} -q 'Cosi tu .*\[.*m\(.\[K\)\?ČišÍ.*\[.*m\(.\[K\)\?\.\.\.'; then
73    :    :
74  else  else
75    echo "Test #6 ${mode} failed: $test6"    echo "Test #6 ${mode} failed: $test6"
76    failures=1    failures=1
77  fi  fi
78    
79  # Test that -{G,E} --color=always prefers earlier pattern matches.  # Test that --color=always does not depend on individual pattern order within the pattern
80    # list, and that a longer match is preferred to a shorter one starting at the same point.
81  test7="`echo 'Cosi tu ČišÍ...' \  test7="`echo 'Cosi tu ČišÍ...' \
82          | LC_ALL=cs_CZ.UTF-8 ${GREP} --color=always -${mode}i -e 'čiší' -e 'čiš'`"          | LC_ALL=cs_CZ.UTF-8 ${GREP} --color=always -${mode}i -e 'čiší' -e 'čiš'`"
83  if echo "$test7" | LC_ALL=C ${GREP} -q 'Cosi tu .*\[.*m\(.\[K\)\?ČišÍ.*\[.*m\(.\[K\)\?\.\.\.'; then  if echo "$test7" | LC_ALL=C ${GREP} -q 'Cosi tu .*\[.*m\(.\[K\)\?ČišÍ.*\[.*m\(.\[K\)\?\.\.\.'; then
# Line 99  else Line 87  else
87    failures=1    failures=1
88  fi  fi
89    
90    done
91    
92    for mode in G E; do
93    
94  test8="$(echo `LC_ALL=cs_CZ.UTF-8 ${GREP} -${mode}i -e 'Č.šE' -e 'Č[a-f]s' csinput \  test8="$(echo `LC_ALL=cs_CZ.UTF-8 ${GREP} -${mode}i -e 'Č.šE' -e 'Č[a-f]s' csinput \
95                 | LC_ALL=C sed 's/^.*\([0-9][0-9]\).*$/\1/'`)"                 | LC_ALL=C sed 's/^.*\([0-9][0-9]\).*$/\1/'`)"
96  if test "$test8" != "01 02 07 08 10 11 12 13 14 15 16 17 18 19 20"; then  if test "$test8" != "01 02 07 08 10 11 12 13 14 15 16 17 18 19 20"; then

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26