aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runtest
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-07-11 21:41:14 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-07-11 21:41:14 +0000
commitabe49fa54fbd4d13f8424532abced8c3bc9afd0c (patch)
tree46b91fabcbe3aab24dd2f926c915553f633c5ed9 /testsuite/runtest
parent94884eb4866815e63293a6261f974601ce95b1dd (diff)
downloadbusybox-w32-abe49fa54fbd4d13f8424532abced8c3bc9afd0c.tar.gz
busybox-w32-abe49fa54fbd4d13f8424532abced8c3bc9afd0c.tar.bz2
busybox-w32-abe49fa54fbd4d13f8424532abced8c3bc9afd0c.zip
testsuite: uniformly use $ECHO with -n -e
Diffstat (limited to 'testsuite/runtest')
-rwxr-xr-xtestsuite/runtest13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/runtest b/testsuite/runtest
index 624de8fde..cade871a2 100755
--- a/testsuite/runtest
+++ b/testsuite/runtest
@@ -3,6 +3,19 @@
3# Usage: 3# Usage:
4# runtest [applet1] [applet2...] 4# runtest [applet1] [applet2...]
5 5
6# Helper for helpers. Oh my...
7test x"$ECHO" != x"" || {
8 ECHO="echo"
9 test x"`echo -ne`" = x"" || {
10 # Compile and use a replacement 'echo' which understands -e -n
11 ECHO="$PWD/echo-ne"
12 test -x "$ECHO" || {
13 gcc -Os -o "$ECHO" ../scripts/echo.c || exit 1
14 }
15 }
16 export ECHO
17}
18
6# Run one old-style test. 19# Run one old-style test.
7# Tests are stored in applet/testcase shell scripts. 20# Tests are stored in applet/testcase shell scripts.
8# They are run using "sh -x -e applet/testcase". 21# They are run using "sh -x -e applet/testcase".