eccodes/tests/grib_keys_iter.sh

40 lines
1.1 KiB
Bash
Executable File

#!/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.ctest.sh
label="grib_keys_iter_test"
tempOut=temp.$label.out
cd ${data_dir}
# ECC-1410
f='tigge/tiggelam_cnmc_sfc.grib'
$EXEC ${test_dir}/grib_keys_iter $f > /dev/null
# Samples
$EXEC ${test_dir}/grib_keys_iter $ECCODES_SAMPLES_PATH/GRIB1.tmpl > /dev/null
$EXEC ${test_dir}/grib_keys_iter $ECCODES_SAMPLES_PATH/GRIB2.tmpl > /dev/null
$EXEC ${test_dir}/grib_keys_iter $ECCODES_SAMPLES_PATH/sh_ml_grib2.tmpl > /dev/null
grib_files=`cat ${data_dir}/grib_data_files.txt`
for f in ${grib_files}; do
${test_dir}/grib_keys_iter $f > $tempOut
done
rm -f $tempOut
cd ${data_dir}/tigge
tigge_files=`cat ${data_dir}/tigge/tigge_data_files.txt`
for f in ${tigge_files}; do
${test_dir}/grib_keys_iter $f > $tempOut
done
rm -f $tempOut