X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fauxiliar%2Fbuild-coverage.sh;h=4c15937c7c4555f1a79322682da33308e14415b9;hb=3c0f38115857598db730782b1d2ff0a19fd833af;hp=f61ff649dca336346a0863bf24c67d4a128bb741;hpb=38d7d319eabc906e82fb42002678c6d42a23b6f7;p=lilypond.git diff --git a/scripts/auxiliar/build-coverage.sh b/scripts/auxiliar/build-coverage.sh index f61ff649dc..4c15937c7c 100755 --- a/scripts/auxiliar/build-coverage.sh +++ b/scripts/auxiliar/build-coverage.sh @@ -1,6 +1,6 @@ #!/bin/sh -if test "$1" == "--fresh"; then +if test "$1" = "--fresh"; then fresh=yes fi @@ -18,7 +18,7 @@ else find -name '*.gcda' -exec rm '{}' ';' fi -mkdir -p scripts/out-cov/ +mkdir -p scripts/out-cov touch scripts/out-cov/midi2ly scripts/out-cov/midi2ly.1 make conf=cov -j2 && \ make conf=cov test-clean OUT_TEST=testcov LILYPOND_JOBS= && \ @@ -42,11 +42,11 @@ mv $depth/input/regression/out-testcov/*.scm.cov . ln $depth/ly/*.ly . ln $depth/lily/out-cov/*[ch] . mkdir include -ln $depth/lily/include/* include/ -ln $depth/flower/include/* include/ +ln $depth/lily/include/* include +ln $depth/flower/include/* include for a in *[cl] *.yy do - gcov -o $depth/lily/out-cov/ -p $a > $a.gcov-summary + gcov -o $depth/lily/out-cov -p $a > $a.gcov-summary done $depth/scripts/auxiliar/coverage.py --uncovered *.cc > uncovered.txt