Tests: check if JPEG support is enabled

This commit is contained in:
Shahram Najm 2016-11-03 18:20:22 +00:00
parent 58498214a3
commit 18b297dc52
1 changed files with 6 additions and 5 deletions

View File

@ -49,11 +49,12 @@ ${test_dir}grib_util_set_spec $infile $outfile > /dev/null
grib_check_key_equals $outfile section2Used 0
# Convert to edition2 and use JPEG for packing
infile=../data/latlon.grib
${test_dir}grib_util_set_spec -e 2 -p grid_jpeg $infile $outfile > /dev/null
res=`${tools_dir}grib_get -p edition,section2Used,packingType $outfile`
[ "$res" = "2 1 grid_jpeg" ]
if [ $HAVE_JPG -eq 1 ]; then
infile=../data/latlon.grib
${test_dir}grib_util_set_spec -e 2 -p grid_jpeg $infile $outfile > /dev/null
res=`${tools_dir}grib_get -p edition,section2Used,packingType $outfile`
[ "$res" = "2 1 grid_jpeg" ]
fi
# --------------------------------------------------
# Reduced Gaussian Grid N=32 second order packing