mirror of https://github.com/ecmwf/eccodes.git
Testing: BUFR new from samples
This commit is contained in:
parent
44adab0569
commit
f09051b3f5
|
@ -10,16 +10,20 @@
|
||||||
|
|
||||||
. ./include.ctest.sh
|
. ./include.ctest.sh
|
||||||
|
|
||||||
OUTPUT=temp.ecc-517.bufr
|
label="bufr_ecc-517_test"
|
||||||
TEMP=temp.ecc-517.txt
|
tempBufr=temp.$label.bufr
|
||||||
|
tempText=temp.$label.txt
|
||||||
|
|
||||||
# Run program to create output BUFR file with replication
|
# Run program to create output BUFR file with replication
|
||||||
$EXEC ${test_dir}/bufr_ecc-517 $OUTPUT
|
export ECCODES_DEBUG=-1
|
||||||
|
$EXEC ${test_dir}/bufr_ecc-517 $tempBufr > $tempText 2>&1
|
||||||
|
unset ECCODES_DEBUG
|
||||||
|
rm -f $tempText
|
||||||
|
|
||||||
# Check file is OK and has the expected number of descriptors
|
# Check file is OK and has the expected number of descriptors
|
||||||
${tools_dir}/bufr_dump -jf $OUTPUT > $TEMP
|
${tools_dir}/bufr_dump -jf $tempBufr > $tempText
|
||||||
count=`grep -c extendedVerticalSoundingSignificance $TEMP`
|
count=$(grep -c extendedVerticalSoundingSignificance $tempText)
|
||||||
[ $count -eq 487 ]
|
[ $count -eq 487 ]
|
||||||
|
|
||||||
|
# Clean up
|
||||||
rm $OUTPUT $TEMP
|
rm $tempBufr $tempText
|
||||||
|
|
Loading…
Reference in New Issue