Testing: Windows diff dumps
@@ -34,9 +34,13 @@ ${tools_dir}/grib_dump $infile | grep -v FILE > $infile.dump
${tools_dir}/grib_dump $outfile | grep -v FILE > $outfile.dump
grib_check_key_equals $outfile section1Flags,section3Length '192 772'
+
+if [ $ECCODES_ON_WINDOWS -eq 0 ]; then
+ # There are some minute floating point differences on Windows
+ # so the diff would not work there
diff $outfile.dump ${data_dir}/bitmap.diff
diff $infile.dump ${data_dir}/no_bitmap.diff
-
+fi
${tools_dir}/grib_dump -O -p bitmap $outfile | grep -v FILE > $outfile.dump
cat > $tempRef <<EOF
@@ -63,7 +67,9 @@ ${tools_dir}/grib_set -s bitmapPresent=0 $outfile $outfile1 >$REDIRECT
${tools_dir}/grib_dump $outfile1 | grep -v FILE > $outfile1.dump
${tools_dir}/grib_dump $outfile | grep -v FILE > $outfile.dump
+if [ $ECCODES_ON_WINDOWS -eq 0 ]; then
diff $outfile1.dump ${data_dir}/no_bitmap.diff
+fi
rm -f $outfile1 $outfile1.dump $outfile $outfile.dump
