]> git.donarmstrong.com Git - lilypond.git/blob - buildscripts/build-coverage.sh
Merge branch 'master' of git+ssh://jneem@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / buildscripts / build-coverage.sh
1 #!/bin/sh
2
3 if test "$1" == "--fresh"; then
4   fresh=yes
5 fi
6
7 if test ! -f config-cov.make; then
8   fresh=yes
9 fi
10
11 if test "$fresh" = "yes";
12 then
13   ./configure --enable-config=cov --disable-optimising
14   make conf=cov -j2 clean
15   perl -i~ -pe 's/-pipe /-fprofile-arcs -ftest-coverage -pipe /g' config-cov.make
16   perl -i~ -pe 's/ -ldl / -lgcov -ldl /g' config-cov.make
17 else
18   find -name '*.gcda' -exec rm  '{}' ';'
19 fi
20
21
22 make conf=cov -j2
23 make conf=cov test-clean LILYPOND_JOBS=          
24 make conf=cov test LILYPOND_JOBS= >& out-cov/test-run.log
25
26 rm -rf out-cov
27 mkdir out-cov
28
29 cd out-cov
30 ln ../lily/* .
31 ln ../lily/out-cov/*[ch] .
32 mkdir include
33 ln ../lily/include/* include/
34 for a in *[cyl]
35 do
36    gcov -o ../lily/out-cov/  -p $a > $a.gcov-summary
37 done 
38
39 python buildscripts/coverage.py