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 '{}' ';'
22 make conf=cov -j2 && \
23 make conf=cov test-real-clean LILYPOND_JOBS= && \
24 make conf=cov test LILYPOND_JOBS=
26 if test "$?" != "0"; then
27 tail -100 out-cov/test-run.log
32 resultdir=out/coverage-results
39 ln $depth/lily/out-cov/*[ch] .
41 ln $depth/lily/include/* include/
44 gcov -o $depth/lily/out-cov/ -p $a > $a.gcov-summary
51 python buildscripts/coverage.py --uncovered $resultdir/*.cc