mirror of https://github.com/ecmwf/eccodes.git
Testing: Improved error message
This commit is contained in:
parent
86f0b35f1a
commit
2344760d11
|
@ -24849,7 +24849,7 @@ int main(int argc, char** argv)
|
|||
for (i = 0; i < values_len; i++) {
|
||||
const double diff = fabs(values[i] - vals[i]);
|
||||
if (diff > EPSILON) {
|
||||
fprintf(stderr, "Unpacked value different: i=%lu values[i]=%.7f vals[i]=%.7f\n",
|
||||
fprintf(stderr, "Unpacked value different at i=%lu: original=%.7f decoded=%.7f\n",
|
||||
i, values[i], vals[i]);
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -71,17 +71,18 @@ fi
|
|||
|
||||
# IEEE
|
||||
# ------------
|
||||
#tests/grib_packing_order grid_ieee values_before_packing_type x2 # Does not work
|
||||
$EXEC ${test_dir}/grib_packing_order grid_ieee packing_type_before_values $temp_ieee1
|
||||
$EXEC ${test_dir}/grib_packing_order grid_ieee values_before_packing_type $temp_ieee2
|
||||
if [ $HAVE_EXTRA_TESTS -eq 1 ]; then
|
||||
#tests/grib_packing_order grid_ieee values_before_packing_type x2 # Does not work
|
||||
$EXEC ${test_dir}/grib_packing_order grid_ieee packing_type_before_values $temp_ieee1
|
||||
$EXEC ${test_dir}/grib_packing_order grid_ieee values_before_packing_type $temp_ieee2
|
||||
|
||||
${tools_dir}/grib_ls -n statistics $temp_ieee1 $temp_ieee2
|
||||
# TODO
|
||||
# ${tools_dir}/grib_compare $temp_ieee1 $temp_ieee2
|
||||
|
||||
# No point comparing with grid_simple as grid_ieee will be closer to the actual values
|
||||
# and less lossy
|
||||
${tools_dir}/grib_ls -n statistics $temp_ieee1 $temp_ieee2
|
||||
# TODO
|
||||
# ${tools_dir}/grib_compare $temp_ieee1 $temp_ieee2
|
||||
|
||||
# No point comparing with grid_simple as grid_ieee will be closer to the actual values
|
||||
# and less lossy
|
||||
fi
|
||||
|
||||
|
||||
# Second order Packing: TODO
|
||||
|
|
Loading…
Reference in New Issue