eccodes/tests/grib_copy_message.sh

24 lines
677 B
Bash
Raw Permalink Normal View History

#!/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_copy_message_test"
temp=temp.$label.grib
infile=$data_dir/sample.grib2
$EXEC ${test_dir}/grib_copy_message $infile $temp
# The hour key was changed but nothing else
${tools_dir}/grib_compare -b hour $infile $temp
# Clean up test outputs
rm -f $temp