@@ -37,3 +37,25 win32:{ | |||
|
37 | 37 | docs.depends = FORCE |
|
38 | 38 | QMAKE_EXTRA_TARGETS += docs |
|
39 | 39 | |
|
40 | coverage:{ | |
|
41 | ||
|
42 | CONFIG+=debug | |
|
43 | QMAKE_DISTCLEAN += -r ./coverage | |
|
44 | QMAKE_CLEAN += build/*.gcda build/*.gcno | |
|
45 | QMAKE_EXTRA_TARGETS += buildcoverage runcoverage gencoverage | |
|
46 | ||
|
47 | buildcoverage.target = build_coverage | |
|
48 | buildcoverage.depends = all | |
|
49 | buildcoverage.commands = mkdir -p ./coverage; \ | |
|
50 | make -C src prepare_coverage; | |
|
51 | ||
|
52 | runcoverage.target = run_coverage | |
|
53 | runcoverage.depends = buildcoverage | |
|
54 | runcoverage.commands = for f in `ls ./bin/test/tst_*` ; do echo "processing \$\$f test..."; \$\$f >> unit.log; done ; | |
|
55 | ||
|
56 | gencoverage.target = gen_coverage | |
|
57 | gencoverage.depends = runcoverage | |
|
58 | gencoverage.commands = make -C src gen_coverage; \ | |
|
59 | genhtml -o ./coverage ./coverage/coverage.info --prefix $$PWD | |
|
60 | } | |
|
61 |
|
1 | NO CONTENT: file renamed from src/scatterseries/qscatterseries.cpp to src/scatterchart/qscatterseries.cpp |
|
1 | NO CONTENT: file renamed from src/scatterseries/qscatterseries.h to src/scatterchart/qscatterseries.h |
|
1 | NO CONTENT: file renamed from src/scatterseries/qscatterseries_p.h to src/scatterchart/qscatterseries_p.h |
|
1 | NO CONTENT: file renamed from src/scatterseries/scatter.pri to src/scatterchart/scatter.pri |
|
1 | NO CONTENT: file renamed from src/scatterseries/scatterchartitem.cpp to src/scatterchart/scatterchartitem.cpp |
|
1 | NO CONTENT: file renamed from src/scatterseries/scatterchartitem_p.h to src/scatterchart/scatterchartitem_p.h |
@@ -64,7 +64,7 include(barchart/barchart.pri) | |||
|
64 | 64 | include(legend/legend.pri) |
|
65 | 65 | include(linechart/linechart.pri) |
|
66 | 66 | include(piechart/piechart.pri) |
|
67 |
include(scatter |
|
|
67 | include(scatterchart/scatter.pri) | |
|
68 | 68 | include(splinechart/splinechart.pri) |
|
69 | 69 | include(themes/themes.pri) |
|
70 | 70 | include(xychart/xychart.pri) |
@@ -208,3 +208,29 win32:QMAKE_DISTCLEAN += /Q \ | |||
|
208 | 208 | $$CHART_BUILD_HEADER_DIR \ |
|
209 | 209 | $$CHART_BUILD_LIB_DIR |
|
210 | 210 | |
|
211 | ############################## COVERAGE ######################################### | |
|
212 | ||
|
213 | coverage:{ | |
|
214 | ||
|
215 | QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage | |
|
216 | QMAKE_LDFLAGS += -fprofile-arcs -ftest-coverage | |
|
217 | ||
|
218 | LIBS += -lgcov | |
|
219 | CONFIG += debug | |
|
220 | ||
|
221 | QMAKE_CLEAN += $$OBJECTS_DIR/*.gcda $$OBJECTS_DIR/*.gcno $$PWD/*.gcov ../coverage/*.info | |
|
222 | QMAKE_EXTRA_TARGETS += preparecoverage gencoverage | |
|
223 | ||
|
224 | preparecoverage.target = prepare_coverage | |
|
225 | preparecoverage.depends = all | |
|
226 | preparecoverage.commands = lcov --directory $$OBJECTS_DIR --zerocounters ;\ | |
|
227 | lcov -i -d $$OBJECTS_DIR -c -o ../coverage/base.info -b $$PWD; | |
|
228 | ||
|
229 | gencoverage.target = gen_coverage | |
|
230 | gencoverage.depends = all | |
|
231 | gencoverage.commands = lcov -d $$OBJECTS_DIR -c -o ../coverage/src.info -b $$PWD;\ | |
|
232 | lcov -e ../coverage/base.info $$PWD/* $$PWD/animations/* $$PWD/areachart/* $$PWD/axis/* $$PWD/barchart/* $$PWD/legend/* $$PWD/linechart/* $$PWD/piechart/* $$PWD/scatterchart/* $$PWD/splinechart/* $$PWD/themes/* $$PWD/xychart/* -o ../coverage/base.info;\ | |
|
233 | lcov -e ../coverage/src.info $$PWD/* $$PWD/animations/* $$PWD/areachart/* $$PWD/axis/* $$PWD/barchart/* $$PWD/legend/* $$PWD/linechart/* $$PWD/piechart/* $$PWD/scatterchart/* $$PWD/splinechart/* $$PWD/themes/* $$PWD/xychart/* -o ../coverage/src.info;\ | |
|
234 | lcov -a ../coverage/base.info -a ../coverage/src.info -o ../coverage/coverage.info; | |
|
235 | } | |
|
236 |
General Comments 0
You need to be logged in to leave comments.
Login now