Hello everybody,
First, I work on RedHat Linux machine with the eclipse CDT
I'm trying to use the covering code tool Gcov, in order to test my application, but I couldn't arrive to get all the files necesary to compute my test.
I give you my .pro file :
When I compile in debug mode, I obtain in the debug directory this files : *.cpp *.o *.gcnoTEMPLATE = app
TARGET = GFT
QT += core \
network
HEADERS += [ one file ] \
[ lot of files ]
SOURCES += [ one file ] \
[ lot of files ]
FORMS +=
RESOURCES +=
INCLUDEPATH += $$(BASE_DIR)
DEPENDPATH += $$(BASE_DIR)
QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage
QMAKE_LDFLAGS += -fprofile-arcs -ftest-coverage
LIBS += -lgcov
I let you also my "guide" that they give me, in order to compute the test
All that I know is, that normaly, I shoul have some .da files, but it look like I don't have them.a) Resetting counters
lcov -d debug -b . -z
b) Capturing the current coverage state to a file (works only after the
application has been started and stopped at least once)
lcov -d debug -b . -c -o app.info
lcov -r app.info '/usr/include/c++/*' '/usr/local/Trolltech/Qt-4.5.3*' '*moc_*cpp' -o result.info
c) Getting HTML output
genhtml -o doc/coverage -t "TEST SCET-M" --legend --no-function-coverage result.info
Someone have any idea to use correctly Gcov with Qt ?
It miss any options ?
It miss any step ?
Thank's a lot
Luffy
Bookmarks