mirror of https://github.com/ecmwf/eccodes.git
ECC-1126: Further testing
This commit is contained in:
parent
fb0b601757
commit
2fb3c5210a
|
@ -636,6 +636,7 @@ EOF
|
|||
|
||||
#Clean up
|
||||
rm -f ${dSplit}/*
|
||||
rmdir ${dSplit}
|
||||
rm -f $fLog $fRules
|
||||
rm -f $fBufrTmp
|
||||
|
||||
|
@ -877,7 +878,7 @@ diff ${fOut}.log.ref ${fOut}.log
|
|||
${tools_dir}/bufr_compare ${fOut} ${fOut}.ref
|
||||
|
||||
rm -f ${fOut}.log
|
||||
rm -f $fLog $fRules ${fOut}
|
||||
rm -f $fLog $fRules ${fOut} ${fOut}.log.ref
|
||||
#-----------------------------------------------------------
|
||||
# Test: add section 2
|
||||
#-----------------------------------------------------------
|
||||
|
@ -909,7 +910,7 @@ EOF
|
|||
fi
|
||||
|
||||
rm -f ${fOut}.log
|
||||
rm -f $fLog $fRules ${fOut}
|
||||
rm -f $fLog $fRules ${fOut} ${fOut}.log.ref
|
||||
|
||||
#-----------------------------------------------------------
|
||||
# Test: extract subsets uncompressed data
|
||||
|
|
|
@ -136,6 +136,7 @@ fieldOfViewNumber=7 8 9 10 11 12 13 8 9 10 11 12 11 12
|
|||
EOF
|
||||
|
||||
diff $outputRef $outputFilt
|
||||
rm -f $outputBufr
|
||||
|
||||
# Uncompressed message
|
||||
# ---------------------
|
||||
|
|
|
@ -23,7 +23,8 @@ touch $fLog
|
|||
|
||||
# Define tmp file
|
||||
fTmp=${label}".tmp.txt"
|
||||
rm -f $fTmp
|
||||
tempRef=${label}".tmp.ref.txt"
|
||||
rm -f $fTmp $tempRef
|
||||
|
||||
# Define another tmp file to store the test results
|
||||
res_get=${label}".get.test"
|
||||
|
@ -71,6 +72,19 @@ result=`${tools_dir}/bufr_get -m aaen_55.bufr`
|
|||
[ "$result" = "55 20121102 0000" ]
|
||||
result=`${tools_dir}/bufr_get -m syno_1.bufr`
|
||||
[ "$result" = "1 20121030 0000 91334" ]
|
||||
${tools_dir}/bufr_ls -j -m syno_1.bufr > $fTmp
|
||||
cat > $tempRef <<EOF
|
||||
{ "messages" : [
|
||||
{
|
||||
"obstype": 1,
|
||||
"date": 20121030,
|
||||
"time": "0000",
|
||||
"ident": 91334
|
||||
}
|
||||
]}
|
||||
EOF
|
||||
cat $tempRef
|
||||
diff $tempRef $fTmp
|
||||
|
||||
#-------------------------------------------
|
||||
# Local ECMWF section: 'ident' key
|
||||
|
@ -87,4 +101,4 @@ result=`${tools_dir}/bufr_get -f -p isSatellite,ident b003_56.bufr`
|
|||
|
||||
|
||||
# Clean up
|
||||
rm -f $fLog $fTmp $res_get
|
||||
rm -f $fLog $fTmp $res_get $tempRef
|
||||
|
|
|
@ -55,6 +55,7 @@ for c in 1 3 1/3; do
|
|||
if test "x$JSON_CHECK" != "x"; then
|
||||
json_xs < ${file}.json >$REDIRECT 2> $REDIRECT
|
||||
fi
|
||||
rm -f ${file}.json
|
||||
done
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue