13 echo "No ./hush - creating a link to ../../busybox"
14 ln -s ../../busybox hush
17 PATH="$PWD:$PATH" # for hush and recho/zecho/printenv
25 test -d "$1" || return 0
27 # echo Running tests in directory "$1"
30 cd "$1" || { echo "cannot cd $1!"; exit 1; }
32 test -f "$x" || continue
34 "$0"|run-minimal|run-gprof) ;;
36 #*) echo $x ; sh $x ;;
38 sh "$x" >"../$1-$x.fail" 2>&1 && \
39 { echo "$1/$x: ok"; rm "../$1-$x.fail"; } || echo "$1/$x: fail";
43 # Many bash run-XXX scripts just do this,
44 # no point in duplication it all over the place
46 test -x "$x" || continue
48 test -f "$name.right" || continue
49 # echo Running test: "$x"
51 "$THIS_SH" "./$x" >"$name.xx" 2>&1
52 diff -u "$name.xx" "$name.right" >"../$1-$x.fail" && rm -f "$name.xx" "../$1-$x.fail"
53 } && echo "$1/$x: ok" || { echo "$1/$x: fail"; tret=1; }
59 # Main part of this script
60 # Usage: run-all [directories]
66 modules=`ls -d hush-*`
68 for module in $modules; do
69 do_test $module || ret=1
72 while [ $# -ge 1 ]; do