Browse Source

testsuite: update to use new sample dataset 'nc_spm_full_v2alpha' (trac https://trac.osgeo.org/grass/ticket/3783) (contributed by pmav99)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@74316 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 6 năm trước cách đây
mục cha
commit
759b8654a9

+ 1 - 1
testsuite/examples/test_framework_GRASS_GIS_with_NC.conf

@@ -5,7 +5,7 @@ GRASSBIN=grass77
 # source code directory as full path:
 GRASSSRC="$(realpath ../../)"
 # temporary grassdata directory
-GRASSDATA="$HOME/grassdata/tests-grassdata"
+GRASSDATA="$HOME/grassdata"
 
 # leave 1 or more CPU free for other usage than testing
 FREECPU=1

+ 8 - 24
testsuite/examples/test_framework_GRASS_GIS_with_NC.sh

@@ -9,8 +9,7 @@
 #                 https://grass.osgeo.org/grass76/manuals/libpython/gunittest_running_tests.html#example-bash-script-to-run-be-used-as-a-cron-job
 #
 #               Data:
-#                 Since we use the full NC dataset (nc_spm_08_grass7.tar.gz) here, we need to generate
-#                 some simplified names as used in NC basic for some test cases. This happens automatically below.
+#                 We use the full NC dataset (nc_spm_full_v2_alpha.tar.gz)
 #
 # COPYRIGHT:    (C) 2019 by Markus Neteler, and the GRASS Development Team
 #
@@ -102,27 +101,12 @@ mkdir -p $REPORTS/$CURRENT_REPORTS_DIR
 mkdir -p $GRASSDATA
 
 # fetch sample data
-SAMPLEDATA=nc_spm_08_grass7.tar.gz
-(cd $GRASSDATA ; wget -c https://grass.osgeo.org/sampledata/north_carolina/$SAMPLEDATA ; tar xfz $SAMPLEDATA )
-
-echo "Nightly GRASS GIS test started: $NOW" >> ${LOGFILE}
-
-# 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_28m,landuse
-g.copy raster=soilsID,soils
-g.copy vector=census_wake2000,census
-g.copy vector=elev_lid792_bepts,elev_points
-g.copy vector=zipcodes_wake,zipcodes
-g.copy vector=schools_wake,schools
-g.copy vector=streets_wake,streets
-" > $GRASSDATA/tmp_rename.sh
-$GRASSBIN $GRASSDATA/nc_spm_08_grass7/PERMANENT --exec sh $GRASSDATA/tmp_rename.sh
-rm -f $GRASSDATA/tmp_rename.sh
+SAMPLEDATA=nc_spm_full_v2alpha
+(cd $GRASSDATA ; wget -c http://fatra.cnr.ncsu.edu/data/$SAMPLEDATA.tar.gz ; tar xfz $SAMPLEDATA.tar.gz --strip-components 2)
+
+set -x
+
+echo "Testing of GRASS GIS started: $NOW" >> ${LOGFILE}
 
 if [ "$COMPILE" = "yes" ] ; then
    ## compile current source code from scratch
@@ -139,7 +123,7 @@ $PYTHON $GRASS_MULTI_RUNNER \
     --grassbin $GRASSBIN \
     --grasssrc $GRASSSRC \
     --grassdata $GRASSDATA \
-    --location nc_spm_08_grass7 --location-type nc \
+    --location $SAMPLEDATA --location-type nc \
     --location other_location --location-type other_type
 
 # create overall report of all so far executed tests