2013-05-08 02:30:08 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
2013-12-13 01:07:26 +00:00
|
|
|
if which valgrind > /dev/null; then
|
2014-06-18 19:49:38 -04:00
|
|
|
VALGRIND='valgrind --error-exitcode=1 -q --leak-check=full --suppressions=tests/onig.supp'
|
2013-12-13 01:07:26 +00:00
|
|
|
else
|
|
|
|
|
VALGRIND=
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
cat $@ | $VALGRIND ./jq --run-tests
|