Add COLORED_STDERR_IGNORED_BINARIES to exclude binaries.

This commit is contained in:
Simon Ruderich
2013-07-07 13:33:44 +02:00
parent 9ff0ffbd28
commit b950cdb792
5 changed files with 77 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ set -e
# Allow running the script directly without running `make check`.
test "x$builddir" = x && builddir=.
test "x$abs_builddir" = x && abs_builddir="`pwd`"
test "x$EGREP" = x && EGREP='grep -E'
# The tests fail if running under coloredstderr because the tests redirect

View File

@@ -59,3 +59,20 @@ COLORED_STDERR_FDS=
export COLORED_STDERR_FDS
test_program example example_environment_empty
test_program_subshell example example_environment_empty
unset COLORED_STDERR_FDS
# Test COLORED_STDERR_IGNORED_BINARIES.
if test -x /proc/self/exe; then
COLORED_STDERR_IGNORED_BINARIES="$abs_builddir/example"
export COLORED_STDERR_IGNORED_BINARIES
test_program example example_environment_empty
test_program_subshell example example_environment_empty
COLORED_STDERR_IGNORED_BINARIES=",some,other,path,,"
export COLORED_STDERR_IGNORED_BINARIES
test_program example example_environment
test_program_subshell example example_environment
fi