Imported Upstream version 1.5
[debian/gzip] / tests / init.cfg
1 # This file is sourced by init.sh, *before* its initialization.
2
3 # This goes hand in hand with the "exec 9>&2;" in Makefile.am's
4 # TESTS_ENVIRONMENT definition.
5 stderr_fileno_=9
6
7 require_POSIX_grep_()
8 {
9   # Ensure that grep's -f and -E options works.
10   # On Solaris 5.11, "grep -f" prints this:
11   #   grep: illegal option -- f
12   #   Usage: grep -hblcnsviw pattern file . . .
13   # Similar for grep -E.
14
15   : | grep -f /dev/null
16   test $? = 1 || skip_ 'your grep lacks support for -f -'
17
18   grep -E foo /dev/null
19   test $? = 1 || skip_ 'your grep lacks support for -E'
20 }