From: Yannick Brosseau Date: Fri, 18 Feb 2011 21:57:43 +0000 (-0500) Subject: Test for the presence of valgrind in the valgrind test X-Git-Tag: v0.12~47 X-Git-Url: http://git.lttng.org/?p=ust.git;a=commitdiff_plain;h=009ec7e5d85b858452207fcb9bb7647c0eea99a2 Test for the presence of valgrind in the valgrind test Signed-off-by: Yannick Brosseau Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/valgrind_ust-consumerd.sh b/tests/valgrind_ust-consumerd.sh index a0d9e44..d89a1f2 100755 --- a/tests/valgrind_ust-consumerd.sh +++ b/tests/valgrind_ust-consumerd.sh @@ -17,6 +17,11 @@ # You should have received a copy of the GNU General Public License # along with LTTng-UST. If not, see . +if [ -n "$(which valgrind)" ]; then + echo "$0: Valgrind not found on the system." >/dev/stderr + exit 1; +fi + TESTDIR=$(dirname $0) source $TESTDIR/test_functions.sh