Hi, Packaging 4.12.2 for Debian we encountered that other packages tests use akonaditest and the knut resource (akonadi-xml) library, but it's not built for our packages building process (as it requires -DKDE4_BUILD_TESTS=true, which adds a lot of exported symbols to the libraries which are not part of the abi). So, currently the akonaditest binary is generated by the akonadi/tests/testrunner subdirectory, so, simply adding it to the base CMakefile does the trick. Adding the knut resource was a lot hackgly, and we ended up copy pasting a part of the akonadi/tests/CMakeLists.txt and a part of akonadi/kmime/CMakeLists.txt into akonadi/tests/testresource/CMakeLists.txt. I'm attaching the patches that we used in the Debian packages, these might be improved adding an option to install knut resource and akonaditest. Reproducible: Always
Created attachment 85333 [details] Add tests/testrunner to the build
Created attachment 85334 [details] Add akonadi knut resource to the build
Git commit d9f239bf8d0bbcfac3f0a5de4e48642617812565 by Dan Vrátil, on behalf of Maximiliano Curia. Committed on 28/05/2014 at 10:24. Pushed by dvratil into branch 'master'. Build and install akonaditest and Knut even when kdepimlibs are built without tests Makes it possible to still run tests of other components (runtime) that require akonaditest and Knut. FIXED-IN: 4.14 M +4 -1 akonadi/CMakeLists.txt M +27 -0 akonadi/tests/testresource/CMakeLists.txt http://commits.kde.org/kdepimlibs/d9f239bf8d0bbcfac3f0a5de4e48642617812565