3 if test "$1" == "--fresh"; then
7 if test ! -f config-cov.make; then
11 if test "$fresh" = "yes";
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
18 find -name '*.gcda' -exec rm '{}' ';'
21 mkdir -p scripts/out-cov/
22 touch scripts/out-cov/midi2ly.1
23 make conf=cov -j2 && \
24 make conf=cov test-clean OUT_TEST=testcov LILYPOND_JOBS= && \
25 make conf=cov test OUT_TEST=testcov LILYPOND_JOBS=
27 if test "$?" != "0"; then
28 tail -100 out-cov/test-run.log
33 resultdir=out/coverage-results
40 ln $depth/lily/out-cov/*[ch] .
42 ln $depth/lily/include/* include/
43 ln $depth/flower/include/* include/
46 gcov -o $depth/lily/out-cov/ -p $a > $a.gcov-summary
49 python $depth/buildscripts/coverage.py --uncovered *.cc > uncovered.txt
50 python $depth/buildscripts/coverage.py --hotspots *.cc > hotspots.txt
51 python $depth/buildscripts/coverage.py --summary *.cc > summary.txt
58 out/coverage-results/summary.txt
59 out/coverage-results/uncovered.txt
60 out/coverage-results/hotspots.txt