projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hush: HUSH_READONLY depends on HUSH
[oweals/busybox.git]
/
testsuite
/
testing.sh
diff --git
a/testsuite/testing.sh
b/testsuite/testing.sh
index f907deade19932950cfc387b5617b2ea83a0ad56..f5b75694775f5ddf8be8742d820d2a399936b526 100644
(file)
--- a/
testsuite/testing.sh
+++ b/
testsuite/testing.sh
@@
-1,4
+1,4
@@
-# Simple test harness infrastructure
i
for BusyBox
+# Simple test harness infrastructure for BusyBox
#
# Copyright 2005 by Rob Landley
#
#
# Copyright 2005 by Rob Landley
#
@@
-56,10
+56,10
@@
optional()
{
SKIP=
while test "$1"; do
{
SKIP=
while test "$1"; do
-
if test x"${OPTIONFLAGS/*:$1:*/y}" != x"y"; the
n
- SKIP=1
- return
- fi
+
case "${OPTIONFLAGS}" i
n
+ *:$1:*) ;;
+ *) SKIP=1; return ;;
+ esac
shift
done
}
shift
done
}
@@
-87,6
+87,8
@@
testing()
$ECHO -ne "$3" > expected
$ECHO -ne "$4" > input
$ECHO -ne "$3" > expected
$ECHO -ne "$4" > input
+ [ -z "$VERBOSE" ] || echo ======================
+ [ -z "$VERBOSE" ] || echo "echo -ne '$4' >input"
[ -z "$VERBOSE" ] || echo "echo -ne '$5' | $2"
$ECHO -ne "$5" | eval "$2" > actual
RETVAL=$?
[ -z "$VERBOSE" ] || echo "echo -ne '$5' | $2"
$ECHO -ne "$5" | eval "$2" > actual
RETVAL=$?