Testing: Indexing BUFR

This commit is contained in:
shahramn 2024-03-13 15:13:16 +00:00
parent cd03fcb6cb
commit a9acb2673e
1 changed files with 9 additions and 0 deletions

View File

@ -45,6 +45,15 @@ ${tools_dir}/bufr_index_build -k mars.ident -o $tempIndex $infile |\
# ------------------ # ------------------
# Error conditions # Error conditions
# ------------------ # ------------------
infile=${data_dir}/bufr/vos308014_v3_26.bufr
set +e
${tools_dir}/bufr_index_build -o $tempIndex $infile > $tempOut 2>&1
status=$?
set -e
[ $status -ne 0 ]
grep -q "Unable to unpack BUFR to create index" $tempOut
echo BUFR > $tempBufr echo BUFR > $tempBufr
set +e set +e
${tools_dir}/bufr_index_build $tempBufr > $tempOut 2>&1 ${tools_dir}/bufr_index_build $tempBufr > $tempOut 2>&1