diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 45af8a77d..2e14e0a3d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -82,7 +82,6 @@ if( HAVE_BUILD_TOOLS ) grib_packing_order filter_substr grib_uerra - grib_ecc-1571 grib_s2s grib_fire # grib_true_imagery @@ -110,6 +109,7 @@ if( HAVE_BUILD_TOOLS ) grib_ecc-1319 grib_ecc-1406 grib_ecc-1560 + grib_ecc-1571 bufr_ecc-1028 bufr_ecc-1195 bufr_ecc-1259 diff --git a/tests/grib_ecc-1571.sh b/tests/grib_ecc-1571.sh index 262dc82ce..80865ae78 100755 --- a/tests/grib_ecc-1571.sh +++ b/tests/grib_ecc-1571.sh @@ -10,27 +10,25 @@ . ./include.ctest.sh -REDIRECT=/dev/null - -label="prod_ECC-1571" # Change prod to bufr or grib etc -tempGrib1=temp1.$label.grib2 -tempGrib2=temp2.$label.grib2 +label="grib_ecc-1571" +tempGribA=temp1.$label.grib2 +tempGribB=temp2.$label.grib2 sample_grib2=$ECCODES_SAMPLES_PATH/GRIB2.tmpl # 1st we create a sample file for UERRA with centre lfpw -${tools_dir}/grib_set -s centre=lfpw,productionStatusOfProcessedData=8 ${sample_grib2} ${tempGrib1} +${tools_dir}/grib_set -s centre=lfpw,productionStatusOfProcessedData=8 ${sample_grib2} ${tempGribA} # Now we use the UERRA sample and add a local section to it -${tools_dir}/grib_set -s setLocalDefinition=1,grib2LocalSectionNumber=0,uerraLocalVersion=1 ${tempGrib1} ${tempGrib2} +${tools_dir}/grib_set -s setLocalDefinition=1,grib2LocalSectionNumber=0,uerraLocalVersion=1 ${tempGribA} ${tempGribB} # We should have a local section with uerraLocalVersion=1,experimentVersionNumber=0002 -grib_check_key_equals ${tempGrib2} uerraLocalVersion,experimentVersionNumber "1 0002" -grib_check_key_equals ${tempGrib2} 'marsExpver,mars.expver' '0002 0002' +grib_check_key_equals ${tempGribB} uerraLocalVersion,experimentVersionNumber "1 0002" +grib_check_key_equals ${tempGribB} 'marsExpver,mars.expver' '0002 0002' # set other expver -${tools_dir}/grib_set -s setLocalDefinition=1,grib2LocalSectionNumber=0,uerraLocalVersion=1,experimentVersionNumber=1234 ${tempGrib1} ${tempGrib2} -grib_check_key_equals ${tempGrib2} uerraLocalVersion,experimentVersionNumber "1 1234" +${tools_dir}/grib_set -s setLocalDefinition=1,grib2LocalSectionNumber=0,uerraLocalVersion=1,experimentVersionNumber=1234 ${tempGribA} ${tempGribB} +grib_check_key_equals ${tempGribB} uerraLocalVersion,experimentVersionNumber "1 1234" -rm -f ${tempGrib1} ${tempGrib2} +rm -f ${tempGribA} ${tempGribB}