aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/run-all
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-05-09 01:05:33 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-05-09 01:05:33 +0200
commitbcf1fa80f31468a2299b681dd096d41a0b5ed7f4 (patch)
tree38b0b3756b33195b56bb9e98f53c02eeb2ac2f31 /shell/hush_test/run-all
parent54e9e1217c67563d70d6e2b14021293f707d7927 (diff)
downloadbusybox-bcf1fa80f31468a2299b681dd096d41a0b5ed7f4.tar.gz
hush: add tests for interrupting read
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/run-all')
-rwxr-xr-xshell/hush_test/run-all10
1 files changed, 6 insertions, 4 deletions
diff --git a/shell/hush_test/run-all b/shell/hush_test/run-all
index 256f152dc..64a7abc47 100755
--- a/shell/hush_test/run-all
+++ b/shell/hush_test/run-all
@@ -48,8 +48,9 @@ do_test()
*.orig|*~) ;;
#*) echo $x ; sh $x ;;
*)
+ echo -n "$1/$x:"
sh "$x" >"../$1-$x.fail" 2>&1 && \
- { echo "$1/$x: ok"; rm "../$1-$x.fail"; } || echo "$1/$x: fail";
+ { { echo " ok"; rm "../$1-$x.fail"; } || echo " fail"; }
;;
esac
done
@@ -60,6 +61,7 @@ do_test()
name="${x%%.tests}"
test -f "$name.right" || continue
# echo Running test: "$x"
+ echo -n "$1/$x:"
(
"$THIS_SH" "./$x" >"$name.xx" 2>&1
# filter C library differences
@@ -70,9 +72,9 @@ do_test()
diff -u "$name.xx" "$name.right" >"../$1-$x.fail" && rm -f "$name.xx" "../$1-$x.fail"
)
case $? in
- 0) echo "$1/$x: ok";;
- 77) echo "$1/$x: skip (feature disabled)";;
- *) echo "$1/$x: fail"; tret=1;;
+ 0) echo " ok";;
+ 77) echo " skip (feature disabled)";;
+ *) echo " fail"; tret=1;;
esac
done
exit ${tret}