FYI, >From 9d1ba48cb7d7d1ed0aeecb2bfe54fc2fde3e9933 Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyer...@redhat.com> Date: Wed, 5 May 2010 10:38:28 +0200 Subject: [PATCH] tests: readability: use awk rather than obfuscated sed
* tests/backref-multibyte-slow: Generate input using an awk for-loop rather than expensive and harder-to-read sed pipes. Remove stray "set -x" and "wc -l in". --- tests/backref-multibyte-slow | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/backref-multibyte-slow b/tests/backref-multibyte-slow index d0d2b53..06ae1bd 100644 --- a/tests/backref-multibyte-slow +++ b/tests/backref-multibyte-slow @@ -8,16 +8,9 @@ require_timeout_ fail=0 -set -x -# Create a 12288-line input -echo aba | \ - sed 'p;p;p;p;p;p;p' | \ - sed 'p;p;p;p;p;p;p' | \ - sed 'p;p;p;p;p;p;p' | \ - sed 'p;p;p;p;p;p;p' | \ - sed 'p;p' > in +# Create a 13000-line input +$AWK 'BEGIN {for (i=0; i<13000; i++) print "aba"}' /dev/null > in || fail=1 - wc -l in for LOC in en_US.UTF-8; do out=out-$LOC LC_ALL=$LOC timeout 5s grep -E '^([a-z]).\1$' in > $out 2>&1 -- 1.7.1.335.g6845a