Commit af9c09ab authored by Volker Krause's avatar Volker Krause
Browse files

Add a global control for running isolated Akonadi tests as well

Easier than switching off all three variants individually.
parent ce740211
Pipeline #76377 passed with stage
in 13 minutes and 55 seconds
#
# Convenience macros to add akonadi testrunner unit-tests
#
# Set AKONADI_RUN_ISOLATED_TESTS to false to prevent any isolated Akonadi tests from being run
# Set AKONADI_RUN_MYSQL_ISOLATED_TESTS to false to prevent run the tests against MySQL
# Set AKONADI_RUN_PGSQL_ISOLATED_TESTS to false to prevent run the tests against PostgreSQL
# Set AKONADI_RUN_SQLITE_ISOLATED_TESTS to false to prevent run the tests against SQLite
......@@ -50,7 +51,8 @@ function(add_akonadi_isolated_test)
function(_defineTest name backend)
set(backends ${ARGN})
if (NOT DEFINED AKONADI_RUN_${backend}_ISOLATED_TESTS OR AKONADI_RUN_${backend}_ISOLATED_TESTS)
if ((NOT DEFINED AKONADI_RUN_${backend}_ISOLATED_TESTS OR AKONADI_RUN_${backend}_ISOLATED_TESTS) AND
(NOT DEFINED AKONADI_RUN_ISOLATED_TESTS OR AKONADI_RUN_ISOLATED_TESTS))
LIST(LENGTH "${backends}" backendsLen)
string(TOLOWER ${backend} lcbackend)
LIST(FIND "${backends}" ${lcbackend} enableBackend)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment