Add tests of the various testlib definition possibilities.
authorStephen Kelly <stephen.kelly@kdab.com>
Wed, 18 Jul 2012 20:25:56 +0000 (22:25 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 24 Jul 2012 06:44:27 +0000 (08:44 +0200)
commit45cb8be4f9ab2b5b823dda104376b159c9123163
tree833e53808d216375ca10a84a384775f897f6c49f
parent4eb64827515f7d72e3c5cf259c4bc2c1cc0d58bf
Add tests of the various testlib definition possibilities.

The behavior of QTEST_MAIN depends on whether QT_GUI_LIB or QT_WIDGETS_LIB
is defined. It could create a QGuiApplication or QApplication which
could cause linking issues if the corresponding library is not linked to.

The failure cases are also tested.

Change-Id: I61ed0bc760564ef42ce1dbd86c83c06348c860ff
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/cmake/CMakeLists.txt
tests/auto/cmake/test_testlib_definitions/CMakeLists.txt [new file with mode: 0644]
tests/auto/cmake/test_testlib_definitions/core_only/CMakeLists.txt [new file with mode: 0644]
tests/auto/cmake/test_testlib_definitions/gui/CMakeLists.txt [new file with mode: 0644]
tests/auto/cmake/test_testlib_definitions/main.cpp [new file with mode: 0644]
tests/auto/cmake/test_testlib_definitions/widgets/CMakeLists.txt [new file with mode: 0644]
tests/auto/cmake/test_testlib_no_link_gui/CMakeLists.txt [new file with mode: 0644]
tests/auto/cmake/test_testlib_no_link_widgets/CMakeLists.txt [new file with mode: 0644]