Rename tests

This commit is contained in:
Shahram Najm 2019-08-05 13:05:41 +01:00
parent 7fd2b5e91e
commit 4b65c47cdc
3 changed files with 7 additions and 13 deletions

View File

@ -15,7 +15,7 @@ list( APPEND test_bins
read_any read_any
julian julian
index index
multi_from_message grib_multi_from_message
read_index read_index
unit_tests unit_tests
bufr_keys_iter bufr_keys_iter
@ -152,7 +152,7 @@ list( APPEND tests_data_reqd
grib_bitmap grib_bitmap
grib_list grib_list
grib_second_order grib_second_order
multi_from_message grib_multi_from_message
grib_change_scanning grib_change_scanning
grib_statistics grib_statistics
grib_tigge grib_tigge

View File

@ -11,25 +11,19 @@
. ./include.sh . ./include.sh
out1=${data_dir}/multi1.out label='grib_multi_from_message'
out2=${data_dir}/multi2.out out1=${data_dir}/temp.$label.1.out
out2=${data_dir}/temp.$label.2.out
for infile in ${data_dir}/multi.grib2 ${data_dir}/reduced_gaussian_model_level.grib1 for infile in ${data_dir}/multi.grib2 ${data_dir}/reduced_gaussian_model_level.grib1
do do
#if [ ! -f ${infile} ] $EXEC ${test_dir}/grib_multi_from_message -m $infile > $out1
#then
# echo no data to test
# exit 0
#fi
$EXEC ${test_dir}/multi_from_message -m $infile > $out1
${tools_dir}/grib_get -p count,shortName,level $infile > $out2 ${tools_dir}/grib_get -p count,shortName,level $infile > $out2
diff $out1 $out2 diff $out1 $out2
$EXEC ${test_dir}/multi_from_message $infile > $out1 $EXEC ${test_dir}/grib_multi_from_message $infile > $out1
${tools_dir}/grib_get -M -p count,shortName,level $infile > $out2 ${tools_dir}/grib_get -M -p count,shortName,level $infile > $out2
diff $out1 $out2 diff $out1 $out2
rm -f $out1 $out2 rm -f $out1 $out2
done done