Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akonadi
Commits
af9c09ab
Commit
af9c09ab
authored
Aug 24, 2021
by
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
KF5AkonadiMacros.cmake
View file @
af9c09ab
#
# 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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment