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
26 # echo Running tests in directory "$1"
29 cd "$1" || { echo "cannot cd $1!"; exit 1; }
31 test -f "$x" || continue
33 "$0"|run-minimal|run-gprof) ;;
35 #*) echo $x ; sh $x ;;
37 sh "$x" >"../$1-$x.fail" 2>&1 && \
38 { echo "$1/$x: ok"; rm "../$1-$x.fail"; } || echo "$1/$x: fail";
42 # Many bash run-XXX scripts just do this,
43 # no point in duplication it all over the place
45 test -x "$x" || continue
47 test -f "$name.right" || continue
48 # echo Running test: "$name.right"
50 "$THIS_SH" "./$x" >"$name.xx" 2>&1
51 diff -u "$name.xx" "$name.right" >"../$1-$x.fail" && rm -f "$name.xx" "../$1-$x.fail"
52 } && echo "$1/$x: ok" || { echo "$1/$x: fail"; tret=1; }
58 # Main part of this script
59 # Usage: run-all [directories]
65 modules=`ls -d hush-*`
67 for module in $modules; do
68 do_test $module || ret=1
71 while [ $# -ge 1 ]; do