GRIB CCSDS packing: Add extra tests (Part 2)
@@ -94,6 +94,16 @@ grib_check_key_equals $outfile1 packingType grid_ccsds
${tools_dir}/grib_set -r -s packingType=grid_simple $infile $outfile2
${tools_dir}/grib_compare -c data:n $outfile1 $outfile2
+# ECC-1352: Additional tests for bitsPerValue
+# --------------------------------------------
+infile=${data_dir}/sample.grib2
+${tools_dir}/grib_set -r -s setBitsPerValue=16,packingType=grid_ccsds $infile $outfile1
+${tools_dir}/grib_set -r -s setBitsPerValue=24,packingType=grid_ccsds $infile $outfile2
+grib_check_key_equals $outfile1 packingType grid_ccsds
+grib_check_key_equals $outfile2 packingType grid_ccsds
+${tools_dir}/grib_compare -b $BLACKLIST $infile $outfile1
+${tools_dir}/grib_compare -c data:n $outfile1 $outfile2
+
# Clean up
rm -f $outfile1 $outfile2
