Testing: Added new python test

This commit is contained in:
Shahram Najm 2016-08-03 14:10:15 +01:00
parent 913d16629b
commit c38ecd0637
2 changed files with 7 additions and 4 deletions

View File

@ -32,7 +32,7 @@ def example():
if id is None:
break
print 'Offset: ', codes_get_message_offset(id)
print codes_get_message_offset(id)
codes_release(id)

View File

@ -11,10 +11,13 @@
. ./include.sh
label="get_message_offset_p"
fTmp=${label}.tmp
fTmp1=${label}.1.tmp
fTmp2=${label}.2.tmp
input=${data_dir}/mixed.grib
$PYTHON $examples_src/grib_get_message_offset.py $input
$PYTHON $examples_src/grib_get_message_offset.py $input > $fTmp1
${tools_dir}/grib_get -p offset:i $input > $fTmp2
diff $fTmp1 $fTmp2
rm -f ${fTmp}
rm -f $fTmp1 $fTmp2