Make the testsuite run on machines without valgrind

This commit is contained in:
Stephen Dolan committed 2013-12-13 15:22:17 +00:00
1 parent 5ac6a460fa
commit 32ea50d336
1 file changed
+7 -1
+7 -1
View File
@@ -1,3 +1,9 @@
#!/bin/sh
cat $@ | valgrind --error-exitcode=1 -q --leak-check=full ./jq --run-tests
if which valgrind > /dev/null; then
VALGRIND='valgrind --error-exitcode=1 -q --leak-check=full'
else
VALGRIND=
fi
cat $@ | $VALGRIND ./jq --run-tests