diff --git a/tests/ecc-517.sh b/tests/ecc-517.sh index 45b11c8bd..555643241 100755 --- a/tests/ecc-517.sh +++ b/tests/ecc-517.sh @@ -10,8 +10,16 @@ . ./include.sh -# The program produces a BUFR file as output OUTPUT=temp.ecc-517.bufr +TEMP=temp.ecc-517.txt + +# Run program to create output BUFR file with replication ${test_dir}/ecc-517 $OUTPUT -rm $OUTPUT +# Check file is OK and has the expected number of descriptors +${tools_dir}/bufr_dump -jf $OUTPUT > $TEMP +count=`grep -c extendedVerticalSoundingSignificance $TEMP` +[ $count -eq 487 ] + + +rm $OUTPUT $TEMP