~ubuntu-branches/ubuntu/wily/grass/wily

« back to all changes in this revision

Viewing changes to testsuite/raster/rmapcalc_test.sh

Tags: 7.0.0~rc1+ds1-1~exp1
* New upstream release candidate.
* Repack upstream tarball, remove precompiled Python objects.
* Add upstream metadata.
* Update gbp.conf and Vcs-Git URL to use the experimental branch.
* Update watch file for GRASS 7.0.
* Drop build dependencies for Tcl/Tk, add build dependencies:
  python-numpy, libnetcdf-dev, netcdf-bin, libblas-dev, liblapack-dev
* Update Vcs-Browser URL to use cgit instead of gitweb.
* Update paths to use grass70.
* Add configure options: --with-netcdf, --with-blas, --with-lapack,
  remove --with-tcltk-includes.
* Update patches for GRASS 7.
* Update copyright file, changes:
  - Update copyright years
  - Group files by license
  - Remove unused license sections
* Add patches for various typos.
* Fix desktop file with patch instead of d/rules.
* Use minimal dh rules.
* Bump Standards-Version to 3.9.6, no changes.
* Use dpkg-maintscript-helper to replace directories with symlinks.
  (closes: #776349)
* Update my email to use @debian.org address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
cleanup()
44
44
{
45
45
 echo "Removing temporary map"
46
 
 g.remove rast=$TMPNAME > /dev/null
 
46
 g.remove -f type=raster name=$TMPNAME > /dev/null
47
47
}
48
48
 
49
49
# check if a MASK is already present:
59
59
{
60
60
 echo "Restoring user region"
61
61
 g.region region=$TMPNAME
62
 
 g.remove region=$TMPNAME > /dev/null
 
62
 g.remove -f type=region name=$TMPNAME > /dev/null
63
63
 #restore user mask if present:
64
64
 if test -f $LOCATION/cell/$USERMASK ; then
65
65
  echo "Restoring user MASK"
66
 
  g.remove rast=MASK > /dev/null
 
66
  g.remove -f type=raster name=MASK > /dev/null
67
67
  g.rename $USERMASK,MASK > /dev/null
68
68
 fi
69
69
}
71
71
check_exit_status()
72
72
{
73
73
 if [ $1 -ne 0 ] ; then
74
 
  echo "An error occured."
 
74
  echo "An error occurred."
75
75
  cleanup ; finalcleanup
76
76
  exit 1
77
77
 fi
125
125
########### 2D raster INT tests ###########
126
126
VALUE=1
127
127
echo "INT/CELL test."
128
 
r.mapcalc "$TMPNAME=1"
 
128
r.mapcalc "$TMPNAME = 1"
129
129
check_exit_status $?
130
130
 
131
131
echo "Univariate statistics of INT/CELL test."
148
148
########### 2D raster FCELL tests ###########
149
149
VALUE=1.1
150
150
echo "FLOAT/FCELL test."
151
 
r.mapcalc "$TMPNAME=$VALUE"
 
151
r.mapcalc "$TMPNAME = $VALUE"
152
152
check_exit_status $?
153
153
 
154
154
echo "Univariate statistics of FLOAT/FCELL test."