From: Stephen Dolan Date: Fri, 13 Dec 2013 01:07:26 +0000 (+0000) Subject: Make the testsuite run on machines without valgrind X-Git-Tag: jq-1.4~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32ea50d336db8ca7d9501e178b3f9abe547841f2;p=jq Make the testsuite run on machines without valgrind --- diff --git a/tests/run b/tests/run index a4b5b32..ff09246 100755 --- a/tests/run +++ b/tests/run @@ -1,3 +1,9 @@ #!/bin/sh -cat $@ | valgrind --error-exitcode=1 -q --leak-check=full ./jq --run-tests \ No newline at end of file +if which valgrind > /dev/null; then + VALGRIND='valgrind --error-exitcode=1 -q --leak-check=full' +else + VALGRIND= +fi + +cat $@ | $VALGRIND ./jq --run-tests