diff options
author | Tomas Junnonen <tomas.junnonen@nokia.com> | 2010-02-15 14:54:48 +0200 |
---|---|---|
committer | Tomas Junnonen <tomas.junnonen@nokia.com> | 2010-02-15 14:54:48 +0200 |
commit | 0299123821c6c6367c23f59e135737f32b26c898 (patch) | |
tree | 48dcda1537576e0c646b4cfe823e83c2186a6a1e /tests/coverage.pri |
Changes: First public release
RevBy: TrustMe
Diffstat (limited to 'tests/coverage.pri')
-rw-r--r-- | tests/coverage.pri | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/coverage.pri b/tests/coverage.pri new file mode 100644 index 00000000..f5526181 --- /dev/null +++ b/tests/coverage.pri @@ -0,0 +1,26 @@ +defineReplace(srcList) { + LIST=$$1 + for(item,LIST) { + ITEMLIST=$$item,$${ITEMLIST} + } + return($${ITEMLIST}) +} + +QMAKE_CXXFLAGS += -ftest-coverage -fprofile-arcs +LIBS += -lgcov + +# OBJECTS_DIR = .obj +MOC_DIR = .moc + +QMAKE_EXTRA_TARGETS += coverage +coverage.depends = check-xml +coverage.commands = @../coverage.py $$srcList($$TEST_SOURCES) .obj 90 + + +QMAKE_EXTRA_TARGETS += coverage-xml +coverage-xml.depends = check-xml +coverage-xml.commands = @../coverage.py $$srcList($$TEST_SOURCES) .obj 90 + + +QMAKE_CLEAN += *.gcda *.gcno *.gcov *.log *.xml +QMAKE_DISTCLEAN += *.gcda *.gcno *.gcov *.log *.xml |