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