3 test -x hush || { echo "No ./hush?!"; exit; }
5 PATH="$PWD:$PATH" # for hush and recho/zecho/printenv
13 test -d "$1" || return 0
15 cd "$1" || { echo "cannot cd $1!"; exit 1; }
17 test -f "$x" || continue
19 "$0"|run-minimal|run-gprof) ;;
21 #*) echo $x ; sh $x ;;
23 sh "$x" >"../$1-$x.fail" 2>&1 && \
24 { echo "$1/$x: ok"; rm "../$1-$x.fail"; } || echo "$1/$x: fail";
28 # Many bash run-XXX scripts just do this,
29 # no point in duplication it all over the place
31 test -x "$x" || continue
33 test -f "$name.right" || continue
34 # echo Running test: "$name.right"
36 "$THIS_SH" "./$x" >"$name.xx" 2>&1
37 diff -u "$name.xx" "$name.right" >"../$1-$x.fail" && rm -f "$name.xx" "../$1-$x.fail"
38 } && echo "$1/$x: ok" || echo "$1/$x: fail"
43 # Main part of this script
44 # Usage: run-all [directories]
48 modules=`ls -d hush-*`
50 for module in $modules; do
54 while [ $# -ge 1 ]; do