From 409c7ff468f420808bc882957bb2e07020e3aa1c Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Mon, 26 Jan 2015 15:40:07 +0000 Subject: [PATCH] Testing: add env var to allow verbose output --- tests/include.ctest.sh.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/include.ctest.sh.in b/tests/include.ctest.sh.in index 01bc11db0..9187cf76d 100644 --- a/tests/include.ctest.sh.in +++ b/tests/include.ctest.sh.in @@ -15,3 +15,9 @@ test_dir=@CMAKE_BINARY_DIR@/tests samp_dir="${proj_dir}/samples" ECCODES_SAMPLES_PATH=${samp_dir} export ECCODES_SAMPLES_PATH + +# If this environment variable is set, then become verbose +# so one can see why and how a test failed +if test "x$ECCODES_TEST_VERBOSE_OUTPUT" != "x"; then + set -x +fi