-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new test type "regex" to processing tests
- Loading branch information
Showing
3 changed files
with
64 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
python/plugins/processing/tests/testdata/expected/gdal/layer_info.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,21 @@ | |||
<pre>Had to open data source read-only. | |||
INFO: Open of `/home/mku/dev/cpp/qgis/QGIS/python/plugins/processing/tests/testdata/lines.gml' | |||
using driver `GML' successful. | |||
|
|||
Layer name: lines | |||
Geometry: Line String | |||
Feature Count: 6 | |||
Extent: (-1.000000, -3.000000) - (11.000000, 5.000000) | |||
Layer SRS WKT: | |||
GEOGCS["WGS 84", | |||
DATUM["WGS_1984", | |||
SPHEROID["WGS 84",6378137,298.257223563, | |||
AUTHORITY["EPSG","7030"]], | |||
AUTHORITY["EPSG","6326"]], | |||
PRIMEM["Greenwich",0, | |||
AUTHORITY["EPSG","8901"]], | |||
UNIT["degree",0.0174532925199433, | |||
AUTHORITY["EPSG","9122"]], | |||
AUTHORITY["EPSG","4326"]] | |||
fid: String (0.0) NOT NULL | |||
</pre> |
54 changes: 35 additions & 19 deletions
54
python/plugins/processing/tests/testdata/gdal_algorithm_tests.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,27 +1,43 @@ | |||
# See ../README.md for a description of the file format | # See ../README.md for a description of the file format | ||
|
|
||
tests: | tests: | ||
- algorithm: gdalogr:rasterize | # MK: 23.2.2016 / Fails on travis:OSX | ||
name: Test (gdalogr:rasterize) | # - algorithm: gdalogr:rasterize | ||
# name: Test (gdalogr:rasterize) | |||
# params: | |||
# BIGTIFF: 0 | |||
# COMPRESS: 4 | |||
# DIMENSIONS: 0 | |||
# EXTRA: "" | |||
# FIELD: "Bfloatval" | |||
# HEIGHT: 100 | |||
# INPUT: | |||
# name: multipolys.gml | |||
# type: vector | |||
# JPEGCOMPRESSION: 75 | |||
# NO_DATA: -9999 | |||
# PREDICTOR: 1 | |||
# RTYPE: 5 | |||
# TFW: False | |||
# TILED: False | |||
# WIDTH: 100 | |||
# ZLEVEL: 6 | |||
# results: | |||
# OUTPUT: | |||
# hash: f1fedeb6782f9389cf43590d4c85ada9155ab61fef6dc285aaeb54d6 | |||
# type: rasterhash | |||
- algorithm: gdalogr:information | |||
name: GDAL ogrinfo | |||
params: | params: | ||
BIGTIFF: 0 | |||
COMPRESS: 4 | |||
DIMENSIONS: 0 | |||
EXTRA: "" | |||
FIELD: "Bfloatval" | |||
HEIGHT: 100 | |||
INPUT: | INPUT: | ||
name: multipolys.gml | name: lines.gml | ||
type: vector | type: vector | ||
JPEGCOMPRESSION: 75 | SUMMARY_ONLY: 'True' | ||
NO_DATA: -9999 | |||
PREDICTOR: 1 | |||
RTYPE: 5 | |||
TFW: False | |||
TILED: False | |||
WIDTH: 100 | |||
ZLEVEL: 6 | |||
results: | results: | ||
OUTPUT: | OUTPUT: | ||
hash: f1fedeb6782f9389cf43590d4c85ada9155ab61fef6dc285aaeb54d6 | name: expected/gdal/layer_info.html | ||
type: rasterhash | type: regex | ||
rules: | |||
- 'Extent: \(-1.000000, -3.000000\) - \(11.000000, 5.000000\)' | |||
- 'Geometry: Line String' | |||
- 'Feature Count: 6' |