mirror of https://github.com/ecmwf/eccodes.git
Testing: add env var to allow verbose output
This commit is contained in:
parent
d3e0029c3b
commit
1fca46dfb4
|
@ -1,6 +1,12 @@
|
|||
# examples/C include file for CMake
|
||||
|
||||
set -ea
|
||||
# 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
|
||||
|
||||
proj_dir=@PROJECT_SOURCE_DIR@
|
||||
data_dir=@PROJECT_BINARY_DIR@/data
|
||||
|
||||
|
|
|
@ -17,6 +17,12 @@ else
|
|||
echo
|
||||
echo "TEST: $0"
|
||||
|
||||
# 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
|
||||
|
||||
if [ -z "${data_dir}" ]
|
||||
then
|
||||
cd ../../
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
# examples/F90 include file for CMake
|
||||
|
||||
set -ea
|
||||
# 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
|
||||
|
||||
proj_dir=@PROJECT_SOURCE_DIR@
|
||||
data_dir=@PROJECT_BINARY_DIR@/data
|
||||
|
||||
|
|
|
@ -17,6 +17,12 @@ else
|
|||
echo
|
||||
echo "TEST: $0"
|
||||
|
||||
# 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
|
||||
|
||||
if [ -z "${data_dir}" ]
|
||||
then
|
||||
cd ../../
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
# examples/python include file for CMake
|
||||
|
||||
set -ea
|
||||
# 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
|
||||
|
||||
proj_dir=@PROJECT_SOURCE_DIR@
|
||||
data_dir=@PROJECT_BINARY_DIR@/data
|
||||
|
||||
|
|
|
@ -8,6 +8,12 @@ else
|
|||
echo
|
||||
echo "TEST: $0"
|
||||
|
||||
# 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
|
||||
|
||||
cpath=$TOPBUILDDIR
|
||||
ECCODES_DEFINITION_PATH=$cpath/definitions
|
||||
export ECCODES_DEFINITION_PATH
|
||||
|
|
Loading…
Reference in New Issue