[autotests/integration] Simplify the cmake for creating a test
ClosedPublic

Authored by graesslin on Jun 30 2016, 6:40 AM.

Details

Summary

A dedicated cmake function is added to create a test case. It takes
a NAME, the SRCS and additional LIBS.

Thus it's
integrationTest(NAME myTestCase SRCS test.cpp)

to create a standard integration test.

In addition kwin_wayland_test.cpp is compiled into a static library
to decrease the compile time a little bit.

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 4865.Jun 30 2016, 6:40 AM
graesslin retitled this revision from to [autotests/integration] Simplify the cmake for creating a test.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added reviewers: KWin, Plasma on Wayland.
Restricted Application added projects: Plasma on Wayland, KWin. · View Herald TranscriptJun 30 2016, 6:40 AM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
bshah accepted this revision.Jun 30 2016, 7:01 AM
bshah added a reviewer: bshah.
bshah added a subscriber: bshah.

Maybe you could keep comments on what test is on..

This revision is now accepted and ready to land.Jun 30 2016, 7:01 AM
In D2052#37872, @bshah wrote:

Maybe you could keep comments on what test is on..

I removed them as they in 99 % of the cases don't have any further information than the name of the test binary.

This revision was automatically updated to reflect the committed changes.