]> granicus.if.org Git - json-c/commitdiff
Add a quick way (JSONC_TEST_TRACE=1) to turn on shell tracing in tests.
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sat, 23 Nov 2019 17:03:27 +0000 (12:03 -0500)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sat, 23 Nov 2019 17:03:27 +0000 (12:03 -0500)
tests/test-defs.sh

index 7e1739b4173ff0f4a5974f128b081395aed543d6..64f383cc62b9767b797480aca922235f8db5a7db 100755 (executable)
@@ -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!!