Added test for bufr_count

This commit is contained in:
Shahram Najm 2015-02-01 22:08:53 +00:00
parent 141fb68904
commit 97d509f581
2 changed files with 8 additions and 0 deletions

2
.gitignore vendored
View File

@ -41,6 +41,8 @@ tools/grib2ppm
tools/grib_compare
tools/grib_copy
tools/grib_count
tools/bufr_count
tools/codes_count
tools/grib_diff
tools/grib_dump
tools/grib_filter

View File

@ -47,4 +47,10 @@ ${tools_dir}/bufr_ls -p totalLength,centre,subCentre,masterTableNumber,masterTab
awk NR==3 $fTmp | awk '{split($0,a," "); for (i=1; i<=8; i++) print a[i]}' > $res_ls
diff $ref_ls $res_ls >$REDIRECT 2> $REDIRECT
# counting messages
count=`${tools_dir}bufr_count syno_multi.bufr`
[ "$count" = "3" ]
count=`${tools_dir}codes_count syno_multi.bufr`
[ "$count" = "3" ]
rm -f $fLog $res_ls $fTmp