Skip to content

Commit

Permalink
Add handling for tests with and without QC
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyhcliu committed Nov 2, 2023
1 parent 312165f commit 3fc5967
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions ush/ufoeval/test_yamls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,27 @@ if [ $? -ne 0 ]; then
exit 1
fi

for file in `ls ../../parm/atm/obs/testing/*yaml`; do
# Process tests wiht QC
for file in `find ../../parm/atm/obs/testing/*.yaml -type f -not -name "*noqc*"`; do
basefile=${file##*/}
inst="${basefile%.*}"
./run_ufo_hofx_test.sh -x $inst > $WORKDIR/$inst.log 2> $WORKDIR/$inst.err
obtype="${basefile%.*}"
echo $basefile
echo $obtype
./run_ufo_hofx_test_emily.sh -x $obtype > $WORKDIR/$obtype.log 2> $WORKDIR/$obtype.err
if [ $? == 0 ]; then
echo $basefile Passes \(yay!\)
else
echo $basefile Fails \(boo!\)
fi
done

# Process tests without QC (HofX + Observation error assignment)
for file in `ls ../../parm/atm/obs/testing/*_noqc.yaml`; do
basefile=${file##*/}
obtype="${basefile%_noqc.*}"
echo $basefile
echo $obtype
./run_ufo_hofx_test_emily.sh -x -q $obtype > $WORKDIR/${obtype}_noqc.log 2> $WORKDIR/${obtype}_noqc.err
if [ $? == 0 ]; then
echo $basefile Passes \(yay!\)
else
Expand Down

0 comments on commit 3fc5967

Please sign in to comment.