test_base_resolution stderr

+ set -e
+ set -x
+ basename=test_rinlidar_
+ g.region n=20 s=10 e=30 w=20 res=2.5
+ r.in.xyz data/points.txt output=test_rinlidar_base x=1 y=2 z=3 separator=comma
Reading input data...
100
Writing to output raster map...
0..25..50..75..100
r.in.xyz complete. 16 points found in region.
+ echo With base raster resolution matching current region
+ r.in.lidar input=data/points.las output=test_rinlidar_with_region base_raster=test_rinlidar_base method=min -o
Reading data ...
100
Writing to map ...
100
r.in.lidar complete. Raster map <test_rinlidar_with_region> created. 16 points found in region.
+ echo Almost all in the following r.univar output should be zero
+ r.univar test_rinlidar_with_region
0..25..50..75..100
+ echo Automatic test if there are only allowed values...
+ + univar test_rinlidar_with_region -g
grep -ve =0$
+ grep -ve =-nan$
+ grep -e =[^2-9][^12345789]$
+ echo With base raster resolution different from current region
+ g.region res=5
+ r.in.lidar input=data/points.las output=test_rinlidar_with_base base_raster=test_rinlidar_base method=min -o -d
Reading data ...
100
Writing to map ...
100
r.in.lidar complete. Raster map <test_rinlidar_with_base> created. 16 points found in region.
+ echo Almost all in the following r.univar output should be zero
+ r.univar test_rinlidar_with_base
0..50..100
+ echo Automatic test if there are only allowed values...
+ + r.univargrep -ve =0$
+ grep -ve =-nan$
+ grep -e =[^12356789]$
+ echo Test successful
When running manually maps can be now removed with:
  g.remove type=rast pattern='test_rinlidar_*' -f
However, the region was changed to whatever the test needed.