1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Make it possible to run tests with set -x

One can now run:

    make TRACE_TESTS=1 check

to get detailed output
This commit is contained in:
Nicolas Williams
2016-01-17 12:23:05 -06:00
parent 062f86a625
commit c514368f98
6 changed files with 9 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
#!/bin/sh
. "${0%/*}/setup"
. "${0%/*}/setup" "$@"
$VALGRIND $Q $JQ -L "$mods" --run-tests $JQTESTDIR/jq.test

View File

@@ -1,6 +1,6 @@
#!/bin/sh
. "${0%/*}/setup"
. "${0%/*}/setup" "$@"
# We set PAGER because there's a mantest for `env` that uses it.
(cd $JQBASEDIR/docs && rake mantests) |

View File

@@ -1,5 +1,5 @@
#!/bin/sh
. "${0%/*}/setup"
. "${0%/*}/setup" "$@"
$VALGRIND $Q $JQ -L "$mods" --run-tests $JQTESTDIR/onig.test

View File

@@ -1,5 +1,5 @@
#!/bin/sh
. "${0%/*}/setup"
. "${0%/*}/setup" "$@"
$VALGRIND $Q $JQ -L "$mods" --run-tests $JQTESTDIR/optional.test

View File

@@ -2,6 +2,10 @@
# This is meant to be included by each test's shell script driver.
if [ -n "$TRACE_TESTS" ]; then
set -x
fi
set -eu
JQTESTDIR=$(cd "$(dirname "$0")" && pwd)

View File

@@ -1,6 +1,6 @@
#!/bin/sh
. "${0%/*}/setup"
. "${0%/*}/setup" "$@"
PATH=$JQBASEDIR:$PATH $JQBASEDIR/tests/jq-f-test.sh > /dev/null