4 echo "No ./msh - creating a link to ../../busybox"
5 ln -s ../../busybox msh
8 PATH="$PWD:$PATH" # for msh
16 test -d "$1" || return 0
17 # echo Running tests in directory "$1"
19 cd "$1" || { echo "cannot cd $1!"; exit 1; }
21 test -f "$x" || continue
23 "$0"|run-minimal|run-gprof) ;;
25 #*) echo $x ; sh $x ;;
27 sh "$x" >"../$1-$x.fail" 2>&1 && \
28 { echo "$1/$x: ok"; rm "../$1-$x.fail"; } || echo "$1/$x: fail";
32 # Many bash run-XXX scripts just do this,
33 # no point in duplication it all over the place
35 test -x "$x" || continue
37 test -f "$name.right" || continue
38 # echo Running test: "$name.right"
40 "$THIS_SH" "./$x" >"$name.xx" 2>&1
41 diff -u "$name.xx" "$name.right" >"../$1-$x.fail" && rm -f "$name.xx" "../$1-$x.fail"
42 } && echo "$1/$x: ok" || echo "$1/$x: fail"
47 # Main part of this script
48 # Usage: run-all [directories]
54 for module in $modules; do
58 while [ $# -ge 1 ]; do