From: Michal Simek <[email protected]> This patch just show problem which has hush with running this script. If you apply it, you can see that tests can be run but there is broken reporting when test return 77 for unsupported features because I removed there. Please run origin run-all script to see if is work for you.
Signed-off-by: Michal Simek <[email protected]> --- shell/hush_test/run-all | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/shell/hush_test/run-all b/shell/hush_test/run-all index 6711414..8f5d8f1 100755 --- a/shell/hush_test/run-all +++ b/shell/hush_test/run-all @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/hush unset LANG LANGUAGE unset LC_COLLATE @@ -44,7 +44,7 @@ do_test() test -d "$1" || return 0 d=${d%/} # echo Running tests in directory "$1" - ( + tret=0 cd "$1" || { echo "cannot cd $1!"; exit 1; } for x in run-*; do @@ -66,7 +66,7 @@ do_test() name="${x%%.tests}" test -f "$name.right" || continue # echo Running test: "$x" - ( + "$THIS_SH" "./$x" >"$name.xx" 2>&1 # filter C library differences sed -i \ @@ -74,15 +74,15 @@ do_test() "$name.xx" test $? -eq 77 && rm -f "../$1-$x.fail" && exit 77 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;; esac done - exit ${tret} - ) + cd .. + return ${tret} } # Main part of this script -- 1.5.5.1 _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
