summaryrefslogtreecommitdiff
path: root/tests/fmbtest
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2014-06-26 14:39:39 -0700
committerJim Meyering <meyering@fb.com>2014-06-27 13:17:07 -0700
commit09434c399629d16bc4fceb443aa3e5cea412f4ea (patch)
tree30d29ffada817583e3ed270a16ede004c3403baa /tests/fmbtest
parent83757018e571b4a3afe14daad7e4101b589480d5 (diff)
downloadgrep-09434c399629d16bc4fceb443aa3e5cea412f4ea.tar.gz
maint: split long lines, and enforce the 80-column limit
* cfg.mk (sc_long_lines): New rule, from coreutils; exempt tests/* * src/grep.c (usage): Tweak -F wording to shorten a line. Correct grammar in a comment. Split the --exclude-file=... description to fit within 80 columns. Use emit_bug_reporting_address, eliminating another long line. * src/dfa.c: Split long lines. No semantic change. * doc/grep.texi: Likewise. * tests/include-exclude: Split a long line. * tests/backref: Split long lines. * tests/empty: Likewise. * tests/fmbtest: Likewise.
Diffstat (limited to 'tests/fmbtest')
-rwxr-xr-xtests/fmbtest22
1 files changed, 14 insertions, 8 deletions
diff --git a/tests/fmbtest b/tests/fmbtest
index 922f40b0..bec5403b 100755
--- a/tests/fmbtest
+++ b/tests/fmbtest
@@ -81,22 +81,28 @@ fi
# failures=1
#fi
-# 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.
+# 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=$cz 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
+ | LC_ALL=$cz 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
:
else
echo "Test #6 ${mode} failed: $test6"
failures=1
fi
-# 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.
+# 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=$cz 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
+ | LC_ALL=$cz 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
:
else
echo "Test #7 ${mode} failed: $test7"