Bug 331529 - Please build and install akonaditest even if tests for kdepimlibs aren't
Summary: Please build and install akonaditest even if tests for kdepimlibs aren't
Status: RESOLVED FIXED
Alias: None
Product: kdepimlibs
Classification: Applications
Component: general (show other bugs)
Version: 4.12.2
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-26 10:09 UTC by Maximiliano Curia
Modified: 2014-05-28 10:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.14


Attachments
Add tests/testrunner to the build (430 bytes, patch)
2014-02-26 10:11 UTC, Maximiliano Curia
Details
Add akonadi knut resource to the build (1.84 KB, patch)
2014-02-26 10:12 UTC, Maximiliano Curia
Details

Note You need to log in before you can comment on or make changes to this bug.
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