4 echo "No ./ash?! Perhaps you want to run 'ln -s ../../busybox ash'"
7 test -x printenv || gcc -O2 -o printenv printenv.c || exit $?
8 test -x recho || gcc -O2 -o recho recho.c || exit $?
9 test -x zecho || gcc -O2 -o zecho zecho.c || exit $?
11 PATH="$PWD:$PATH" # for ash and recho/zecho/printenv
19 test -d "$1" || return 0
22 cd "$1" || { echo "cannot cd $1!"; exit 1; }
24 test -f "$x" || continue
26 "$0"|run-minimal|run-gprof) ;;
28 #*) echo $x ; sh $x ;;
30 sh "$x" >"../$1-$x.fail" 2>&1 && \
31 { echo "$1/$x: ok"; rm "../$1-$x.fail"; } || echo "$1/$x: fail";
35 # Many bash run-XXX scripts just do this,
36 # no point in duplication it all over the place
38 test -x "$x" || continue
40 test -f "$name.right" || continue
42 "$THIS_SH" "./$x" >"$name.xx" 2>&1
43 diff -u "$name.xx" "$name.right" >"../$1-$x.fail" && rm -f "$name.xx" "../$1-$x.fail"
44 } && echo "$1/$x: ok" || echo "$1/$x: fail"
49 # main part of this script
50 # Usage: run-all [directories]
56 for module in $modules; do
60 while [ $# -ge 1 ]; do