Test for the presence of valgrind in the valgrind test
authorYannick Brosseau <yannick.brosseau@gmail.com>
Fri, 18 Feb 2011 21:57:43 +0000 (16:57 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Fri, 18 Feb 2011 21:57:43 +0000 (16:57 -0500)
Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/valgrind_ust-consumerd.sh

index a0d9e443de3030716b48e9217b18398544c5b4fc..d89a1f2cfd5c7d59d20a6e1502174693e30dd860 100755 (executable)
 #    You should have received a copy of the GNU General Public License
 #    along with LTTng-UST.  If not, see <http://www.gnu.org/licenses/>.
 
+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
This page took 0.025371 seconds and 4 git commands to generate.