FIND_VALGRIND=`which valgrind`# this will print an error if not found
# Give good warning to the user and stop
if[-z"$FIND_VALGRIND"];then
$ECHO"You need to have the 'valgrind' program in your PATH to run mysql-test-run with option --valgrind. Valgrind's home page is http://valgrind.kde.org ."
exit 1
fi
# >=2.1.2 requires the --tool option, some versions write to stdout, some to stderr
VALGRIND=`which valgrind`# this will print an error if not found
find_valgrind;
# Give good warning to the user and stop
VALGRIND=$FIND_VALGRIND
if[-z"$VALGRIND"];then
$ECHO"You need to have the 'valgrind' program in your PATH to run mysql-test-run with option --valgrind. Valgrind's home page is http://valgrind.kde.org ."
exit 1
fi
# >=2.1.2 requires the --tool option, some versions write to stdout, some to stderr