Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
*.orig|*~) ;;
#*) echo $x ; sh $x ;;
*)
+ echo -n "$1/$x: "
sh "$x" >"$TOPDIR/$noslash-$x.fail" 2>&1 && \
- { echo "$1/$x: ok"; rm "$TOPDIR/$noslash-$x.fail"; } || echo "$1/$x: fail";
+ { echo "ok"; rm "$TOPDIR/$noslash-$x.fail"; } || echo "fail";
;;
esac
done
test -x "$x" || continue
name="${x%%.tests}"
test -f "$name.right" || continue
+ echo -n "$1/$x: "
{
"$THIS_SH" "./$x" >"$name.xx" 2>&1
diff -u "$name.xx" "$name.right" >"$TOPDIR/$noslash-$x.fail" \
&& rm -f "$name.xx" "$TOPDIR/$noslash-$x.fail"
- } && echo "$1/$x: ok" || echo "$1/$x: fail"
+ } && echo "ok" || echo "fail"
done
)
}