From: Han-Wen Nienhuys Date: Wed, 3 Jan 2007 19:54:44 +0000 (+0100) Subject: updates for coverage scripts X-Git-Tag: release/2.11.9-1~52 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f6cfd7725a95df667530dac137764d8b32224e85;p=lilypond.git updates for coverage scripts --- diff --git a/buildscripts/build-coverage.sh b/buildscripts/build-coverage.sh index 13a073188b..6f48d18f0e 100755 --- a/buildscripts/build-coverage.sh +++ b/buildscripts/build-coverage.sh @@ -10,18 +10,23 @@ fi if test "$fresh" = "yes"; then - ./configure --enable-config=cov --disable-optimising - make conf=cov -j2 clean - perl -i~ -pe 's/-pipe /-fprofile-arcs -ftest-coverage -pipe /g' config-cov.make - perl -i~ -pe 's/ -ldl / -lgcov -ldl /g' config-cov.make + ./configure --enable-config=cov --disable-optimising \ + && make conf=cov -j2 clean \ + && perl -i~ -pe 's/-pipe /-fprofile-arcs -ftest-coverage -pipe /g' config-cov.make \ + && perl -i~ -pe 's/ -ldl / -lgcov -ldl /g' config-cov.make else find -name '*.gcda' -exec rm '{}' ';' fi -make conf=cov -j2 -make conf=cov test-clean LILYPOND_JOBS= -make conf=cov test LILYPOND_JOBS= >& out-cov/test-run.log +make conf=cov -j2 && \ + make conf=cov test-real-clean LILYPOND_JOBS= && \ + make conf=cov test LILYPOND_JOBS= >& out-cov/test-run.log + +if test "$?" != "0"; then + tail -100 out-cov/test-run.log + exit 1 +fi rm -rf out-cov mkdir out-cov @@ -36,4 +41,10 @@ do gcov -o ../lily/out-cov/ -p $a > $a.gcov-summary done -python buildscripts/coverage.py +cat <