2023-12-13 13:13:10 +00:00
|
|
|
#!/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
|
|
|
|
|
2023-12-19 15:16:37 +00:00
|
|
|
label="grib_clone_headers_only_test"
|
2023-12-13 13:13:10 +00:00
|
|
|
temp=temp.$label.grib
|
|
|
|
|
|
|
|
inputs="
|
|
|
|
sst_globus0083.grib
|
|
|
|
sample.grib2
|
|
|
|
mixed.grib
|
|
|
|
"
|
|
|
|
|
|
|
|
for f in $inputs; do
|
|
|
|
infile=$data_dir/$f
|
|
|
|
rm -f $temp
|
2023-12-19 15:16:37 +00:00
|
|
|
$EXEC ${test_dir}/grib_clone_headers_only $infile $temp
|
2023-12-13 13:13:10 +00:00
|
|
|
${tools_dir}/grib_compare -H -b totalLength $infile $temp
|
|
|
|
done
|
|
|
|
|
|
|
|
# Clean up
|
|
|
|
rm -f $temp
|