#!/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. # set -x . ./include.sh REDIRECT=/dev/null cat > bufrdc_num_ref.filter< $REDIRECT > $res_num if [ $? != 0 ] then mv $file $file.no fi # Cannot use plain diff. We need to compare FLOAT NUMBERS with a tolerance perl number_compare.pl $ref_num $res_num > $diff_num 2> $diff_num #numdiff $ref_num $res_num > $diff_num 2> $diff_num if [ $? != 0 ] then mv $file $file.no else rm -f $res_num $diff_num fi #rm -f $res_num $diff_num done #rm -f bufrdc_num_ref.filter