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:
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
. "${0%/*}/setup"
|
||||
. "${0%/*}/setup" "$@"
|
||||
|
||||
$VALGRIND $Q $JQ -L "$mods" --run-tests $JQTESTDIR/jq.test
|
||||
|
||||
@@ -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) |
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
. "${0%/*}/setup"
|
||||
. "${0%/*}/setup" "$@"
|
||||
|
||||
$VALGRIND $Q $JQ -L "$mods" --run-tests $JQTESTDIR/onig.test
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
. "${0%/*}/setup"
|
||||
. "${0%/*}/setup" "$@"
|
||||
|
||||
$VALGRIND $Q $JQ -L "$mods" --run-tests $JQTESTDIR/optional.test
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
. "${0%/*}/setup"
|
||||
. "${0%/*}/setup" "$@"
|
||||
|
||||
PATH=$JQBASEDIR:$PATH $JQBASEDIR/tests/jq-f-test.sh > /dev/null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user