aboutsummaryrefslogtreecommitdiff
path: root/testsuite/testing.sh
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-07-18 16:22:26 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-07-18 16:22:26 +0200
commit6ae6426a7485b5835c23aea198b3065f491d918b (patch)
tree79ebcee570986e27d7137720ca3139af277a162b /testsuite/testing.sh
parentb71ce023e9527b6afaa497ce62ca53a74cf94cef (diff)
downloadbusybox-w32-6ae6426a7485b5835c23aea198b3065f491d918b.tar.gz
busybox-w32-6ae6426a7485b5835c23aea198b3065f491d918b.tar.bz2
busybox-w32-6ae6426a7485b5835c23aea198b3065f491d918b.zip
fix mountpoint test to not prevemt mkfs_xxx from making image in any file
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/testing.sh')
-rwxr-xr-xtestsuite/testing.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/testsuite/testing.sh b/testsuite/testing.sh
index a57c4d68d..22c640faf 100755
--- a/testsuite/testing.sh
+++ b/testsuite/testing.sh
@@ -36,6 +36,20 @@
36export FAILCOUNT=0 36export FAILCOUNT=0
37export SKIP= 37export SKIP=
38 38
39# Helper for helpers. Oh my...
40
41test x"$ECHO" != x"" || {
42 ECHO="echo"
43 test x"`echo -ne`" = x"" || {
44 # Compile and use a replacement 'echo' which understands -e -n
45 ECHO="$PWD/echo-ne"
46 test -x "$ECHO" || {
47 gcc -Os -o "$ECHO" ../scripts/echo.c || exit 1
48 }
49 }
50 export ECHO
51}
52
39# Helper functions 53# Helper functions
40 54
41optional() 55optional()
@@ -73,7 +87,7 @@ testing()
73 87
74 $ECHO -ne "$3" > expected 88 $ECHO -ne "$3" > expected
75 $ECHO -ne "$4" > input 89 $ECHO -ne "$4" > input
76 [ -z "$VERBOSE" ] || echo "echo '$5' | $2" 90 [ -z "$VERBOSE" ] || echo "echo -ne '$5' | $2"
77 $ECHO -ne "$5" | eval "$2" > actual 91 $ECHO -ne "$5" | eval "$2" > actual
78 RETVAL=$? 92 RETVAL=$?
79 93