Testing: check for unbound variables

This commit is contained in:
Shahram Najm 2022-05-02 17:10:48 +01:00
parent d7c79f1c79
commit 656b784969
2 changed files with 4 additions and 0 deletions

View File

@ -19,10 +19,12 @@ tempLog=temp.${label}.log
tempSupp=temp.${label}.supp tempSupp=temp.${label}.supp
tempFilt=temp.${label}.filt tempFilt=temp.${label}.filt
set +u
if test "x$ECCODES_TEST_WITH_VALGRIND" = "x"; then if test "x$ECCODES_TEST_WITH_VALGRIND" = "x"; then
echo "Environment variable ECCODES_TEST_WITH_VALGRIND not defined. Test disabled" echo "Environment variable ECCODES_TEST_WITH_VALGRIND not defined. Test disabled"
exit 0 exit 0
fi fi
set -u
# The presence of ECCODES_TEST_WITH_VALGRIND environment variable redefines # The presence of ECCODES_TEST_WITH_VALGRIND environment variable redefines
# tools_dir so we reset it to its original # tools_dir so we reset it to its original

View File

@ -55,6 +55,8 @@ samp_dir="@CMAKE_BINARY_DIR@/@ECCODES_SAMPLES_SUFF@"
ECCODES_SAMPLES_PATH=${samp_dir} ECCODES_SAMPLES_PATH=${samp_dir}
export ECCODES_SAMPLES_PATH export ECCODES_SAMPLES_PATH
set -u
# Options # Options
HAVE_PRODUCT_BUFR=@HAVE_PRODUCT_BUFR@ HAVE_PRODUCT_BUFR=@HAVE_PRODUCT_BUFR@
HAVE_PRODUCT_GRIB=@HAVE_PRODUCT_GRIB@ HAVE_PRODUCT_GRIB=@HAVE_PRODUCT_GRIB@