From: Eric Haszlakiewicz Date: Sat, 23 Nov 2019 17:03:27 +0000 (-0500) Subject: Add a quick way (JSONC_TEST_TRACE=1) to turn on shell tracing in tests. X-Git-Tag: json-c-0.14-20200419~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d3b014971fcd4fedf08051e864b4f640e1c2921;p=json-c Add a quick way (JSONC_TEST_TRACE=1) to turn on shell tracing in tests. --- diff --git a/tests/test-defs.sh b/tests/test-defs.sh index 7e1739b..64f383c 100755 --- a/tests/test-defs.sh +++ b/tests/test-defs.sh @@ -1,5 +1,10 @@ #!/bin/sh +if [ ! -z "$JSONC_TEST_TRACE" ] ; then + VERBOSE=1 + set -x + set -v +fi # Make sure srcdir is an absolute path. Supply the variable # if it does not exist. We want to be able to run the tests # stand-alone!!