Bug 331529

Summary: Please build and install akonaditest even if tests for kdepimlibs aren't
Product: [Applications] kdepimlibs Reporter: Maximiliano Curia <maxy>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 4.12.2   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In: 4.14
Attachments: Add tests/testrunner to the build
Add akonadi knut resource to the build

Description Maximiliano Curia 2014-02-26 10:09:56 UTC
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
Comment 1 Maximiliano Curia 2014-02-26 10:11:34 UTC
Created attachment 85333 [details]
Add tests/testrunner to the build
Comment 2 Maximiliano Curia 2014-02-26 10:12:39 UTC
Created attachment 85334 [details]
Add akonadi knut resource to the build
Comment 3 Daniel Vrátil 2014-05-28 10:27:18 UTC
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