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