separate jq, oniguruma, sh, and man tests

This commit is contained in:
David Tolnay authored and Nicolas Williams committed 2015-06-18 23:55:43 -05:00
1 parent 292f2d3208
commit 1146b8b84a
9 files changed
+172 -156

No files matched your search

Executable
+34
View File
@@ -0,0 +1,34 @@
#!/bin/sh
set -e
JQTESTDIR=$(cd "$(dirname "$0")" && pwd)
JQBASEDIR=$JQTESTDIR/..
JQ=$JQBASEDIR/jq
if which valgrind > /dev/null; then
VALGRIND="valgrind --error-exitcode=1 --leak-check=full \
--suppressions=$JQTESTDIR/onig.supp"
Q=-q
else
VALGRIND=
Q=
fi
mods=$JQTESTDIR/modules
clean=true
d=
clean () {
if ! $clean; then
echo "See temp files in $d!"
elif [ -n "$d" ]; then
rm -rf "$d"
fi
}
trap clean EXIT
d=`mktemp -d -t || true`
if [ -z "$d" ]; then
echo "Your OS does not support mktemp(1) -d" 1>&2
exit 0
fi