From 273150c3a0e25c3448ab5a58aff9c3475faa1d96 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 4 Mar 2022 14:42:25 +0000 Subject: [PATCH] ECC-1362: Testing: Add AEC packed data to test suite, that cannot be unpacked by SZIP --- data/CMakeLists.txt | 3 ++- tests/grib_ccsds.sh | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 31b0c641c..8fed17082 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -10,9 +10,10 @@ add_subdirectory(gts) file(READ "grib_data_files.txt" files_to_download) string(REGEX REPLACE "\n" ";" files_to_download "${files_to_download}") -# Download the CCSDS file even if HAVE_AEC feature is disabled. +# Download the CCSDS files even if HAVE_AEC feature is disabled. # This is for testing (See ECC-1352) list(APPEND files_to_download ccsds.grib2) +list(APPEND files_to_download ccsds_szip.grib2) # See ECC-1362 if( ENABLE_EXTRA_TESTS ) diff --git a/tests/grib_ccsds.sh b/tests/grib_ccsds.sh index d94004ec1..dd7c902eb 100755 --- a/tests/grib_ccsds.sh +++ b/tests/grib_ccsds.sh @@ -101,5 +101,12 @@ ${tools_dir}/grib_compare -b $BLACKLIST $infile $outfile1 ${tools_dir}/grib_compare -c data:n $outfile1 $outfile2 +# ECC-1362 +# --------- +infile=${data_dir}/ccsds_szip.grib2 +res=`${tools_dir}/grib_get '-F%.3f' -p min,max,avg $infile` +[ "$res" = "-180.000 180.000 -0.044" ] + + # Clean up rm -f $outfile1 $outfile2