Testing: add env var to allow verbose output

This commit is contained in:
Shahram Najm 2015-01-26 15:40:07 +00:00
parent f00fb337cd
commit 409c7ff468
1 changed files with 6 additions and 0 deletions

View File

@ -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