Skip to content

Commit

Permalink
[processing] disable test for script-based algorithms as GDAL scripts
Browse files Browse the repository at this point in the history
are not available on Travis
  • Loading branch information
alexbruy committed Oct 11, 2017
1 parent 21e4fc5 commit c0e47a7
Showing 1 changed file with 63 additions and 59 deletions.
122 changes: 63 additions & 59 deletions python/plugins/processing/tests/testdata/gdal_algorithm_tests.yaml
Expand Up @@ -123,18 +123,19 @@ tests:
- 'Band 1 Block=373x5 Type=Float32, ColorInterp=Gray'
- ' NoData Value=-99999'

- algorithm: gdal:gdal2xyz
name: gdal2xyz
params:
BAND: 1
CSV: false
INPUT:
name: dem.tif
type: raster
results:
OUTPUT:
name: expected/gdal/xyz.csv
type: file
# Disabled as gdal2xyz.py is not available on Travis
# - algorithm: gdal:gdal2xyz
# name: gdal2xyz
# params:
# BAND: 1
# CSV: false
# INPUT:
# name: dem.tif
# type: raster
# results:
# OUTPUT:
# name: expected/gdal/xyz.csv
# type: file

- algorithm: gdal:tileindex
name: Tile index (gdaltindex)
Expand Down Expand Up @@ -300,38 +301,40 @@ tests:
hash: fff4a08498e93494f3f2cf1a9074451e6fd68341849aedc9e2c45e6a
type: rasterhash

- algorithm: gdal:polygonize
name: Polygonize
params:
BAND: 1
EIGHT_CONNECTEDNESS: false
FIELD: DN
INPUT:
name: dem.tif
type: raster
results:
OUTPUT:
name: expected/gdal/polygonize.gml
type: vector
# Disabled as gdal2_poligonize.py is not available on Travis
# - algorithm: gdal:polygonize
# name: Polygonize
# params:
# BAND: 1
# EIGHT_CONNECTEDNESS: false
# FIELD: DN
# INPUT:
# name: dem.tif
# type: raster
# results:
# OUTPUT:
# name: expected/gdal/polygonize.gml
# type: vector

- algorithm: gdal:proximity
name: Proximity
params:
BAND: 1
DATA_TYPE: 5
INPUT:
name: dem.tif
type: raster
MAX_DISTANCE: 0.0
NODATA: 0.0
OPTIONS: ''
REPLACE: 0.0
UNITS: 1
VALUES: '90'
results:
OUTPUT:
hash: 32802271d1ce083ca14078bfefaef6300ae8809af11f6a4270583d0c
type: rasterhash
# Disabled as gdal2_proximity.py is not available on Travis
# - algorithm: gdal:proximity
# name: Proximity
# params:
# BAND: 1
# DATA_TYPE: 5
# INPUT:
# name: dem.tif
# type: raster
# MAX_DISTANCE: 0.0
# NODATA: 0.0
# OPTIONS: ''
# REPLACE: 0.0
# UNITS: 1
# VALUES: '90'
# results:
# OUTPUT:
# hash: 32802271d1ce083ca14078bfefaef6300ae8809af11f6a4270583d0c
# type: rasterhash

- algorithm: gdal:roughness
name: Roughness
Expand All @@ -347,22 +350,23 @@ tests:
hash: ee2b317e022da1001378fac60c9b613a74d3566b9870f9d121e6e322
type: rasterhash

- algorithm: gdal:sieve
name: Sieve
params:
EIGHT_CONNECTEDNESS: false
INPUT:
name: dem.tif
type: raster
MASK_LAYER:
name: dem.tif
type: raster
NO_MASK: false
THRESHOLD: 10
results:
OUTPUT:
hash: 1ea6a8c838add299dc3f6f9f529eb5945664f68bae97be9ca80b1754
type: rasterhash
# Disabled as gdal_sieve is not available on Travis
# - algorithm: gdal:sieve
# name: Sieve
# params:
# EIGHT_CONNECTEDNESS: false
# INPUT:
# name: dem.tif
# type: raster
# MASK_LAYER:
# name: dem.tif
# type: raster
# NO_MASK: false
# THRESHOLD: 10
# results:
# OUTPUT:
# hash: 1ea6a8c838add299dc3f6f9f529eb5945664f68bae97be9ca80b1754
# type: rasterhash

- algorithm: gdal:slope
name: Slope
Expand Down

0 comments on commit c0e47a7

Please sign in to comment.