mirror of https://github.com/ecmwf/eccodes.git
Remove environment variable. Add 'set -x' to print trace of commands
This commit is contained in:
parent
a8f38209ef
commit
76fd217e70
|
@ -1,11 +1,6 @@
|
|||
# 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
|
||||
set -eax
|
||||
|
||||
proj_dir=@PROJECT_SOURCE_DIR@
|
||||
data_dir=@PROJECT_BINARY_DIR@/data
|
||||
|
|
|
@ -16,12 +16,7 @@ else
|
|||
# This is for autotools
|
||||
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
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
# 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
|
||||
set -eax
|
||||
|
||||
proj_dir=@PROJECT_SOURCE_DIR@
|
||||
data_dir=@PROJECT_BINARY_DIR@/data
|
||||
|
|
|
@ -12,17 +12,11 @@ if [ -f "$CMAKE_INCLUDE_FILE" ]; then
|
|||
. ./$CMAKE_INCLUDE_FILE
|
||||
|
||||
else
|
||||
set -ea
|
||||
set -eax
|
||||
|
||||
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,11 +1,6 @@
|
|||
# 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
|
||||
set -eax
|
||||
|
||||
data_dir=@PROJECT_BINARY_DIR@/data
|
||||
|
||||
|
|
|
@ -4,16 +4,10 @@ if [ -f "$CMAKE_INCLUDE_FILE" ]; then
|
|||
. ./$CMAKE_INCLUDE_FILE
|
||||
|
||||
else
|
||||
set -ea
|
||||
set -eax
|
||||
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
|
||||
|
|
|
@ -1,11 +1,7 @@
|
|||
set -ea
|
||||
# For CMake
|
||||
|
||||
# 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
|
||||
|
@ -20,7 +16,7 @@ tools_dir=@CMAKE_BINARY_DIR@/bin
|
|||
tigge_dir=@CMAKE_BINARY_DIR@/bin
|
||||
|
||||
# If this environment variable is set, then run the
|
||||
# executables with valgrind
|
||||
# test executables with valgrind
|
||||
if test "x$ECCODES_TEST_WITH_VALGRIND" != "x"; then
|
||||
tools_dir="valgrind --error-exitcode=1 -q @CMAKE_BINARY_DIR@/bin"
|
||||
fi
|
||||
|
|
|
@ -24,11 +24,7 @@ else
|
|||
# save current working dir
|
||||
save=`pwd`
|
||||
|
||||
# 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
|
||||
|
|
Loading…
Reference in New Issue