| echo "No ./msh - creating a link to ../../busybox" |
| PATH="$PWD:$PATH" # for msh |
| # echo Running tests in directory "$1" |
| cd "$1" || { echo "cannot cd $1!"; exit 1; } |
| "$0"|run-minimal|run-gprof) ;; |
| sh "$x" >"../$1-$x.fail" 2>&1 && \ |
| { echo "$1/$x: ok"; rm "../$1-$x.fail"; } || echo "$1/$x: fail"; |
| # Many bash run-XXX scripts just do this, |
| # no point in duplication it all over the place |
| test -f "$name.right" || continue |
| # echo Running test: "$name.right" |
| "$THIS_SH" "./$x" >"$name.xx" 2>&1 |
| diff -u "$name.xx" "$name.right" >"../$1-$x.fail" && rm -f "$name.xx" "../$1-$x.fail" |
| } && echo "$1/$x: ok" || echo "$1/$x: fail" |
| # Main part of this script |
| # Usage: run-all [directories] |
| for module in $modules; do |