Skip to content

Commit

Permalink
Add test_bufr2ioda.sh for adpsfc_snow ctest.
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaruidong2017 committed Aug 14, 2023
1 parent 24bfe75 commit 00068d9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/land/test_bufr2ioda.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

set -x

PROJECT_BINARY_DIR=${1}
OBSSOURCE=${2}
CMD=${PROJECT_BINARY_DIR}/bin/bufr2ioda.x
OBSYAML=${PROJECT_BINARY_DIR}/../ush/land/${OBSSOURCE}.yaml

OUTFILE=`grep obsdataout ${OBSYAML} | cut -d'"' -f2`

echo "the following might not exist"
rm -v ${PROJECT_BINARY_DIR}/test/${OUTFILE}

${CMD} ${OBSYAML}
rc=$?

ls ${PROJECT_BINARY_DIR}/test/${OUTFILE}
ra=$?
rc=$((rc+ra))

export err=$rc

exit $err

0 comments on commit 00068d9

Please sign in to comment.