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"
28 cd "$1" || { echo "cannot cd $1!"; exit 1; }
30 test -f "$x" || continue
32 "$0"|run-minimal|run-gprof) ;;
34 #*) echo $x ; sh $x ;;
36 sh "$x" >"../$1-$x.fail" 2>&1 && \
37 { echo "$1/$x: ok"; rm "../$1-$x.fail"; } || echo "$1/$x: fail";
41 # Many bash run-XXX scripts just do this,
42 # no point in duplication it all over the place
44 test -x "$x" || continue
46 test -f "$name.right" || continue
47 # echo Running test: "$name.right"
49 "$THIS_SH" "./$x" >"$name.xx" 2>&1
50 diff -u "$name.xx" "$name.right" >"../$1-$x.fail" && rm -f "$name.xx" "../$1-$x.fail"
51 } && echo "$1/$x: ok" || echo "$1/$x: fail"
56 # Main part of this script
57 # Usage: run-all [directories]
61 modules=`ls -d hush-*`
63 for module in $modules; do
67 while [ $# -ge 1 ]; do