[GRASS-dev] Testsuite: script for easier use of test framework

Markus Neteler neteler at osgeo.org
Wed Jan 16 08:59:43 PST 2019


Hi,

I have used information which I found here and there and created a
script to be run locally:

testsuite/test_framework_GRASS_GIS_with_NC.sh

For sure a draft but I needed a script to automatically test if a
GRASS GIS installation is working ok or not.

Since we have the long term confusion if to use "nc_spm_08_grass7" or
"nc_basic_spm_grass7" in test cases, I simply used this trick:

# Preparation: Since we use the full NC dataset, we need to generate
some simplified names as used in NC basic for some test cases
echo "
g.copy raster=basin_50K,basin
g.copy raster=boundary_county_500m,boundary
g.copy raster=landcover_1m,landcover
g.copy raster=geology_30m,geology
g.copy raster=landuse96,landuse
g.copy raster=soilsID,soils
g.copy vector=zipcodes_wake,zipcodes
g.copy vector=schools_wake,schools
" > $GRASSDATA/tmp_rename.sh
$GRASSBIN $GRASSDATA/nc_spm_08_grass7/PERMANENT --exec sh
$GRASSDATA/tmp_rename.sh
rm -f $GRASSDATA/tmp_rename.sh

@Vaclav Petras
Maybe a workaround for the online test system at
http://fatra.cnr.ncsu.edu/grassgistests/summary_report/
?

Best
Markus


More information about the grass-dev mailing list