##// END OF EJS Templates
Fix coverage reporting when last unit fails
Michal Klocek -
r1185:10ea6d79c644
parent child
Show More
@@ -1,59 +1,59
1 !include(config.pri) {
1 !include(config.pri) {
2 error('Missing config.pri')
2 error('Missing config.pri')
3 }
3 }
4
4
5 TEMPLATE = subdirs
5 TEMPLATE = subdirs
6 SUBDIRS = src qmlplugin examples demos test
6 SUBDIRS = src qmlplugin examples demos test
7
7
8 development_build: message('Development build')
8 development_build: message('Development build')
9
9
10 !system_build:{
10 !system_build:{
11 message('Configured for local build against local libs...')
11 message('Configured for local build against local libs...')
12 message('You can run "make" to build qchart library, examples, demos and plugin...')
12 message('You can run "make" to build qchart library, examples, demos and plugin...')
13 message('You can run "make install" to install qchart in qt sdk...')
13 message('You can run "make install" to install qchart in qt sdk...')
14 } else {
14 } else {
15 message('Running build aginst system libs...')
15 message('Running build aginst system libs...')
16 message('Building only charts library...')
16 message('Building only charts library...')
17 message('Afterwards you can run "cd examples; qmake ; make " to build examples.')
17 message('Afterwards you can run "cd examples; qmake ; make " to build examples.')
18 SUBDIRS = src
18 SUBDIRS = src
19 }
19 }
20
20
21 CONFIG += ordered
21 CONFIG += ordered
22 QMAKE_CXXFLAGS += -g -Wall
22 QMAKE_CXXFLAGS += -g -Wall
23 unix:QMAKE_DISTCLEAN += -r build bin include lib doc/html
23 unix:QMAKE_DISTCLEAN += -r build bin include lib doc/html
24 win32:QMAKE_DISTCLEAN += /Q /s build bin include lib doc\\html
24 win32:QMAKE_DISTCLEAN += /Q /s build bin include lib doc\\html
25
25
26 # install feature file
26 # install feature file
27 feature.path = $$[QT_INSTALL_DATA]/mkspecs/features
27 feature.path = $$[QT_INSTALL_DATA]/mkspecs/features
28 feature.files = $$PWD/features/qtcommercialchart.prf
28 feature.files = $$PWD/features/qtcommercialchart.prf
29 INSTALLS += feature
29 INSTALLS += feature
30
30
31 docs.target = docs
31 docs.target = docs
32 win32:{
32 win32:{
33 docs.commands = qdoc3 $$CHART_BUILD_DOC_DIR\\qcharts.qdocconf
33 docs.commands = qdoc3 $$CHART_BUILD_DOC_DIR\\qcharts.qdocconf
34 }else{
34 }else{
35 docs.commands = qdoc3 $$CHART_BUILD_DOC_DIR/qcharts.qdocconf
35 docs.commands = qdoc3 $$CHART_BUILD_DOC_DIR/qcharts.qdocconf
36 }
36 }
37 docs.depends = FORCE
37 docs.depends = FORCE
38 QMAKE_EXTRA_TARGETS += docs
38 QMAKE_EXTRA_TARGETS += docs
39
39
40 unix:coverage:{
40 unix:coverage:{
41 QMAKE_DISTCLEAN += -r ./coverage
41 QMAKE_DISTCLEAN += -r ./coverage
42 QMAKE_CLEAN += build/*.gcda build/*.gcno
42 QMAKE_CLEAN += build/*.gcda build/*.gcno
43 QMAKE_EXTRA_TARGETS += buildcoverage runcoverage gencoverage
43 QMAKE_EXTRA_TARGETS += buildcoverage runcoverage gencoverage
44
44
45 buildcoverage.target = build_coverage
45 buildcoverage.target = build_coverage
46 buildcoverage.depends = all
46 buildcoverage.depends = all
47 buildcoverage.commands = mkdir -p ./coverage; \
47 buildcoverage.commands = mkdir -p ./coverage; \
48 make -C src prepare_coverage;
48 make -C src prepare_coverage;
49
49
50 runcoverage.target = run_coverage
50 runcoverage.target = run_coverage
51 runcoverage.depends = buildcoverage
51 runcoverage.depends = buildcoverage
52 runcoverage.commands = for f in `ls ./bin/tst_*` ; do echo "processing \$\$f test..."; \$\$f >> unit.log; done ;
52 runcoverage.commands = for f in `ls ./bin/tst_*` ; do echo "processing \$\$f test..."; \$\$f >> unit.log; done ; exit 0;
53
53
54 gencoverage.target = gen_coverage
54 gencoverage.target = gen_coverage
55 gencoverage.depends = runcoverage
55 gencoverage.depends = runcoverage
56 gencoverage.commands = make -C src gen_coverage; \
56 gencoverage.commands = make -C src gen_coverage; \
57 genhtml -o ./coverage ./coverage/coverage.info --prefix $$PWD
57 genhtml -o ./coverage ./coverage/coverage.info --prefix $$PWD
58 }
58 }
59
59
General Comments 0
You need to be logged in to leave comments. Login now