ECC-1899: Test

This commit is contained in:
shahramn 2024-08-09 17:25:51 +01:00
parent 137136b893
commit 89ec3a19eb
1 changed files with 17 additions and 0 deletions

View File

@ -301,6 +301,23 @@ ${tools_dir}/grib_filter $tempFilt $input
cd ..
rm -rf $tempDir
# Use of debug_mode functor
cat >$tempFilt <<EOF
transient debug_on = debug_mode(-1);
set paramId = 167;
transient debug_off = debug_mode(0);
set paramId = 23;
transient debug_on = debug_mode(-1);
set date = 19990101;
EOF
${tools_dir}/grib_filter $tempFilt $ECCODES_SAMPLES_PATH/GRIB2.tmpl > $tempOut 2>&1
# 2m temperature has typeOfFirstFixedSurface of 103
grep -q "ECCODES DEBUG about to set key/value pair: typeOfFirstFixedSurface=103" $tempOut
grep -q "grib_set_long_internal .* year=1999" $tempOut
# Use of 'defined' functor
cat >$tempFilt <<EOF
if (defined(Ni)) { print "Ni defined: true"; }