Add ENABLE_SAGA_TESTS cmake config, default to off, enable in ci (#32199)

* Add ENABLE_SAGA_TESTS cmake config, default to off, enable in ci

Closes #32143

* Update python/plugins/processing/tests/CMakeLists.txt

Co-Authored-By: Harrissou Sant-anna <delazj@gmail.com>
This commit is contained in:
Sandro Santilli 2019-10-11 11:26:33 +02:00 committed by GitHub
parent f421dc4f92
commit 76b39de1b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View File

@ -43,6 +43,7 @@ cmake \
-DSUPPRESS_QT_WARNINGS=ON \
-DENABLE_MODELTEST=ON \
-DENABLE_PGTEST=ON \
-DENABLE_SAGA_TESTS=ON \
-DENABLE_MSSQLTEST=ON \
-DWITH_QSPATIALITE=ON \
-DWITH_QWTPOLAR=OFF \

View File

@ -58,6 +58,7 @@ cmake \
-DWITH_STAGED_PLUGINS=ON \
-DENABLE_MODELTEST=ON \
-DENABLE_PGTEST=OFF \
-DENABLE_SAGA_TESTS=ON \
-DWITH_QWTPOLAR=OFF \
-DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations" \
..

View File

@ -5,6 +5,13 @@ PLUGIN_INSTALL(processing tests ${PY_FILES})
PLUGIN_INSTALL(processing tests/testdata ${TEST_DATA_FILES})
IF(ENABLE_TESTS)
# enable SAGA tests
SET (ENABLE_SAGA_TESTS FALSE CACHE BOOL "Enable Saga tests")
IF ( ENABLE_SAGA_TESTS )
ADD_DEFINITIONS(-DENABLE_SAGA_TESTS)
ENDIF ()
INCLUDE(UsePythonTest)
ADD_PYTHON_TEST(ProcessingGeneralTest ProcessingGeneralTest.py)
ADD_PYTHON_TEST(ProcessingGuiTest GuiTest.py)
@ -23,7 +30,9 @@ IF(ENABLE_TESTS)
ADD_PYTHON_TEST(ProcessingGrass7AlgorithmsRasterTest Grass7AlgorithmsRasterTest.py)
ADD_PYTHON_TEST(ProcessingGrass7AlgorithmsVectorTest Grass7AlgorithmsVectorTest.py)
ADD_PYTHON_TEST(ProcessingOtbAlgorithmsTest OtbAlgorithmsTest.py)
ADD_PYTHON_TEST(ProcessingSagaAlgorithmsTest SagaAlgorithmsTest.py)
ADD_PYTHON_TEST(ProcessingCheckValidityAlgorithmTest CheckValidityAlgorithm.py)
ADD_PYTHON_TEST(ProcessingScriptUtilsTest ScriptUtilsTest.py)
IF(ENABLE_SAGA_TESTS)
ADD_PYTHON_TEST(ProcessingSagaAlgorithmsTest SagaAlgorithmsTest.py)
ENDIF(ENABLE_SAGA_TESTS)
ENDIF(ENABLE_TESTS)