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 '{}' ';'
23 make conf=cov test-clean LILYPOND_JOBS=
24 make conf=cov test LILYPOND_JOBS= >& out-cov/test-run.log
31 ln ../lily/out-cov/*[ch] .
33 ln ../lily/include/* include/
36 gcov -o ../lily/out-cov/ -p $a > $a.gcov-summary
39 python buildscripts/coverage.py