tests: new requirement 'grep-nonprint'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 22 Jun 2012 20:31:35 +0000 (22:31 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 22 Jun 2012 20:31:56 +0000 (22:31 +0200)
commit19c56b1d1295120cc33503dd90d218d486656d5d
tree0cfa5475a1c3f816d540ba8b2f43aee20019055e
parentc94da9924b88684bf839d402e17ff232cbbb1c4e
tests: new requirement 'grep-nonprint'

* t/ax/test-inist.sh ($esc): New, a literal escape character.
(grep-nonprint): New requirement, check that the grep implementation
available that can handle non-printing characters correctly.
* t/color.sh: Use it instead of hand-rolled equivalent, and do not
(re)define '$esc' explicitly.
* t/color2.sh: Likewise.
* t/tap-color.sh: Likewise.
* t/vtexi4.sh: Likewise.
* t/parallel-tests-no-color-in-log.sh: Likewise.  Also prefer the use
of grep over that of $FGREP, because the new requirement only check
grep, and ensure we only grep non-printing characters from a pipe, to
avoid hitting a BSD grep limitation.
* t/parallel-tests-reset-term.sh: Likewise.
* t/ax/tap-summary-aux.sh: Use '$esc' instead of hard-coding the
literal escape character.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/ax/tap-summary-aux.sh
t/ax/test-init.sh
t/color.sh
t/color2.sh
t/parallel-tests-no-color-in-log.sh
t/parallel-tests-reset-term.sh
t/tap-color.sh
t/vtexi4.sh