testsuite: uniformly use $ECHO with -n -e

This commit is contained in:
Denis Vlasenko
2008-07-11 21:41:14 +00:00
parent 94884eb486
commit abe49fa54f
9 changed files with 691 additions and 690 deletions

View File

@ -3,6 +3,19 @@
# Usage:
# runtest [applet1] [applet2...]
# Helper for helpers. Oh my...
test x"$ECHO" != x"" || {
ECHO="echo"
test x"`echo -ne`" = x"" || {
# Compile and use a replacement 'echo' which understands -e -n
ECHO="$PWD/echo-ne"
test -x "$ECHO" || {
gcc -Os -o "$ECHO" ../scripts/echo.c || exit 1
}
}
export ECHO
}
# Run one old-style test.
# Tests are stored in applet/testcase shell scripts.
# They are run using "sh -x -e applet/testcase".