[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to grep/tests/fmbtest.sh
From: |
Charles Levert |
Subject: |
Changes to grep/tests/fmbtest.sh |
Date: |
Thu, 10 Nov 2005 14:57:57 -0500 |
Index: grep/tests/fmbtest.sh
diff -u grep/tests/fmbtest.sh:1.3 grep/tests/fmbtest.sh:1.4
--- grep/tests/fmbtest.sh:1.3 Thu Jun 23 00:55:58 2005
+++ grep/tests/fmbtest.sh Thu Nov 10 19:57:54 2005
@@ -65,31 +65,19 @@
failures=1
fi
-done
-
-# 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.
+# Test that --color=always does not depend on individual pattern order within
the pattern
+# list, and that a longer match is preferred to a shorter one starting at the
same point.
test6="`echo 'Cosi tu ÄiÅ¡Ã...' \
| LC_ALL=cs_CZ.UTF-8 ${GREP} --color=always -${mode}i -e 'ÄiÅ¡' -e
'ÄiÅ¡Ã'`"
-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
:
else
echo "Test #6 ${mode} failed: $test6"
failures=1
fi
-# Test that -{G,E} --color=always prefers earlier pattern matches.
+# Test that --color=always does not depend on individual pattern order within
the pattern
+# list, and that a longer match is preferred to a shorter one starting at the
same point.
test7="`echo 'Cosi tu ÄiÅ¡Ã...' \
| LC_ALL=cs_CZ.UTF-8 ${GREP} --color=always -${mode}i -e 'ÄiÅ¡Ã' -e
'ÄiÅ¡'`"
if echo "$test7" | LC_ALL=C ${GREP} -q 'Cosi tu
.*\[.*m\(.\[K\)\?ÄiÅ¡Ã.*\[.*m\(.\[K\)\?\.\.\.'; then
@@ -98,6 +86,10 @@
echo "Test #7 ${mode} failed: $test7"
failures=1
fi
+
+done
+
+for mode in G E; do
test8="$(echo `LC_ALL=cs_CZ.UTF-8 ${GREP} -${mode}i -e 'Ä.Å¡E' -e 'Ä[a-f]s'
csinput \
| LC_ALL=C sed 's/^.*\([0-9][0-9]\).*$/\1/'`)"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Changes to grep/tests/fmbtest.sh,
Charles Levert <=