ECC-1322: Added test

This commit is contained in:
Shahram Najm 2021-12-17 17:17:08 +00:00
parent b323c5e3ec
commit 739188aba5
2 changed files with 29 additions and 0 deletions

View File

@ -92,6 +92,7 @@ if( HAVE_BUILD_TOOLS )
grib_ecc-1261
grib_ecc-1271
grib_ecc-1315
grib_ecc-1322
grib_ecc-1319
bufr_ecc-1028
bufr_ecc-1195

28
tests/grib_ecc-1322.sh Executable file
View File

@ -0,0 +1,28 @@
#!/bin/sh
# (C) Copyright 2005- ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
#
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
#
. ./include.sh
set -u
REDIRECT=/dev/null
label="grib_ecc-1322_test"
tempGrb=temp.$label.grib
tempOut=temp.$label.out
tempRef=temp.$label.ref
sample_grib1=$ECCODES_SAMPLES_PATH/GRIB1.tmpl
${tools_dir}/grib_set -s edition=2 $sample_grib1 $tempGrb
${tools_dir}/grib_compare -e -b param $sample_grib1 $tempGrb > $tempOut 2>&1
[ ! -s "$tempOut" ]
# Clean up
rm -f $tempGrb $tempOut $tempRef