akonadi5: enable tests.

Tests require D-Bus, so it's necessary to run them with
dbus-run-session. Specific failing tests are disabled.
This commit is contained in:
Érico Rolim 2020-07-22 14:54:22 -03:00 committed by John Zimmermann
parent c06de8f495
commit 0c4b9159d1

View file

@ -11,6 +11,7 @@ makedepends="qt5-devel qt5-plugin-mysql qt5-plugin-odbc qt5-plugin-pgsql
kdbusaddons-devel kiconthemes-devel kitemmodels-devel kio-devel sqlite-devel
kaccounts-integration-devel libaccounts-qt5-devel qt5-tools-devel"
depends="shared-mime-info"
checkdepends="dbus ${depends}"
short_desc="PIM layer providing an asynchronous API to access PIM data"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
@ -44,7 +45,11 @@ pre_build() {
}
do_check() {
: # require dbus
# failing tests are disabled - sqlite tests hang on futex
cd build
QT_QPA_PLATFORM=offscreen CTEST_OUTPUT_ON_FAILURE=TRUE \
dbus-run-session ctest -E \
"(akonadixml-xmldocument|mimetypechecker|AkonadiControl-agenttype|.*sqlite.*)test"
}
akonadi5-devel_package() {