"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/setup" between
jq-1.5.tar.gz and jq-1.6.tar.gz

About: jq is a lightweight and flexible command-line JSON processor.

setup  (jq-1.5):setup  (jq-1.6)
#!/bin/sh #!/bin/sh
# This is meant to be included by each test's shell script driver. # This is meant to be included by each test's shell script driver.
if [ -n "$TRACE_TESTS" ]; then
set -x
fi
set -eu set -eu
JQTESTDIR=$(cd "$(dirname "$0")" && pwd) JQTESTDIR=$(cd "$(dirname "$0")" && pwd)
JQBASEDIR=$JQTESTDIR/.. JQBASEDIR=$JQTESTDIR/..
JQ=$JQBASEDIR/jq JQ=$JQBASEDIR/jq
if [ -z "${NO_VALGRIND-}" ] && which valgrind > /dev/null; then if [ -z "${NO_VALGRIND-}" ] && which valgrind > /dev/null; then
VALGRIND="valgrind --error-exitcode=1 --leak-check=full \ VALGRIND="valgrind --error-exitcode=1 --leak-check=full \
--suppressions=$JQTESTDIR/onig.supp" --suppressions=$JQTESTDIR/onig.supp"
VG_EXIT0=--error-exitcode=0
Q=-q Q=-q
else else
VALGRIND= VALGRIND=
VG_EXIT0=
Q= Q=
fi fi
mods=$JQTESTDIR/modules mods=$JQTESTDIR/modules
clean=true clean=true
d= d=
clean () { clean () {
if ! $clean; then if ! $clean; then
echo "See temp files in $d!" echo "See temp files in $d!"
elif [ -n "$d" ]; then elif [ -n "$d" ]; then
rm -rf "$d" rm -rf "$d"
fi fi
} }
trap clean EXIT trap clean EXIT
d=`mktemp -d -t jqXXXXX || true` d=$(mktemp -d -t jqXXXXXX || true)
if [ -z "$d" ]; then if [ -z "$d" ]; then
echo "Your OS does not support mktemp(1) -d" 1>&2 echo "Your OS does not support mktemp(1) -d" 1>&2
exit 1 exit 1
fi fi
 End of changes. 4 change blocks. 
1 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)