From 3d3b014971fcd4fedf08051e864b4f640e1c2921 Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Sat, 23 Nov 2019 12:03:27 -0500 Subject: [PATCH] Add a quick way (JSONC_TEST_TRACE=1) to turn on shell tracing in tests. --- tests/test-defs.sh | 5 +++++ 1 file changed, 5 insertions(+) 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!!