mirror of https://github.com/ecmwf/eccodes.git
ECC-1362: Testing: Add AEC packed data to test suite, that cannot be unpacked by SZIP
This commit is contained in:
parent
0daf459199
commit
273150c3a0
|
@ -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 )
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue