From e81ce8098fa0a3e8b1e6f48b3ff182a7c0ac187e Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Mon, 21 Aug 2023 19:30:52 +0100 Subject: [PATCH] Testing: swapScanningAlternativeRows --- tests/grib_change_scanning.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/grib_change_scanning.sh b/tests/grib_change_scanning.sh index 2312c1ca3..25c5e005b 100755 --- a/tests/grib_change_scanning.sh +++ b/tests/grib_change_scanning.sh @@ -121,6 +121,14 @@ status=$? set -e [ $status -ne 0 ] +# Invalid Ni/Nj +${tools_dir}/grib_set -s Ni=9 $ECCODES_SAMPLES_PATH/GRIB2.tmpl $tempGribA +set +e +${tools_dir}/grib_set -s swapScanningAlternativeRows=1 $tempGribA $tempGribB +status=$? +set -e +[ $status -ne 0 ] + # ECC-1492 grib_check_key_equals "$ECCODES_SAMPLES_PATH/GRIB1.tmpl" iScansNegatively,iScansPositively '0 1' grib_check_key_equals "$ECCODES_SAMPLES_PATH/GRIB1.tmpl" jScansNegatively,jScansPositively '1 0'