/[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.1 by julianfoad, Wed Apr 27 20:30:53 2005 UTC revision 1.2 by charles_levert, Tue Jun 14 20:56:42 2005 UTC
# Line 70  done Line 70  done
70  # Test that -F --color=always prefers longer matches.  # Test that -F --color=always prefers longer matches.
71  test5="`echo 'Cosi tu ČišÍ...' \  test5="`echo 'Cosi tu ČišÍ...' \
72          | LC_ALL=cs_CZ.UTF-8 ${GREP} --color=always -Fi -e 'čiš' -e 'čiší'`"          | LC_ALL=cs_CZ.UTF-8 ${GREP} --color=always -Fi -e 'čiš' -e 'čiší'`"
73  if echo "$test5" | LC_ALL=C ${GREP} -q 'Cosi tu .*\[.*mČišÍ.*\[.*m\(.\[K\)\?\.\.\.'; then  if echo "$test5" | LC_ALL=C ${GREP} -q 'Cosi tu .*\[.*m\(.\[K\)\?ČišÍ.*\[.*m\(.\[K\)\?\.\.\.'; then
74    :    :
75  else  else
76    echo "Test #5 F failed: $test5"    echo "Test #5 F failed: $test5"
# Line 82  for mode in G E; do Line 82  for mode in G E; do
82  # Test that -{G,E} --color=always prefers earlier pattern matches.  # Test that -{G,E} --color=always prefers earlier pattern matches.
83  test6="`echo 'Cosi tu ČišÍ...' \  test6="`echo 'Cosi tu ČišÍ...' \
84          | 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ší'`"
85  if echo "$test6" | LC_ALL=C ${GREP} -q 'Cosi tu .*\[.*mČiš.*\[.*m\(.\[K\)\?Í\.\.\.'; then  if echo "$test6" | LC_ALL=C ${GREP} -q 'Cosi tu .*\[.*m\(.\[K\)\?Čiš.*\[.*m\(.\[K\)\?Í\.\.\.'; then
86    :    :
87  else  else
88    echo "Test #6 ${mode} failed: $test6"    echo "Test #6 ${mode} failed: $test6"
# Line 92  fi Line 92  fi
92  # Test that -{G,E} --color=always prefers earlier pattern matches.  # Test that -{G,E} --color=always prefers earlier pattern matches.
93  test7="`echo 'Cosi tu ČišÍ...' \  test7="`echo 'Cosi tu ČišÍ...' \
94          | 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š'`"
95  if echo "$test7" | LC_ALL=C ${GREP} -q 'Cosi tu .*\[.*mČišÍ.*\[.*m\(.\[K\)\?\.\.\.'; then  if echo "$test7" | LC_ALL=C ${GREP} -q 'Cosi tu .*\[.*m\(.\[K\)\?ČišÍ.*\[.*m\(.\[K\)\?\.\.\.'; then
96    :    :
97  else  else
98    echo "Test #7 ${mode} failed: $test7"    echo "Test #7 ${mode} failed: $test7"

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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