const_map_test stderr

+ [ -z  ]
+ which awk
+ [ ! -x /usr/bin/awk ]
+ unset LC_ALL
+ export LC_NUMERIC=C
+ g.gisenv
+ eval GISDBASE='/grassdata/tests-grassdata'; LOCATION_NAME='piemonte_utm32_wgs84_grass7'; MAPSET='__raster_r_mapcalc_const_map_test';
+ GISDBASE=/grassdata/tests-grassdata
+ LOCATION_NAME=piemonte_utm32_wgs84_grass7
+ MAPSET=__raster_r_mapcalc_const_map_test
+ :  /grassdata/tests-grassdata piemonte_utm32_wgs84_grass7 __raster_r_mapcalc_const_map_test
+ LOCATION=/grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__raster_r_mapcalc_const_map_test
+ PIXEL=3
+ EPSILON=22204460000000000
+ PID=13920
+ echo 13920_tmp_testmap
+ sed s+\.+_+g
+ TMPNAME=13920_tmp_testmap
+ MASKTMP=mask.13920_tmp_testmap
+ USERMASK=usermask_mask.13920_tmp_testmap
+ test -f /grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__raster_r_mapcalc_const_map_test/cell/MASK
+ MASKTMP=mask.13920_tmp_testmap
+ USERMASK=usermask_mask.13920_tmp_testmap
+ test -f /grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__raster_r_mapcalc_const_map_test/cell/MASK
+ echo Saving current & setting test region.
+ g.region save=13920_tmp_testmap
+ check_exit_status 0
+ [ 0 -ne 0 ]
+ g.region s=0 n=3 w=0 e=3 res=1 tbres=1
+ check_exit_status 0
+ [ 0 -ne 0 ]
+ VALUE=1
+ echo INT/CELL test.
+ r.mapcalc 13920_tmp_testmap = 1
+ check_exit_status 0
+ [ 0 -ne 0 ]
+ echo Univariate statistics of INT/CELL test.
+ r.univar -g 13920_tmp_testmap
+ eval n=9 null_cells=0 cells=9 min=1 max=1 range=0 mean=1 mean_of_abs=1 stddev=0 variance=0 coeff_var=0 sum=9
+ n=9 null_cells=0 cells=9 min=1 max=1 range=0 mean=1 mean_of_abs=1 stddev=0 variance=0 coeff_var=0 sum=9
+ check_exit_status 0
+ [ 0 -ne 0 ]
+ compare_result 9 9 n
+ EXPECTED=9
+ FOUND=9
+ VALUENAME=n
+ [ 9 = nan ]
+ echo 9 9 22204460000000000
+ awk {printf "%16f", ($1 - $2) * $3 }
+ DIFF=        0.000000
+ echo 0.000000
+ awk {printf("%f", sqrt($1 * $1))}
+ DIFF=0.000000
+ echo 0.000000
+ awk {printf("%20d", int($1+0.5))}
+ DIFF=                   0
+ [ 0 -gt 0 ]
+ compare_result 1 1 min
+ EXPECTED=1
+ FOUND=1
+ VALUENAME=min
+ [ 1 = nan ]
+ echo 1 1 22204460000000000
+ awk {printf "%16f", ($1 - $2) * $3 }
+ DIFF=        0.000000
+ echo 0.000000
+ awk {printf("%f", sqrt($1 * $1))}
+ DIFF=0.000000
+ echo 0.000000
+ awk {printf("%20d", int($1+0.5))}
+ DIFF=                   0
+ [ 0 -gt 0 ]
+ compare_result 1 1 max
+ EXPECTED=1
+ FOUND=1
+ VALUENAME=max
+ [ 1 = nan ]
+ echo 1 1 22204460000000000
+ awk {printf "%16f", ($1 - $2) * $3 }
+ DIFF=        0.000000
+ echo 0.000000
+ awk {printf("%f", sqrt($1 * $1))}
+ DIFF=0.000000
+ echo 0.000000
+ awk {printf("%20d", int($1+0.5))}
+ DIFF=                   0
+ [ 0 -gt 0 ]
+ compare_result 0 0 range
+ EXPECTED=0
+ FOUND=0
+ VALUENAME=range
+ [ 0 = nan ]
+ echo 0 0 22204460000000000
+ awk {printf "%16f", ($1 - $2) * $3 }
+ DIFF=        0.000000
+ + awk {printf("%f", sqrt($1 * $1))}
echo 0.000000
+ DIFF=0.000000
+ echo 0.000000
+ awk {printf("%20d", int($1+0.5))}
+ DIFF=                   0
+ [ 0 -gt 0 ]
+ compare_result 1 1 mean
+ EXPECTED=1
+ FOUND=1
+ VALUENAME=mean
+ [ 1 = nan ]
+ echo 1 1 22204460000000000
+ awk {printf "%16f", ($1 - $2) * $3 }
+ DIFF=        0.000000
+ echo 0.000000
+ awk {printf("%f", sqrt($1 * $1))}
+ DIFF=0.000000
+ echo 0.000000
+ awk {printf("%20d", int($1+0.5))}
+ DIFF=                   0
+ [ 0 -gt 0 ]
+ compare_result 0 0 stddev
+ EXPECTED=0
+ FOUND=0
+ VALUENAME=stddev
+ [ 0 = nan ]
+ echo 0 0 22204460000000000
+ awk {printf "%16f", ($1 - $2) * $3 }
+ DIFF=        0.000000
+ echo 0.000000
+ awk {printf("%f", sqrt($1 * $1))}
+ DIFF=0.000000
+ echo 0.000000
+ awk {printf("%20d", int($1+0.5))}
+ DIFF=                   0
+ [ 0 -gt 0 ]
+ compare_result 0 0 variance
+ EXPECTED=0
+ FOUND=0
+ VALUENAME=variance
+ [ 0 = nan ]
+ echo 0 0 22204460000000000
+ awk {printf "%16f", ($1 - $2) * $3 }
+ DIFF=        0.000000
+ echo 0.000000
+ awk {printf("%f", sqrt($1 * $1))}
+ DIFF=0.000000
+ echo 0.000000
+ awk {printf("%20d", int($1+0.5))}
+ DIFF=                   0
+ [ 0 -gt 0 ]
+ compare_result 0 0 coeff_var
+ EXPECTED=0
+ FOUND=0
+ VALUENAME=coeff_var
+ [ 0 = nan ]
+ echo 0 0 22204460000000000
+ awk {printf "%16f", ($1 - $2) * $3 }
+ DIFF=        0.000000
+ echo 0.000000
+ awk {printf("%f", sqrt($1 * $1))}
+ DIFF=0.000000
+ echo 0.000000
+ awk {printf("%20d", int($1+0.5))}
+ DIFF=                   0
+ [ 0 -gt 0 ]
+ compare_result 9 9 sum
+ EXPECTED=9
+ FOUND=9
+ VALUENAME=sum
+ [ 9 = nan ]
+ echo 9 9 22204460000000000
+ awk {printf "%16f", ($1 - $2) * $3 }
+ DIFF=        0.000000
+ echo 0.000000
+ awk {printf("%f", sqrt($1 * $1))}
+ DIFF=0.000000
+ echo 0.000000
+ awk {printf("%20d", int($1+0.5))}
+ DIFF=                   0
+ [ 0 -gt 0 ]
+ cleanup
+ echo Removing temporary map
+ g.remove -f type=raster name=13920_tmp_testmap
Removing raster <13920_tmp_testmap>
+ echo INT/CELL univariate statistics test successful
+ echo ##################################
+ VALUE=1.1
+ echo FLOAT/FCELL test.
+ r.mapcalc 13920_tmp_testmap = 1.1
+ check_exit_status 0
+ [ 0 -ne 0 ]
+ echo Univariate statistics of FLOAT/FCELL test.
+ r.univar -g 13920_tmp_testmap
+ eval n=9 null_cells=0 cells=9 min=1.1 max=1.1 range=0 mean=1.1 mean_of_abs=1.1 stddev=0 variance=0 coeff_var=0 sum=9.9
+ n=9 null_cells=0 cells=9 min=1.1 max=1.1 range=0 mean=1.1 mean_of_abs=1.1 stddev=0 variance=0 coeff_var=0 sum=9.9
+ check_exit_status 0
+ [ 0 -ne 0 ]
+ compare_result 9 9 n
+ EXPECTED=9
+ FOUND=9
+ VALUENAME=n
+ [ 9 = nan ]
+ echo 9 9 22204460000000000
+ awk {printf "%16f", ($1 - $2) * $3 }
+ DIFF=        0.000000
+ echo 0.000000
+ awk {printf("%f", sqrt($1 * $1))}
+ DIFF=0.000000
+ echo 0.000000
+ awk {printf("%20d", int($1+0.5))}
+ DIFF=                   0
+ [ 0 -gt 0 ]
+ compare_result 1.1 1.1 min
+ EXPECTED=1.1
+ FOUND=1.1
+ VALUENAME=min
+ [ 1.1 = nan ]
+ echo 1.1 1.1 22204460000000000
+ awk {printf "%16f", ($1 - $2) * $3 }
+ DIFF=        0.000000
+ echo 0.000000
+ awk {printf("%f", sqrt($1 * $1))}
+ DIFF=0.000000
+ echo 0.000000
+ awk {printf("%20d", int($1+0.5))}
+ DIFF=                   0
+ [ 0 -gt 0 ]
+ compare_result 1.1 1.1 max
+ EXPECTED=1.1
+ FOUND=1.1
+ VALUENAME=max
+ [ 1.1 = nan ]
+ echo 1.1 1.1 22204460000000000
+ awk {printf "%16f", ($1 - $2) * $3 }
+ DIFF=        0.000000
+ echo 0.000000
+ awk {printf("%f", sqrt($1 * $1))}
+ DIFF=0.000000
+ echo 0.000000
+ awk {printf("%20d", int($1+0.5))}
+ DIFF=                   0
+ [ 0 -gt 0 ]
+ compare_result 0 0 range
+ EXPECTED=0
+ FOUND=0
+ VALUENAME=range
+ [ 0 = nan ]
+ echo 0 0 22204460000000000
+ awk {printf "%16f", ($1 - $2) * $3 }
+ DIFF=        0.000000
+ echo 0.000000
+ awk {printf("%f", sqrt($1 * $1))}
+ DIFF=0.000000
+ echo 0.000000
+ awk {printf("%20d", int($1+0.5))}
+ DIFF=                   0
+ [ 0 -gt 0 ]
+ compare_result 1.1 1.1 mean
+ EXPECTED=1.1
+ FOUND=1.1
+ VALUENAME=mean
+ [ 1.1 = nan ]
+ echo 1.1 1.1 22204460000000000
+ awk {printf "%16f", ($1 - $2) * $3 }
+ DIFF=        0.000000
+ echo 0.000000
+ awk {printf("%f", sqrt($1 * $1))}
+ DIFF=0.000000
+ echo 0.000000
+ awk {printf("%20d", int($1+0.5))}
+ DIFF=                   0
+ [ 0 -gt 0 ]
+ compare_result 0 0 stddev
+ EXPECTED=0
+ FOUND=0
+ VALUENAME=stddev
+ [ 0 = nan ]
+ echo 0 0 22204460000000000
+ awk {printf "%16f", ($1 - $2) * $3 }
+ DIFF=        0.000000
+ echo 0.000000
+ awk {printf("%f", sqrt($1 * $1))}
+ DIFF=0.000000
+ echo 0.000000
+ awk {printf("%20d", int($1+0.5))}
+ DIFF=                   0
+ [ 0 -gt 0 ]
+ compare_result 0 0 variance
+ EXPECTED=0
+ FOUND=0
+ VALUENAME=variance
+ [ 0 = nan ]
+ echo 0 0 22204460000000000
+ awk {printf "%16f", ($1 - $2) * $3 }
+ DIFF=        0.000000
+ echo 0.000000
+ awk {printf("%f", sqrt($1 * $1))}
+ DIFF=0.000000
+ echo 0.000000
+ awk {printf("%20d", int($1+0.5))}
+ DIFF=                   0
+ [ 0 -gt 0 ]
+ compare_result 0 0 coeff_var
+ EXPECTED=0
+ FOUND=0
+ VALUENAME=coeff_var
+ [ 0 = nan ]
+ echo 0 0 22204460000000000
+ awk {printf "%16f", ($1 - $2) * $3 }
+ DIFF=        0.000000
+ echo 0.000000
+ awk {printf("%f", sqrt($1 * $1))}
+ DIFF=0.000000
+ echo 0.000000
+ awk {printf("%20d", int($1+0.5))}
+ DIFF=                   0
+ [ 0 -gt 0 ]
+ compare_result 9.9 9.9 sum
+ EXPECTED=9.9
+ FOUND=9.9
+ VALUENAME=sum
+ [ 9.9 = nan ]
+ echo 9.9 9.9 22204460000000000
+ awk {printf "%16f", ($1 - $2) * $3 }
+ DIFF=        0.000000
+ echo 0.000000
+ awk {printf("%f", sqrt($1 * $1))}
+ DIFF=0.000000
+ echo 0.000000
+ awk {printf("%20d", int($1+0.5))}
+ DIFF=                   0
+ [ 0 -gt 0 ]
+ cleanup
+ echo Removing temporary map
+ g.remove -f type=raster name=13920_tmp_testmap
Removing raster <13920_tmp_testmap>
+ echo FLOAT/FCELL univariate statistics test successful
+ echo ##################################
+ finalcleanup
+ echo Restoring user region
+ g.region region=13920_tmp_testmap
+ g.remove -f type=region name=13920_tmp_testmap
Removing region definition <13920_tmp_testmap>
+ test -f /grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__raster_r_mapcalc_const_map_test/cell/usermask_mask.13920_tmp_testmap
+ echo All tests successful. Congrats.
+ exit 0