From 4e014ace452af8f1e22b95ba22d112fc2419ec6d Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Thu, 23 Jun 2011 10:48:33 +0200 Subject: Integrate testcocoon support into Qt build system. To instrument a Qt application or library with the TestCocoon coverage tool, do `CONFIG+=testcocoon' in the application .pro file. To instrument Qt itself with testcocoon, use the `-testcocoon' configure option. Change-Id: Ie77109a078d11ea51f7a073621e0df9c752c44ae Reviewed-by: Oswald Buddenhagen Reviewed-by: Rohan McGovern --- src/gui/gui.pro | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gui') diff --git a/src/gui/gui.pro b/src/gui/gui.pro index 40888ade41..db045930a3 100644 --- a/src/gui/gui.pro +++ b/src/gui/gui.pro @@ -13,6 +13,14 @@ unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore load(qt_module_config) +# Code coverage with TestCocoon +# The following is required as extra compilers use $$QMAKE_CXX instead of $(CXX). +# Without this, testcocoon.prf is read only after $$QMAKE_CXX is used by the +# extra compilers. +testcocoon { + load(testcocoon) +} + HEADERS += $$QT_SOURCE_TREE/src/gui/qtguiversion.h include(accessible/accessible.pri) -- cgit v1.2.3