Skip to content

Commit

Permalink
v.what.rast3: Rename test folder and fix execution of test (#3362)
Browse files Browse the repository at this point in the history
* v.what.rast3: Rename test folder and fix execution of test

* v.what.rast3d: Disable v.out.ascii call in test shell script
  • Loading branch information
echoix committed Jan 26, 2024
1 parent 0ad33cc commit f7522f8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 41 deletions.
40 changes: 0 additions & 40 deletions vector/v.what.rast3/test_suite/random_points.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,27 @@ r3.mapcalc --o expr="plume = double(col() + row() + depth())"
# v.random --o -z seed=1 output=random_points npoints=10 zmin=0 zmax=50
# v.out.ascii --o format=standard input=random_points output=random_points.txt

v.in.ascii --o -z format=standard input=random_points.txt output=random_points
v.in.ascii --o -z format=standard input=data/random_points.ref output=random_points
v.db.addtable --o map=random_points column="concentration double precision"

# @test the voxel sampling with vector points
v.what.rast3 map=random_points raster3d=plume column=concentration
v.db.select map=random_points > data/random_points_db.txt

# Some data export commands for reference data creation and visual validation
#v.out.ascii --o format=standard input=random_points output=random_points.ref
#v.db.select map=random_points > random_points_db.ref
#r3.out.vtk --o input=plume output=plume.vtk null=0
#v.out.vtk --o -n input=random_points output=random_points.vtk


cd data

for i in `ls *.txt` ; do
diff $i "`basename $i .txt`.ref" >> out.diff
done

CHAR_NUM=`cat out.diff | wc -c`

# Return as exit status 0 in case no diffs are found
exit $CHAR_NUM

0 comments on commit f7522f8

Please sign in to comment.